Skip to content

Commit 28644d4

Browse files
committed
fixed lookup of character code 0 in character map
(closes #294)
1 parent b6ed058 commit 28644d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FontEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ RangeMap FontEngine::buildGidToCharCodeMap () const {
162162
FT_UInt gid; // index of current glyph
163163
uint32_t charcode = FT_Get_First_Char(_currentFace, &gid);
164164
while (gid) {
165-
if (!charmap.valueAt(gid))
165+
if (!charmap.valueExists(gid))
166166
charmap.addRange(gid, gid, charcode);
167167
charcode = FT_Get_Next_Char(_currentFace, charcode, &gid);
168168
}

0 commit comments

Comments
 (0)