FontFace class

Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.

Constructors

FontFace({required String fontFamily, required String fontStyle, required String fontVariant, required String fontWeight, required String fontStretch, required String fontDisplay, required String unicodeRange, required String src, required String platformFontFamily, List<FontVariationAxis>? fontVariationAxes})
FontFace.fromJson(Map<String, dynamic> json)
factory

Properties

fontDisplay String
The font-display.
final
fontFamily String
The font-family.
final
fontStretch String
The font-stretch.
final
fontStyle String
The font-style.
final
fontVariant String
The font-variant.
final
fontVariationAxes List<FontVariationAxis>?
Available variation settings (a.k.a. "axes").
final
fontWeight String
The font-weight.
final
hashCode int
The hash code for this object.
no setterinherited
platformFontFamily String
The resolved platform font family
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
src String
The src.
final
unicodeRange String
The unicode-range.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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