Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function showTTFGlyf(ttfData) {
let ttf = new TTF(ttfData);
let codes = ttf.codes();
let str = '';
// 获取unicode字符
codes.forEach(function (item) {
str += '<li data-code="' + item + '">'
+ '<span class="i-font">' + String.fromCharCode(item) + '</span>'
+ (item > 255 ? '\\u' + Number(item).toString(16) : item)
+ '</li>';
});
$('#font-list').html(str);
}
function showTTFGlyf(ttfData) {
let ttf = new TTF(ttfData);
let codes = ttf.codes();
let str = '';
// 获取unicode字符
codes.forEach(function (item) {
str += '<li data-code="' + item + '">'
+ '<span class="i-font">' + String.fromCharCode(item) + '</span>'
+ (item > 255 ? '\\u' + Number(item).toString(16) : item)
+ '</li>';
});
$('#font-list').html(str);
}
function showTTFGlyf(ttfData) {
ttf = new TTF(ttfData);
let codes = ttf.codes();
let str = '';
// 获取unicode字符
codes.forEach(function (item) {
str += '<li data-code="' + item + '">'
+ '<span class="i-font">' + String.fromCharCode(item) + '</span>'
+ (item > 255 ? '\\u' + Number(item).toString(16) : item)
+ '</li>';
});
$('#font-list').html(str);
$('#font-list li:nth-child(4)').click();
}
function showTTFGlyf(ttfData) {
ttf = new TTF(ttfData);
let codes = ttf.codes();
let str = '';
// 获取unicode字符
codes.forEach(function (item) {
str += '<li data-code="' + item + '">'
+ '<span class="i-font">' + String.fromCharCode(item) + '</span>'
+ (item > 255 ? '\\u' + Number(item).toString(16) : item)
+ '</li>';
});
$('#font-list').html(str);
$('#font-list li:nth-child(4)').click();
}
function showTTFGlyf(ttfData) {
let ttf = new TTF(ttfData);
let codes = ttf.codes();
let str = '';
// 获取unicode字符
codes.forEach(function (item) {
str += '<li data-code="' + item + '">'
+ '<span class="i-font">' + String.fromCharCode(item) + '</span>'
+ (item > 255 ? '\\u' + Number(item).toString(16) : item)
+ '</li>';
});
$('#font-list').html(str);
}
function showOTFGlyf(otfData) {
ttf = new TTF(otfData);
let codes = ttf.codes();
let str = '';
// 获取unicode字符
codes.forEach(function (item) {
str += '<li data-code="' + item + '">'
+ '<span class="i-font">' + String.fromCharCode(item) + '</span>'
+ (item > 255 ? '\\u' + Number(item).toString(16) : item)
+ '</li>';
});
$('#font-list').html(str);
$('#font-list li:nth-child(4)').click();
}