• Registers a font that is not installed as a system font. This must be used before creating Canvas instances.

    Parameters

    • path: string

      Path to local font file.

    • fontFace: {}

      Description of the font face, corresponding to CSS properties used in @font-face rules.

      Returns void

    Generated using TypeDoc