diff --git a/pixie.nimble b/pixie.nimble index 936c0df..1fdac48 100644 --- a/pixie.nimble +++ b/pixie.nimble @@ -1,4 +1,4 @@ -version = "5.0.2" +version = "5.0.3" author = "Andre von Houck and Ryan Oldenburg" description = "Full-featured 2d graphics library for Nim." license = "MIT" diff --git a/src/pixie/fontformats/opentype.nim b/src/pixie/fontformats/opentype.nim index fde88ae..cdd6e02 100644 --- a/src/pixie/fontformats/opentype.nim +++ b/src/pixie/fontformats/opentype.nim @@ -2563,7 +2563,7 @@ proc parseOpenTypeCollection*(buf: string): seq[OpenType] {.raises: [PixieError] minorVersion = buf.readUint16(i + 6).swap() numFonts = buf.readUint32(i + 8).swap() - if majorVersion notin {1, 2} and minorVersion != 0: + if majorVersion notin {1'u16, 2} and minorVersion != 0: failUnsupported("ttc version") var tableDirectoryOffsets: seq[uint32]