Return glyph extents.
ID of the requested glyph in the font.
An object with xBearing, yBearing, width, and height, or null.
Return glyph ID from name.
Name of the requested glyph in the font.
The glyph ID, or null 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 null 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 null if not available.
Return font horizontal extents.
Object with ascender, descender, and lineGap properties.
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.
Set the font's variations.
Dictionary of variations to set.
Create a sub font that inherits this font's properties.
A new Font object representing the sub font.
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.