Custom hook to load a font and its texture.

  • Parameters

    • fontUrl: string

      The URL of the font file.

    • textureUrl: string

      The URL of the texture file.

    Returns {
        data: {
            font: BMFont;
            texture: Texture;
        };
        isLoading: boolean;
    }

    • The font data and loading state.
    • data: {
          font: BMFont;
          texture: Texture;
      }
    • isLoading: boolean