API

Function GetFontOffset

  • Get Font size information

    Parameters

    • font: string

      font name

    Returns { ascent: number; descent: number; height: number }

    an object containing ascent, height and descent