three-text-geometry
    Preparing search index...

    Function useFont

    • Custom hook to load a font and its texture.

      Parameters

      • fontUrl: null | string = null

        The URL of the font file.

      • textureUrl: null | string = null

        The URL of the texture file.

      • onProgress: null | FontProgressCallback = null

        The function to call with the progress of the font file download.

      Returns {
          font: BMFont;
          fontError: null | Error;
          isLoading: boolean;
          texture: Texture;
          textureError: null | Error;
      }

      • The font data, texture, and loading state.