Instance Method
importOutlines(from:scale:) importOutlinesFromURL:scale:error: importOutlinesFromURL_scale_error_
Imports outlines and adds them to the layer.
Declaration
func importOutlines(from fileURL: URL, scale: CGFloat) throwsDeclaration
- (BOOL) importOutlinesFromURL:(NSURL *) fileURL scale:(CGFloat) scale error:(NSError **) error;Declaration
importOutlinesFromURL_scale_error_(fileURL: NSURL, scale: float) -> tuple[bool, NSError]Parameters
fileURLThe URL of an SVG, EPS, or PDF file.
scaleThe scale applied while reading the file.
Parameters
fileURLThe URL of an SVG, EPS, or PDF file.
scaleThe scale applied while reading the file.
errorOn failure, information about the error.
Discussion
The imported outlines become the selection.
Return Value
Whether the outlines were imported.
Discussion
The imported outlines become the selection.
See Also
Importing Outlines
Whether a file name identifies a supported outline format.
Whether a file URL identifies a supported outline format.
Scales the layer contents to the vertical span of the glyph metrics.