FontOptions class

Options for font selection.

Constructors

FontOptions({String fontFamily = 'Main', FontWeight fontWeight = FontWeight.normal, FontStyle fontShape = FontStyle.normal, List<FontOptions> fallback = const []})
const

Properties

fallback List<FontOptions>
Fallback font options if a character cannot be found in this font.
final
fontFamily String
Font family. E.g. Main, Math, Sans-Serif, etc.
final
fontName String
Complete font name. Used to index CharacterMetrics.
no setter
fontShape FontStyle
Font weight. Italic or normal.
final
fontWeight FontWeight
Font weight. Bold or normal.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? fontFamily, FontWeight? fontWeight, FontStyle? fontShape, List<FontOptions>? fallback}) FontOptions
Utility method.
mergeWith(PartialFontOptions? value) FontOptions
Merge a font difference into current font.
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 o) bool
The equality operator.
override