do not export path.commands

This commit is contained in:
Ryan Oldenburg 2021-06-04 15:55:01 -05:00
parent c124b64eea
commit 046556fdef
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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