Committed by
David PHAM-VAN
lookup index of glyph for space character
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -74,7 +74,7 @@ class TtfWriter { | @@ -74,7 +74,7 @@ class TtfWriter { | ||
74 | 74 | ||
75 | for (final char in chars) { | 75 | for (final char in chars) { |
76 | if (char == 32) { | 76 | if (char == 32) { |
77 | - final glyph = TtfGlyphInfo(32, Uint8List(0), const <int>[]); | 77 | + final glyph = TtfGlyphInfo(ttf.charToGlyphIndexMap[char]!, Uint8List(0), const <int>[]); |
78 | glyphsMap[glyph.index] = glyph; | 78 | glyphsMap[glyph.index] = glyph; |
79 | charMap[char] = glyph.index; | 79 | charMap[char] = glyph.index; |
80 | continue; | 80 | continue; |
-
Please register or login to post a comment