This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ class FontFeature {
472
472
/// * <https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#cv01-cv99>
473
473
factory FontFeature .characterVariant (int value) {
474
474
assert (value >= 1 );
475
- assert (value <= 20 );
475
+ assert (value <= 99 );
476
476
return FontFeature ('cv${value .toString ().padLeft (2 , "0" )}' );
477
477
}
478
478
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ void testFontFeatureClass() {
198
198
expect (const FontFeature .caseSensitiveForms (), const FontFeature ('case' , 1 ));
199
199
expect ( FontFeature .characterVariant (1 ), const FontFeature ('cv01' , 1 ));
200
200
expect ( FontFeature .characterVariant (18 ), const FontFeature ('cv18' , 1 ));
201
+ expect ( FontFeature .characterVariant (99 ), const FontFeature ('cv99' , 1 ));
201
202
expect (const FontFeature .denominator (), const FontFeature ('dnom' , 1 ));
202
203
expect (const FontFeature .fractions (), const FontFeature ('frac' , 1 ));
203
204
expect (const FontFeature .historicalForms (), const FontFeature ('hist' , 1 ));
You can’t perform that action at this time.
0 commit comments