Skip to content

Variable: FontFace ​

ts
FontFace: {
(family, source, descriptors?): FontFace;
  prototype: FontFace;
};

Defined in: types/desktop-engine.d.ts:5229

Type Declaration ​

Throws a TypeError with fewer than two arguments; a family, descriptors or source that aren't valid make a face of status "error"

Parameters ​

ParameterType
familystring
sourcestring | ArrayBuffer | ArrayBufferView<ArrayBufferLike>
descriptors?FontFaceDescriptors

Returns ​

FontFace

NameTypeDefined in
prototypeFontFacetypes/desktop-engine.d.ts:5255

The SDK is released under the Apache License 2.0