FontFace extension type

The FontFace interface of the CSS Font Loading API represents a single usable font face.

This interface defines the source of a font face, either a URL to an external resource or a buffer, and font properties such as style, weight, and so on. For URL font sources it allows authors to trigger when the remote font is fetched and loaded, and to track loading status.

on
Implemented types

Constructors

FontFace(String family, JSAny source, [FontFaceDescriptors descriptors])
factory

Properties

ascentOverride String
getter/setter pair
descentOverride String
getter/setter pair
display String
getter/setter pair
family String
getter/setter pair
features FontFaceFeatures
no setter
featureSettings String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lineGapOverride String
getter/setter pair
loaded JSPromise<FontFace>
no setter
palettes FontFacePalettes
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status FontFaceLoadStatus
no setter
stretch String
getter/setter pair
style String
getter/setter pair
unicodeRange String
getter/setter pair
variations FontFaceVariations
no setter
variationSettings String
getter/setter pair
weight String
getter/setter pair

Methods

load() JSPromise<FontFace>
The load() method of the FontFace interface requests and loads a font whose source was specified as a URL. It returns a Promise that resolves with the current FontFace object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited