Merge pull request #358 from ehmry/gcsafe

Mark parseGlyfGlyph prototype as gcsafe
This commit is contained in:
treeform 2022-01-08 16:54:44 -08:00 committed by GitHub
commit 8e64260b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2126,7 +2126,7 @@ proc getGlyphId(opentype: OpenType, rune: Rune): uint16 =
proc hasGlyph*(opentype: OpenType, rune: Rune): bool =
rune in opentype.cmap.runeToGlyphId
proc parseGlyfGlyph(opentype: OpenType, glyphId: uint16): Path {.raises: [PixieError].}
proc parseGlyfGlyph(opentype: OpenType, glyphId: uint16): Path {.raises: [PixieError], gcsafe.}
proc parseGlyphPath(
buf: string, offset, numberOfContours: int