# `GSLayer scaleToFullHeight:bounds:`

*Instance Method*

Scales the layer contents to the vertical span of the glyph metrics.

## Declaration

```swift
func scale(toFullHeight layerMetrics: GSGlyphMetrics, bounds: NSRect)
```

```objc
- (void) scaleToFullHeight:(GSGlyphMetrics) layerMetrics bounds:(NSRect) bounds;
```

```python
scaleToFullHeight_bounds_(layerMetrics: GSGlyphMetrics, bounds: NSRect)
```

## Parameters

- `layerMetrics` — The target vertical metrics.
- `bounds` — The source bounds to use when the layer has no enclosing rectangular path.

## Discussion

A rectangular path enclosing the other content is treated as the source bounds and removed.

## 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 importOutlinesFromURL:scale:error:`](/Core/GlyphsCore/GSLayer/importOutlinesFromURL:scale:error:) — Imports outlines and adds them to the layer.

