Initializer
init(string:isClosed:) pathWithString:isClosed: pathWithString_isClosed_
Creates a path from a sequence of node element strings.
Declaration
convenience init?(string pathString: String, isClosed: Bool)Declaration
+ (instancetype) pathWithString:(NSString *) pathString isClosed:(BOOL) isClosed;Declaration
pathWithString_isClosed_(pathString: str, isClosed: bool) -> GSPathParameters
isClosedWhether to create a closed path.
Discussion
Separate node element strings with semicolons. Do not include surrounding quotation marks or trailing whitespace.
For example:
@"369 29 o;450 61 o;509 118 o;542 196 o;542 241 qs;542 324 o;482 381 q;322 29 l"May return nil when the path string cannot be parsed.
See Also
Creating a Path
Creates a path from a Glyphs file dictionary representation.
Creates a path from the Glyphs file representation at the current parser position.
Creates a closed rectangular path enclosing the rectangle.
Creates a closed cubic path approximating an ellipse inside the rectangle.
Creates a closed cubic path approximating a circle.
Creates a closed cubic path approximating an ellipse.