diff --git a/src/core/TextFontMetrics.js b/src/core/TextFontMetrics.js index 7216fe4..425c5f6 100644 --- a/src/core/TextFontMetrics.js +++ b/src/core/TextFontMetrics.js @@ -49,7 +49,8 @@ function calcCharAdvanceOpenType(char, fontSize, font, unitsPerEm) { let glyph = font.charToGlyph(char) return glyph.unicode ? glyph.advanceWidth * calcFontScale(fontSize, unitsPerEm) : - 0 + // font doesn't contain a glyph for this char, fallback to canvas measurement + calcTextAdvanceCanvas(char, fontSize, font) } let canvas = _.memoize(function() {