fixed typo

This commit is contained in:
Nimaoth 2024-04-14 20:47:17 +02:00
parent 7ab1cc7b66
commit f19271867f

View file

@ -549,7 +549,7 @@ proc parseCmapTable(buf: string, offset: int): CmapTable =
for c in startCharCode .. endCharCode: for c in startCharCode .. endCharCode:
let glyphId = startGlyphId + (c - startCharCode) let glyphId = startGlyphId + (c - startCharCode)
if glyphId > uint16.high: if glyphId > uint16.high:
# TODO: currently onld 16 bit glyph ids are supported # TODO: currently only 16 bit glyph ids are supported
raise newException(PixieError, "Found glyph outside of uint16 range: " & $glyphId) raise newException(PixieError, "Found glyph outside of uint16 range: " & $glyphId)
result.runeToGlyphId[Rune(c)] = uint16(glyphId) result.runeToGlyphId[Rune(c)] = uint16(glyphId)