From 452e525814a9ba6456e7b41ffdc0f1e33708a1bc Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sat, 17 Dec 2022 09:52:50 -0600 Subject: [PATCH 1/2] 5.0.3 --- pixie.nimble | 2 +- src/pixie/fontformats/opentype.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] From c2212849744ba62693d91e0bf3b671d448d612a7 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sat, 17 Dec 2022 16:04:59 -0600 Subject: [PATCH 2/2] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e25506..62ff382 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # Pixie - A full-featured 2D graphics library for Nim -Pixie is a 2D graphics library similar to [Cairo](https://www.cairographics.org/) and [Skia](https://skia.org) written (almost) entirely in Nim. +Pixie is a 2D graphics library similar to [Cairo](https://www.cairographics.org/) and [Skia](https://skia.org) written entirely in Nim. This library is being actively developed and we'd be happy for you to use it.