Skip to main content

Module hint_reliant

Module hint_reliant 

Source
Expand description

Detection of fonts that need their TrueType instructions to draw correct contours.

These are often called β€œtricky” fonts. They are recognized by family name or by the checksums of the cvt, fpgm and prep tables. The lists of names and checksums come from FreeType.

StructsΒ§

AsciiName πŸ”’
A name decoded to ASCII the same way as FreeType.
FontId πŸ”’
TableId πŸ”’

ConstantsΒ§

HINT_RELIANT_IDS πŸ”’
https://gitlab.freedesktop.org/freetype/freetype/-/blob/80a507a6b8e3d2906ad2c8ba69329bd2fb2a85ef/src/truetype/ttobjs.c#L314
HINT_RELIANT_NAMES πŸ”’
https://gitlab.freedesktop.org/freetype/freetype/-/blob/80a507a6b8e3d2906ad2c8ba69329bd2fb2a85ef/src/truetype/ttobjs.c#L180
MAX_HINT_RELIANT_NAME_LEN πŸ”’

FunctionsΒ§

is_hint_reliant
Returns true if the font needs its instructions to draw correct contours.
is_hint_reliant_name πŸ”’
Returns true if the family name that FreeType reports for the font is on the list.
matches_hint_reliant_id_list πŸ”’
Checks for fonts that require hinting based on the length and checksum of the cvt, fpgm and prep tables.
matches_hint_reliant_name_list πŸ”’
Returns true if name contains a family name that FreeType knows to rely on hinting.