FontLoader Class

Module: Loaders

FontLoader can be used to load external font resources.

Item Index

Methods

Methods

load

(
  • url
  • onLoad
  • onProgress
  • onError
)

Load font file from URL.

Parameters:

  • url String
  • onLoad Function
  • onProgress Function
  • onError Function

parse

(
  • json
)
Font

Parse font json and return resource.

Parameters:

  • json Object

Returns:

Font:

Font resource