Creates a new ShxFont instance.
Either raw binary data of the SHX font file (ArrayBuffer) or pre-parsed font data (ShxFontData)
Gets the shape data for a specific character at a given font size.
The character code to get the shape for
The desired font size
The shape data for the character, or undefined if the character is not found in the font
Gets the shape data for a named shape at a given font size. Shape names are matched case-insensitively.
The shape name to get the shape for
The desired font size
The shape data for the named shape, or undefined if it is not found in the font
Gets the character code for a named shape.
The shape name to look up
The character code, or undefined if the shape is not found
Gets the shape name for a character code, if one is defined.
The character code to look up
The shape name, or undefined if the code has no name
Return true if this font contains glyph of the specified character. Otherwise, return false.
True if this font contains glyph of the specified character. Otherwise, return false.
Return true if this font contains a shape with the specified name. Otherwise, return false. Shape names are matched case-insensitively.
The shape name to check (for example, "GRS")
True if this font contains the named shape. Otherwise, return false.
Releases resources used by the font. This should be called when the font is no longer needed to free up memory.
Represents a SHX font and provides methods to parse and render its characters. This class handles the loading and parsing of SHX font files, and provides methods to extract character shapes for rendering.