Overview

Side bearings describe the distance between layer content and the layer advance. Horizontal layout uses left and right side bearings with width. Vertical layout uses top and bottom side bearings with vertWidth and vertOrigin.

Metrics keys link a metric to another glyph, layer, side, or fixed value. Layer metrics keys override glyph metrics keys when present.

Topics

Horizontal Metrics

  • Advance width for horizontal text layout.

  • Horizontal distance from the origin to the left outline edge.

  • Cached left side bearing without updating metrics.

  • Left side bearing without normalizing the no-outline value.

  • Horizontal distance from the right outline edge to the advance width.

  • Cached right side bearing without updating metrics.

  • Right side bearing without normalizing the no-outline value.

  • Left side bearing measured at a y coordinate.

  • Sets the left side bearing measured at a y coordinate.

  • Right side bearing measured at a y coordinate.

  • Sets the right side bearing measured at a y coordinate.

Vertical Metrics

  • Distance from the top metric to the top outline edge.

  • Cached top side bearing without updating metrics.

  • Top side bearing without normalizing the no-outline value.

  • Distance from the bottom outline edge to the vertical advance.

  • Cached bottom side bearing without updating metrics.

  • Bottom side bearing without normalizing the no-outline value.

  • Advance width for vertical text layout.

  • Vertical origin offset for vertical text layout.

  • Top side bearing measured at an x coordinate.

  • Sets the top side bearing measured at an x coordinate.

  • Bottom side bearing measured at an x coordinate.

  • Sets the bottom side bearing measured at an x coordinate.

Master Metrics

Common Master Metrics

  • Ascender value from the associated master.

  • Descender value from the associated master.

  • Italic angle from the associated master.

  • Slant height from the associated master.

  • Top height from the associated master.

Glyph Metrics

Metric Values

Metrics Keys

Metrics Key Alignment

Metrics Sync

Horizontal Metrics Keys UI

Vertical Metrics Keys UI

Metrics Keys Utilities

Metrics Locks

Alignment Locks

Topics

Horizontal Metrics

Vertical Metrics

Master Metrics

Common Master Metrics

  • Ascender value from the associated master.

  • Descender value from the associated master.

  • Italic angle from the associated master.

  • Slant height from the associated master.

  • Top height from the associated master.

Glyph Metrics

Metric Values

Metrics Keys

Metrics Key Alignment

Metrics Sync

Horizontal Metrics Keys UI

Vertical Metrics Keys UI

Metrics Keys Utilities

Metrics Locks

Alignment Locks

See Also