From 093050aa8a93615fe7c6ffab80a4b4a5163d1b85 Mon Sep 17 00:00:00 2001 From: Willem Date: Wed, 9 Feb 2022 12:55:39 +0100 Subject: [PATCH] Removed part glyphs --- conv-font/conv-font.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conv-font/conv-font.js b/conv-font/conv-font.js index b5ca24fc..ba50584d 100644 --- a/conv-font/conv-font.js +++ b/conv-font/conv-font.js @@ -22,6 +22,9 @@ for(let glyphIndex = 0; glyphIndex < num; glyphIndex++) { if (path.commands.length === 0) { continue; } + if (glyph.unicodes.length === 0) { + continue; // with cmds, these are compound glyphs + } let uni = glyph.unicodes.map(formatUnicode).join(', '); console.log("\t"); /*"advanceWidth=\""+glyph.advanceWidth+"\" "+ "xMin=\""+glyph.xMin+"\" xMax=\""+glyph.xMax+"\" yMin=\""+glyph.yMin+"\" yMax=\""+glyph.yMax+"\" "+