# `GSLayer importOutlinesFromURL:scale:error:`

*Instance Method*

Imports outlines and adds them to the layer.

## Declaration

```swift
func importOutlines(from fileURL: URL, scale: CGFloat) throws
```

```objc
- (BOOL) importOutlinesFromURL:(NSURL *) fileURL scale:(CGFloat) scale error:(NSError **) error;
```

```python
importOutlinesFromURL_scale_error_(fileURL: NSURL, scale: float) -> tuple[bool, NSError]
```

## Parameters

- `fileURL` — The URL of an SVG, EPS, or PDF file.
- `scale` — The scale applied while reading the file.
- `error` — On failure, information about the error.

## Return Value

Whether the outlines were imported.

## Discussion

The imported outlines become the selection.

## See Also

### Importing Outlines

- [`GSLayer canImportOutlinesFromFile:`](/Core/GlyphsCore/GSLayer/canImportOutlinesFromFile:) — Whether a file name identifies a supported outline format.
- [`GSLayer canImportOutlinesFromURL:`](/Core/GlyphsCore/GSLayer/canImportOutlinesFromURL:) — Whether a file URL identifies a supported outline format.
- [`GSLayer scaleToFullHeight:bounds:`](/Core/GlyphsCore/GSLayer/scaleToFullHeight:bounds:) — Scales the layer contents to the vertical span of the glyph metrics.

