diff --git a/bindings/bindings.nim b/bindings/bindings.nim index beae1de..82dbc0e 100644 --- a/bindings/bindings.nim +++ b/bindings/bindings.nim @@ -99,7 +99,7 @@ exportSeq seq[float32]: exportSeq seq[Span]: procs: typeset(seq[Span], Vec2, HorizontalAlignment, VerticalAlignment, bool) - computeBounds(seq[Span]) + layoutBounds(seq[Span]) exportRefObject Image: fields: @@ -232,7 +232,7 @@ exportRefObject Font: scale(Font) defaultLineHeight typeset(Font, string, Vec2, HorizontalAlignment, VerticalAlignment, bool) - computeBounds(Font, string) + layoutBounds(Font, string) exportRefObject Span: fields: @@ -243,7 +243,8 @@ exportRefObject Span: exportRefObject Arrangement: procs: - computeBounds(Arrangement) + layoutBounds(Arrangement) + computeBounds(Arrangement, Mat3) exportRefObject Context: fields: diff --git a/pixie.nimble b/pixie.nimble index 2f87b83..8fdc8ac 100644 --- a/pixie.nimble +++ b/pixie.nimble @@ -1,4 +1,4 @@ -version = "4.1.0" +version = "4.2.0" author = "Andre von Houck and Ryan Oldenburg" description = "Full-featured 2d graphics library for Nim." license = "MIT" @@ -6,7 +6,7 @@ license = "MIT" srcDir = "src" requires "nim >= 1.4.8" -requires "vmath >= 1.1.0" +requires "vmath >= 1.1.4" requires "chroma >= 0.2.5" requires "zippy >= 0.9.7" requires "flatty >= 0.2.4" diff --git a/src/pixie/fonts.nim b/src/pixie/fonts.nim index 9c14e6a..d0b1410 100644 --- a/src/pixie/fonts.nim +++ b/src/pixie/fonts.nim @@ -598,7 +598,7 @@ proc textUber( proc computeBounds*( arrangement: Arrangement, transform = mat3() -): Rect = +): Rect {.raises: [PixieError].} = let fullPath = newPath() for path in arrangement.computePaths(): fullPath.addPath(path)