three-text-geometry
    Preparing search index...

    Class BMFontJsonParser

    The class for parsing font data in JSON format.

    BMFontJsonParser

    Implements

    • IBMFontParser<object | string>
    Index

    Constructors

    Methods

    Constructors

    Methods

    • The function that parses font data from a JSON string or object.

      import { BMFontJsonParser } from 'three-text-geometry'

      const data: object | string = ...json data...
      const parser = new BMFontJsonParser();
      const font: BMFont = parser.parse(data)

      Parameters

      • json: string | object

        object or string that contains font data.

      Returns BMFont

      Parsed data that conforms to the BMFont interface.

      BMFontJsonParser