Function getFontWeightFromPath

  • Infers the font weight from a font file path.

    Parameters

    • path: string

      Path of the font file.

    Returns FontWeight

    The font weight of the font file. Defaults to normal (400).