Fetches the glyph ID for a Unicode code point in the specified font, with an optional variation selector.
If variationSelector is 0, it is equivalent to
Font.nominalGlyph; otherwise it is equivalent to
Font.variationGlyph.
The Unicode code point to query.
A variation-selector code point.
The glyph ID, or undefined if not found.
Return glyph extents.
ID of the requested glyph in the font.
An object with xBearing, yBearing, width, and height, or undefined.
Return glyph ID from name.
Name of the requested glyph in the font.
The glyph ID, or undefined if not found.
Return glyph horizontal advance.
ID of the requested glyph in the font.
The horizontal advance width.
Return glyph horizontal origin.
ID of the requested glyph in the font.
[x, y] origin coordinates, or undefined if not available.
Return glyph name.
ID of the requested glyph in the font.
The glyph name string.
Return a glyph as a JSON path string based on format described on https://svgwg.org/specs/paths/#InterfaceSVGPathSegment
ID of the requested glyph in the font.
An array of path segment objects with type and values.
Return a glyph as an SVG path string.
ID of the requested glyph in the font.
SVG path data string.
Return glyph vertical advance.
ID of the requested glyph in the font.
The vertical advance height.
Return glyph vertical origin.
ID of the requested glyph in the font.
[x, y] origin coordinates, or undefined if not available.
Return font horizontal extents.
Object with ascender, descender, and lineGap properties.
Fetches the nominal glyph ID for a Unicode code point in the specified font.
This version of the function should not be used to fetch glyph IDs for code points modified by variation selectors. For variation-selector support, use Font.variationGlyph or Font.glyph.
The Unicode code point to query.
The glyph ID, or undefined if not found.
Set the font's scale factor, affecting the position values returned from shaping.
Units to scale in the X dimension.
Units to scale in the Y dimension.
Applies a list of font-variation settings to a font.
Note that this overrides all existing variations set on the font.
Axes not included in variations will be effectively set to their
default values.
Array of variation settings to apply.
Create a sub font that inherits this font's properties.
A new Font object representing the sub font.
Fetches the glyph ID for a Unicode code point when followed by by the specified variation-selector code point, in the specified font.
The Unicode code point to query.
The variation-selector code point to query.
The glyph ID, or undefined if not found.
Return font vertical extents.
Object with ascender, descender, and lineGap properties.
An object representing a HarfBuzz font. A font represents a face at a specific size and with certain other parameters (pixels-per-em, variation settings) specified. Fonts are the primary input to the shaping process.