Skip to content

Commit dd6eb2a

Browse files
authored
Fix SLASHED_ZERO tag (#22871)
# Objective The `SLASHED_ZERO` `FontFeatureTag` constant is set to "ordn" but the correct tag is "zero". https://en.wikipedia.org/wiki/List_of_typographic_features ## Solution Set it to "zero".
1 parent a6d9870 commit dd6eb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_text/src/text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ impl FontFeatureTag {
760760
pub const ORDINALS: FontFeatureTag = FontFeatureTag::new(b"ordn");
761761

762762
/// Uses a slashed version of zero (0) to differentiate from O.
763-
pub const SLASHED_ZERO: FontFeatureTag = FontFeatureTag::new(b"ordn");
763+
pub const SLASHED_ZERO: FontFeatureTag = FontFeatureTag::new(b"zero");
764764

765765
/// Replaces figures with superscript figures, e.g. for indicating footnotes.
766766
pub const SUPERSCRIPT: FontFeatureTag = FontFeatureTag::new(b"sups");

0 commit comments

Comments
 (0)