Merge pull request #516 from treeform/guzba

5.0.3
This commit is contained in:
Andre von Houck 2022-12-17 15:45:58 -08:00 committed by GitHub
commit 7aa356bfa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
# Pixie - A full-featured 2D graphics library for Nim # 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. This library is being actively developed and we'd be happy for you to use it.

View file

@ -1,4 +1,4 @@
version = "5.0.2" version = "5.0.3"
author = "Andre von Houck and Ryan Oldenburg" author = "Andre von Houck and Ryan Oldenburg"
description = "Full-featured 2d graphics library for Nim." description = "Full-featured 2d graphics library for Nim."
license = "MIT" license = "MIT"

View file

@ -2563,7 +2563,7 @@ proc parseOpenTypeCollection*(buf: string): seq[OpenType] {.raises: [PixieError]
minorVersion = buf.readUint16(i + 6).swap() minorVersion = buf.readUint16(i + 6).swap()
numFonts = buf.readUint32(i + 8).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") failUnsupported("ttc version")
var tableDirectoryOffsets: seq[uint32] var tableDirectoryOffsets: seq[uint32]