API Collection
GSLayer Hints
Manual and generated hint data on a layer.
Overview
Hints include PostScript hints, TrueType instructions, and path component hints such as corners, caps, brushes, and segments.
Layer hint APIs preserve ownership, undo, and layer update behavior when hints are added or removed through the normal mutation methods. Fast hint access is for setup and performance-sensitive internal code that handles those responsibilities itself.
Topics
Hints
Layer hints.
Low-level hint storage access.
The number of stored hints.
The number of PostScript hints.
The index of a hint, or
nilwhen the hint is not in the layer.The hint for a stable hint key.
The hint at an index.
Adding Hints
Adds a hint.
Adds a hint, checking for an existing path component hint at the same index path.
Inserts a hint at an index.
Removing Hints
Removes a hint.
Removes the hint at an index.
Hint Queries
Whether the layer has PostScript or TrueType hints.
Whether the layer has TrueType hints.
Whether the layer has PostScript hints.
Whether the layer has path component hints.
The TrueType hints stored on the layer.
The PostScript hints stored on the layer.
The path component hints stored on the layer.
Hint Updates
Updates path component hints after referenced glyphs or components changed.
Saves hint positions before path changes.
Restores saved hint positions after path changes.
Updates hint indexes from their referenced nodes.
Adjusts hints after reversing paths.
Applies TrueType hints to the layer at a scale.
Autohinting
Adds generated PostScript hints to the layer.
Adds generated PostScript hints to the layer.
Generates PostScript hints for the layer.
Extracts PostScript hints from Type 2 charstring text.
Extracts PostScript hints from Type 2 charstring text.
Builds a PostScript hint from a charstring stem pair.
Hint Locks
Acquires the read lock for hints.
Releases the read lock for hints.
Acquires the write lock for hints.
Releases the write lock for hints.
Topics
Hints
Layer hints.
Low-level hint storage access.
The number of stored hints.
The number of PostScript hints.
The index of a hint in the layer.
The hint for a stable hint key.
The hint at an index.
Adding Hints
Adds a hint.
Adds a hint, checking for an existing path component hint at the same index path.
Inserts a hint at an index.
Removing Hints
Removes a hint.
Removes the hint at an index.
Hint Queries
Whether the layer has PostScript or TrueType hints.
Whether the layer has TrueType hints.
Whether the layer has PostScript hints.
Whether the layer has path component hints.
The TrueType hints stored on the layer.
The PostScript hints stored on the layer.
The path component hints stored on the layer.
Hint Updates
Updates path component hints after referenced glyphs or components changed.
Saves hint positions before path changes.
Restores saved hint positions after path changes.
Updates hint indexes from their referenced nodes.
Adjusts hints after reversing paths.
Applies TrueType hints to the layer at a scale.
Autohinting
Adds generated PostScript hints to the layer.
Adds generated PostScript hints to the layer.
Generates PostScript hints for the layer.
Extracts PostScript hints from Type 2 charstring text.
Extracts PostScript hints from Type 2 charstring text.
Builds a PostScript hint from a charstring stem pair.
Hint Locks
Acquires the read lock for hints.
Releases the read lock for hints.
Acquires the write lock for hints.
Releases the write lock for hints.
See Also
The different roles that a layer can serve.
The paths and components that form the outline of a layer.
Bounding rectangles of outlines, selections, and metrics.
Side bearings, baseline offsets, layer box, and metrics keys.
Setting for rounding coordinates on a layer.
Background content and reference images associated with a layer.
Named attachment points on a layer.
Layer-local guides used while editing outlines.
Spacing adjustment between specific layers.
Layer-local notes displayed with a glyph.
Axis coordinates and rules that place layers in a design space.
Colors used to draw a layer.
Additional values stored for a layer.
Intersections between layer outlines and line segments.
Operations for modifying outlines and other layer content.