@@ -37,6 +37,14 @@ class Style {
37
37
/// Default: Theme.of(context).style.textTheme.body1.fontFamily
38
38
String ? fontFamily;
39
39
40
+
41
+ /// The list of font families to fall back on when a glyph cannot be found in default font family.
42
+ ///
43
+ /// Inherited: yes,
44
+ /// Default: null
45
+ List <String >? fontFamilyFallback;
46
+
47
+
40
48
/// CSS attribute "`font-feature-settings` "
41
49
///
42
50
/// Inherited: yes,
@@ -199,6 +207,7 @@ class Style {
199
207
this .direction,
200
208
this .display,
201
209
this .fontFamily,
210
+ this .fontFamilyFallback,
202
211
this .fontFeatureSettings,
203
212
this .fontSize,
204
213
this .fontStyle,
@@ -263,6 +272,7 @@ class Style {
263
272
decorationStyle: textDecorationStyle,
264
273
decorationThickness: textDecorationThickness,
265
274
fontFamily: fontFamily,
275
+ fontFamilyFallback: fontFamilyFallback,
266
276
fontFeatures: fontFeatureSettings,
267
277
fontSize: fontSize? .size,
268
278
fontStyle: fontStyle,
@@ -288,6 +298,7 @@ class Style {
288
298
direction: other.direction,
289
299
display: other.display,
290
300
fontFamily: other.fontFamily,
301
+ fontFamilyFallback: other.fontFamilyFallback,
291
302
fontFeatureSettings: other.fontFeatureSettings,
292
303
fontSize: other.fontSize,
293
304
fontStyle: other.fontStyle,
@@ -341,6 +352,7 @@ class Style {
341
352
direction: child.direction ?? direction,
342
353
display: display == Display .NONE ? display : child.display,
343
354
fontFamily: child.fontFamily ?? fontFamily,
355
+ fontFamilyFallback: child.fontFamilyFallback ?? fontFamilyFallback,
344
356
fontFeatureSettings: child.fontFeatureSettings ?? fontFeatureSettings,
345
357
fontSize: finalFontSize,
346
358
fontStyle: child.fontStyle ?? fontStyle,
@@ -368,6 +380,7 @@ class Style {
368
380
TextDirection ? direction,
369
381
Display ? display,
370
382
String ? fontFamily,
383
+ List <String >? fontFamilyFallback,
371
384
List <FontFeature >? fontFeatureSettings,
372
385
FontSize ? fontSize,
373
386
FontStyle ? fontStyle,
@@ -405,6 +418,7 @@ class Style {
405
418
direction: direction ?? this .direction,
406
419
display: display ?? this .display,
407
420
fontFamily: fontFamily ?? this .fontFamily,
421
+ fontFamilyFallback: fontFamilyFallback ?? this .fontFamilyFallback,
408
422
fontFeatureSettings: fontFeatureSettings ?? this .fontFeatureSettings,
409
423
fontSize: fontSize ?? this .fontSize,
410
424
fontStyle: fontStyle ?? this .fontStyle,
@@ -446,6 +460,7 @@ class Style {
446
460
this .textDecorationStyle = textStyle.decorationStyle;
447
461
this .textDecorationThickness = textStyle.decorationThickness;
448
462
this .fontFamily = textStyle.fontFamily;
463
+ this .fontFamilyFallback = textStyle.fontFamilyFallback;
449
464
this .fontFeatureSettings = textStyle.fontFeatures;
450
465
this .fontSize = FontSize (textStyle.fontSize);
451
466
this .fontStyle = textStyle.fontStyle;
0 commit comments