@@ -59,6 +59,7 @@ class MarkdownStyleSheet {
59
59
this .orderedListAlign = WrapAlignment .start,
60
60
this .blockquoteAlign = WrapAlignment .start,
61
61
this .codeblockAlign = WrapAlignment .start,
62
+ this .superscriptFontFeatureTag,
62
63
@Deprecated ('Use textScaler instead.' ) this .textScaleFactor,
63
64
TextScaler ? textScaler,
64
65
}) : assert (
@@ -391,6 +392,7 @@ class MarkdownStyleSheet {
391
392
WrapAlignment ? orderedListAlign,
392
393
WrapAlignment ? blockquoteAlign,
393
394
WrapAlignment ? codeblockAlign,
395
+ String ? superscriptFontFeatureTag,
394
396
@Deprecated ('Use textScaler instead.' ) double ? textScaleFactor,
395
397
TextScaler ? textScaler,
396
398
}) {
@@ -457,6 +459,8 @@ class MarkdownStyleSheet {
457
459
orderedListAlign: orderedListAlign ?? this .orderedListAlign,
458
460
blockquoteAlign: blockquoteAlign ?? this .blockquoteAlign,
459
461
codeblockAlign: codeblockAlign ?? this .codeblockAlign,
462
+ superscriptFontFeatureTag:
463
+ superscriptFontFeatureTag ?? this .superscriptFontFeatureTag,
460
464
textScaler: newTextScaler,
461
465
textScaleFactor: nextTextScaleFactor,
462
466
);
@@ -520,6 +524,7 @@ class MarkdownStyleSheet {
520
524
blockquoteAlign: other.blockquoteAlign,
521
525
codeblockAlign: other.codeblockAlign,
522
526
textScaleFactor: other.textScaleFactor,
527
+ superscriptFontFeatureTag: other.superscriptFontFeatureTag,
523
528
// Only one of textScaler and textScaleFactor can be passed. If
524
529
// other.textScaleFactor is non-null, then the sheet was created with a
525
530
// textScaleFactor and the textScaler was derived from that, so should be
@@ -688,6 +693,10 @@ class MarkdownStyleSheet {
688
693
@Deprecated ('Use textScaler instead.' )
689
694
final double ? textScaleFactor;
690
695
696
+ /// Custom font feature tag for font which does not support `sups'
697
+ /// feature to create superscript in footnotes.
698
+ final String ? superscriptFontFeatureTag;
699
+
691
700
/// A [Map] from element name to the corresponding [TextStyle] object.
692
701
Map <String , TextStyle ?> get styles => _styles;
693
702
Map <String , TextStyle ?> _styles;
@@ -752,6 +761,7 @@ class MarkdownStyleSheet {
752
761
other.orderedListAlign == orderedListAlign &&
753
762
other.blockquoteAlign == blockquoteAlign &&
754
763
other.codeblockAlign == codeblockAlign &&
764
+ other.superscriptFontFeatureTag == superscriptFontFeatureTag &&
755
765
other.textScaler == textScaler;
756
766
}
757
767
@@ -811,6 +821,7 @@ class MarkdownStyleSheet {
811
821
codeblockAlign,
812
822
textScaler,
813
823
textScaleFactor,
824
+ superscriptFontFeatureTag,
814
825
]);
815
826
}
816
827
}
0 commit comments