# GSLayer Bounds

*API Collection*

Bounding rectangles of outlines, selections, and metrics.

## Overview

Layer bounds describe shape geometry in layer coordinates.

Missing bounds information is indicated either by returning `NSZeroRect` or `CGRectNull` depending on the API. Check the specific API documentation for more details.

## Topics

### Bounds

- [`GSLayer bounds`](/Core/GlyphsCore/GSLayer/bounds) — The drawable bounds of the layer.
- [`GSLayer fastBounds`](/Core/GlyphsCore/GSLayer/fastBounds) — The overestimated bounds of the layer’s shapes.
- [`GSLayer.minX`](/Core/GlyphsCore/GSLayer/minX) — Left edge of [`GSLayer bounds`](/Core/GlyphsCore/GSLayer/bounds).
- [`GSLayer.minY`](/Core/GlyphsCore/GSLayer/minY) — Bottom edge of [`GSLayer bounds`](/Core/GlyphsCore/GSLayer/bounds).
- [`GSLayer.maxX`](/Core/GlyphsCore/GSLayer/maxX) — Right edge of [`GSLayer bounds`](/Core/GlyphsCore/GSLayer/bounds).
- [`GSLayer.maxY`](/Core/GlyphsCore/GSLayer/maxY) — Top edge of [`GSLayer bounds`](/Core/GlyphsCore/GSLayer/bounds).
- [`GSLayer boundsTransform:`](/Core/GlyphsCore/GSLayer/boundsTransform:) — The drawable bounds of the layer after applying a transform.
- [`GSLayer boundsAngle:`](/Core/GlyphsCore/GSLayer/boundsAngle:) — The drawable bounds of the layer after applying a transform.
- [`GSLayer boundsOfSelection`](/Core/GlyphsCore/GSLayer/boundsOfSelection) — The bounds of the current selection.
- [`GSLayer boundsOfSelectionAngle:`](/Core/GlyphsCore/GSLayer/boundsOfSelectionAngle:) — The bounds of the current selection after applying a transform.

### Metrics Geometry

- [`GSLayer metricsBoundsInWritingDirection:`](/Core/GlyphsCore/GSLayer/metricsBoundsInWritingDirection:) — The metrics rectangle for a writing direction.
- [`GSLayer metricsTransform`](/Core/GlyphsCore/GSLayer/metricsTransform) — The transform used to draw metrics in layer coordinates.

## See Also

- [GSLayer Kind](/Core/GlyphsCore/GSLayer-Kind) — The different roles that a layer can serve.
- [GSLayer Shapes](/Core/GlyphsCore/GSLayer-Shapes) — The paths and components that form the outline of a layer.
- [GSLayer Metrics](/Core/GlyphsCore/GSLayer-Metrics) — Side bearings, baseline offsets, layer box, and metrics keys.
- [GSLayer Grid](/Core/GlyphsCore/GSLayer-Grid) — Setting for rounding coordinates on a layer.
- [GSLayer Background](/Core/GlyphsCore/GSLayer-Background) — Background content and reference images associated with a layer.
- [GSLayer Anchors](/Core/GlyphsCore/GSLayer-Anchors) — Named attachment points on a layer.
- [GSLayer Hints](/Core/GlyphsCore/GSLayer-Hints) — Manual and generated hint data on a layer.
- [GSLayer Guides](/Core/GlyphsCore/GSLayer-Guides) — Layer-local guides used while editing outlines.
- [GSLayer Kerning](/Core/GlyphsCore/GSLayer-Kerning) — Spacing adjustment between specific layers.
- [GSLayer Annotations](/Core/GlyphsCore/GSLayer-Annotations) — Layer-local notes displayed with a glyph.
- [GSLayer Interpolation](/Core/GlyphsCore/GSLayer-Interpolation) — Axis coordinates and rules that place layers in a design space.
- [GSLayer Color](/Core/GlyphsCore/GSLayer-Color) — Colors used to draw a layer.
- [GSLayer Attributes](/Core/GlyphsCore/GSLayer-Attributes) — Additional values stored for a layer.
- [GSLayer Inspection](/Core/GlyphsCore/GSLayer-Inspection) — Intersections between layer outlines and line segments.
- [GSLayer Editing](/Core/GlyphsCore/GSLayer-Editing) — Operations for modifying outlines and other layer content.

