Return unicodes the face supports.
A Uint32Array of supported Unicode code points.
Return variation axis infos.
A dictionary mapping axis tags to {min, default, max} values.
Fetches the color palettes in the face's CPAL table.
An array of the face's color palettes.
Fetches a list of all lookups enumerated for the specified feature, in the specified face's GSUB table or GPOS table.
The table to query, either "GSUB" or "GPOS".
The index of the requested feature.
An array of lookup indexes.
Get the name IDs of the specified feature.
The table to query, either "GSUB" or "GPOS".
The index of the feature to query.
An object with name IDs, or undefined if not found.
Get the GDEF class of the requested glyph.
The glyph to get the class of.
The GlyphClass of the glyph.
Fetches a list of all color layers for the specified glyph index in the specified face.
The glyph index to query.
An array of the glyph's color layers.
Return all features in the specified face's GSUB table or GPOS table, underneath the specified script and language.
The table to query, either "GSUB" or "GPOS".
The index of the script to query.
The index of the language to query.
An array of 4-character feature tag strings.
Get the name of the specified face.
The ID of the name to get.
The language of the name to get.
The name string.
Return language tags in the given face's GSUB or GPOS table, underneath the specified script index.
The table to query, either "GSUB" or "GPOS".
The index of the script to query.
An array of 4-character language tag strings.
Return all features enumerated in the specified face's GSUB table or GPOS table.
The table to query, either "GSUB" or "GPOS".
An array of 4-character feature tag strings.
Return all scripts enumerated in the specified face's GSUB table or GPOS table.
The table to query, either "GSUB" or "GPOS".
An array of 4-character script tag strings.
Tests whether a face includes COLRv1 paint data for a glyph.
The glyph index to query.
true if data found, false otherwise.
Tests whether a face includes a COLR table with data according to COLRv0.
true if data found, false otherwise.
Tests whether a face includes a COLR table with data according to COLRv1.
true if data found, false otherwise.
Tests whether a face includes a CPAL color-palette table.
true if data found, false otherwise.
Tests whether a face has PNG glyph images (either in CBDT or sbix
tables).
true if data found, false otherwise.
Return all names in the specified face's name table.
An array of {nameId, language} entries.
Return the binary contents of an OpenType table.
Table name
A Uint8Array of the table data, or undefined if the table is not found.
An object representing a HarfBuzz face. A face represents a single face in a binary font file and is the foundation for creating Font objects used in text shaping.