new Font(path[, options = null, callback = null])
-
path
(String
)
– The relative or absolute path to a font resource. The path should omit the file extension, and supply a formats
property in the options
argument.
-
options
(Object
)
– Optional. An object containing the instance properties that need to be changed from the default. With Font
, a formats
Array options will most likely be specified to inform the engine which different file types are available for use.
-
callback
(Function
)
– Optional. The function to invoke when the load
event is emitted.