Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Font

Hierarchy

  • Font

Index

Constructors

constructor

Methods

getGlyph

  • getGlyph(codePoint: number, characterSize: number, bold: boolean, outlineThickness?: number): Glyph
  • Parameters

    • codePoint: number
    • characterSize: number
    • bold: boolean
    • Optional outlineThickness: number

    Returns Glyph

getInfo

getKerning

  • getKerning(first: number, second: number, characterSize: number): number
  • Parameters

    • first: number
    • second: number
    • characterSize: number

    Returns number

getLineSpacing

  • getLineSpacing(characterSize: number): number

getUnderlinePosition

  • getUnderlinePosition(characterSize: number): number

getUnderlineThickness

  • getUnderlineThickness(characterSize: number): number

loadFromFile

  • loadFromFile(filename: string): Promise<void>

loadFromFileSync

  • loadFromFileSync(filename: string): boolean

loadFromMemory

  • loadFromMemory(buff: Buffer): boolean

Generated using TypeDoc