Removed part glyphs
This commit is contained in:
parent
c73a8ae2f1
commit
093050aa8a
|
@ -22,6 +22,9 @@ for(let glyphIndex = 0; glyphIndex < num; glyphIndex++) {
|
||||||
if (path.commands.length === 0) {
|
if (path.commands.length === 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (glyph.unicodes.length === 0) {
|
||||||
|
continue; // with cmds, these are compound glyphs
|
||||||
|
}
|
||||||
let uni = glyph.unicodes.map(formatUnicode).join(', ');
|
let uni = glyph.unicodes.map(formatUnicode).join(', ');
|
||||||
console.log("\t<glyph unicode=\""+uni+"\" name=\""+glyph.name+"\">"); /*"advanceWidth=\""+glyph.advanceWidth+"\" "+
|
console.log("\t<glyph unicode=\""+uni+"\" name=\""+glyph.name+"\">"); /*"advanceWidth=\""+glyph.advanceWidth+"\" "+
|
||||||
"xMin=\""+glyph.xMin+"\" xMax=\""+glyph.xMax+"\" yMin=\""+glyph.yMin+"\" yMax=\""+glyph.yMax+"\" "+
|
"xMin=\""+glyph.xMin+"\" xMax=\""+glyph.xMax+"\" yMin=\""+glyph.yMin+"\" yMax=\""+glyph.yMax+"\" "+
|
||||||
|
|
Loading…
Reference in a new issue