# `GSLayer metricKeyOffsetLeft:right:width:`

*Instance Method*

Metrics key offsets used by automatic component alignment.

## Declaration

```objc
- (void) metricKeyOffsetLeft:(CGFloat *) leftOffset right:(CGFloat *) rightOffset width:(CGFloat *) width;
```

```python
metricKeyOffsetLeft_right_width_(leftOffset: float, rightOffset: float, width: float)
```

## Parameters

- `leftOffset` — On return, the left side-bearing offset.
- `rightOffset` — On return, the right side-bearing offset.
- `width` — On return, the width from the width metrics key, or `NSNotFound`.

## See Also

### Metrics Key Alignment

- [`GSLayer.hasAlignedWidth`](/Core/GlyphsCore/GSLayer/hasAlignedWidth) — Whether automatic alignment controls the layer width.
- [`GSLayer hasAlignedSideBearings`](/Core/GlyphsCore/GSLayer/hasAlignedSideBearings) — Whether automatic alignment controls side bearings.
- [`GSLayer.isAligned`](/Core/GlyphsCore/GSLayer/isAligned) — Whether components are currently aligned by automatic alignment.
- [`GSLayer.isAligning`](/Core/GlyphsCore/GSLayer/isAligning) — Whether an automatic alignment operation is in progress.
- [`GSLayer checkIfAlign`](/Core/GlyphsCore/GSLayer/checkIfAlign) — Whether automatic component alignment can be applied to the layer.
- [`GSLayer doAlignWidth`](/Core/GlyphsCore/GSLayer/doAlignWidth) — Applies automatic width alignment.

