Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 462144c

Browse files
committed
Added assertion up to cv99 for FontFeature.characterVariant
1 parent 1bf0734 commit 462144c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/text.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class FontFeature {
472472
/// * <https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#cv01-cv99>
473473
factory FontFeature.characterVariant(int value) {
474474
assert(value >= 1);
475-
assert(value <= 20);
475+
assert(value <= 99);
476476
return FontFeature('cv${value.toString().padLeft(2, "0")}');
477477
}
478478

0 commit comments

Comments
 (0)