Class Font

Hierarchy

  • Font

Constructors

  • Parameters

    • data: FontData

    Returns Font

Properties

charGeometryCache: any
data: FontData
isCCW: boolean

Methods

  • Parameters

    • text: string
    • fontSize: number
    • Optional lineHeight: number
    • Optional align: "center" | "left" | "right"
    • Optional textBaseline: "top" | "bottom" | "alphabetic" | "middle"
    • Optional tabCharWidth: number

    Returns {
        indices: Uint32Array;
        normals: Float32Array;
        uvs: Float32Array;
        vertices: Float32Array;
    }

    • indices: Uint32Array
    • normals: Float32Array
    • uvs: Float32Array
    • vertices: Float32Array
  • Parameters

    • char: string
    • Optional geometry: {
          indices: number[];
          points: number[];
      }
      • indices: number[]
      • points: number[]

    Returns {
        geometry: {
            indices: number[];
            points: number[];
        };
        width: number;
    }

    • geometry: {
          indices: number[];
          points: number[];
      }
      • indices: number[]
      • points: number[]
    • width: number
  • Parameters

    • text: string
    • size: number
    • Optional lineHeight: number
    • Optional align: "center" | "left" | "right"

    Returns Shape2[]

Generated using TypeDoc