load method

JSPromise<JSArray<FontFace>> load(
  1. String font, [
  2. String text
])

The load() method of the FontFaceSet forces all the fonts given in parameters to be loaded.

Implementation

external JSPromise<JSArray<FontFace>> load(
  String font, [
  String text,
]);