# `GSLayer.width`

*Instance Property*

Advance width for horizontal text layout.

## Declaration

```swift
var width: CGFloat { get set }
```

```objc
@property (nonatomic, assign) CGFloat width;
```

[See also `width` in the Python API](https://docu.glyphsapp.com/#GSLayer.width)

```python
pyobjc_instanceMethods.width() -> float
pyobjc_instanceMethods.setWidth_(width: float)
```

## See Also

### Horizontal Metrics

- [`GSLayer.LSB`](/Core/GlyphsCore/GSLayer/LSB) — Horizontal distance from the origin to the left outline edge.
- [`GSLayer.LSBFast`](/Core/GlyphsCore/GSLayer/LSBFast) — Cached left side bearing without updating metrics.
- [`GSLayer LSBPlain`](/Core/GlyphsCore/GSLayer/LSBPlain) — Left side bearing without normalizing the no-outline value.
- [`GSLayer.RSB`](/Core/GlyphsCore/GSLayer/RSB) — Horizontal distance from the right outline edge to the advance width.
- [`GSLayer.RSBFast`](/Core/GlyphsCore/GSLayer/RSBFast) — Cached right side bearing without updating metrics.
- [`GSLayer RSBPlain`](/Core/GlyphsCore/GSLayer/RSBPlain) — Right side bearing without normalizing the no-outline value.
- [`GSLayer lsbAtHeight:`](/Core/GlyphsCore/GSLayer/lsbAtHeight:) — Left side bearing measured at a y coordinate.
- [`GSLayer setLsb:atHeight:`](/Core/GlyphsCore/GSLayer/setLsb:atHeight:) — Sets the left side bearing measured at a y coordinate.
- [`GSLayer rsbAtHeight:`](/Core/GlyphsCore/GSLayer/rsbAtHeight:) — Right side bearing measured at a y coordinate.
- [`GSLayer setRsb:atHeight:`](/Core/GlyphsCore/GSLayer/setRsb:atHeight:) — Sets the right side bearing measured at a y coordinate.

