File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ default = ["system"]
17
17
std = [" skrifa/std" , " peniko/std" , " dep:memmap2" ]
18
18
libm = [" skrifa/libm" , " peniko/libm" , " dep:core_maths" ]
19
19
icu_properties = [" dep:icu_properties" ]
20
+ unicode_script = [" dep:unicode-script" ]
20
21
# Enables support for system font backends
21
22
system = [" std" ]
22
23
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ impl Script {
32
32
}
33
33
34
34
/// Returns the associated [`unicode_script::Script`] value.
35
- #[ cfg( feature = "unicode-script " ) ]
35
+ #[ cfg( feature = "unicode_script " ) ]
36
36
pub fn unicode_script ( self ) -> Option < unicode_script:: Script > {
37
37
unicode_script:: Script :: from_short_name ( core:: str:: from_utf8 ( & self . 0 ) . ok ( ) ?)
38
38
}
@@ -80,7 +80,7 @@ impl From<icu_properties::Script> for Script {
80
80
}
81
81
}
82
82
83
- #[ cfg( feature = "unicode-script " ) ]
83
+ #[ cfg( feature = "unicode_script " ) ]
84
84
impl From < unicode_script:: Script > for Script {
85
85
fn from ( value : unicode_script:: Script ) -> Self {
86
86
Self ( value. short_name ( ) . as_bytes ( ) . try_into ( ) . unwrap_or_default ( ) )
You can’t perform that action at this time.
0 commit comments