Module hint

Source
Expand description

CFF hinting.

Structsยง

BlueZone ๐Ÿ”’
See https://gitlab.freedesktop.org/freetype/freetype/-/blob/80a507a6b8e3d2906ad2c8ba69329bd2fb2a85ef/src/psaux/psblues.h#L129
Hint ๐Ÿ”’
https://gitlab.freedesktop.org/freetype/freetype/-/blob/80a507a6b8e3d2906ad2c8ba69329bd2fb2a85ef/src/psaux/psblues.h#L118
HintMap ๐Ÿ”’
Collection of adjusted hint edges.
HintMask ๐Ÿ”’
Bitmask that specifies which hints are currently active.
HintParams ๐Ÿ”’
Parameters used to generate the stem and counter zones for the hinting algorithm.
HintState ๐Ÿ”’
Hinting state for a PostScript subfont.
HintingSink ๐Ÿ”’
StemHint ๐Ÿ”’
https://gitlab.freedesktop.org/freetype/freetype/-/blob/80a507a6b8e3d2906ad2c8ba69329bd2fb2a85ef/src/psaux/pshints.h#L85

Constantsยง

EPSILON ๐Ÿ”’
GHOST_BOTTOM ๐Ÿ”’
GHOST_TOP ๐Ÿ”’
HINT_MASK_SIZE ๐Ÿ”’
ICF_BOTTOM ๐Ÿ”’
ICF_TOP ๐Ÿ”’
LOCKED ๐Ÿ”’
MAX_BLUES ๐Ÿ”’
MAX_BLUE_ZONES ๐Ÿ”’
MAX_HINTS ๐Ÿ”’
MAX_OTHER_BLUES ๐Ÿ”’
MIN_COUNTER ๐Ÿ”’
PAIR_BOTTOM ๐Ÿ”’
PAIR_TOP ๐Ÿ”’
SYNTHETIC ๐Ÿ”’

Functionsยง

half ๐Ÿ”’
midpoint ๐Ÿ”’
Computes midpoint between a and b, avoiding overflow if the sum of the high 16 bits exceeds i16::MAX.
msb_mask ๐Ÿ”’
Returns a bit mask for the selected bit with the most significant bit at index 0.
trunc ๐Ÿ”’
FreeType converts from 16.16 to 26.6 by truncation. We keep our values in 16.16 so simply zero the low 10 bits to match the precision when converting to f32.
twice ๐Ÿ”’