brepjs API Reference
    Preparing search index...

    Function setFallbackFont

    • Register a font that text functions use when no font has been loaded.

      Unlike loadFont, this does not occupy the 'default' family: once any font is loaded, it takes precedence over the fallback.

      Parameters

      • fontData: ArrayBuffer

        Raw OpenType/TrueType font bytes.

      Returns Result<OpenTypeFont>

      The parsed opentype.js Font object.