Function getFontStyleFromPath

  • Infers the font style from a font file path. Supports italic and oblique.

    Parameters

    • path: string

      Path of the font file.

    Returns FontStyle

    The font style of the font file. Defaults to normal if unable to infer.