From 046556fdef74bfdfc7608aec66895c8c93643f80 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Fri, 4 Jun 2021 15:55:01 -0500 Subject: [PATCH] do not export path.commands --- src/pixie/fontformats/opentype.nim | 2 +- src/pixie/paths.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixie/fontformats/opentype.nim b/src/pixie/fontformats/opentype.nim index bb38f6e..3e9676f 100644 --- a/src/pixie/fontformats/opentype.nim +++ b/src/pixie/fontformats/opentype.nim @@ -1445,7 +1445,7 @@ proc parseCompositeGlyph(opentype: OpenType, offset: int): Path = component.dx, component.dy, 1.0 )) - result.commands.add(subPath.commands) + result.addPath(subPath) moreComponents = (flags and 0b100000) != 0 diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 2cce6c8..c721e11 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -31,7 +31,7 @@ type Path* = object ## Used to hold paths and create paths. - commands*: seq[PathCommand] + commands: seq[PathCommand] start, at: Vec2 # Maintained by moveTo, lineTo, etc. Used by arcTo. SomePath* = Path | string