mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Support font-feature-settings as a @font-face descriptor
This commit is contained in:
parent
7d66e65d94
commit
a0886213b6
3 changed files with 44 additions and 12 deletions
|
@ -9,7 +9,7 @@
|
|||
#![deny(missing_docs)]
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
use computed_values::{font_style, font_weight, font_stretch};
|
||||
use computed_values::{font_feature_settings, font_stretch, font_style, font_weight};
|
||||
use computed_values::font_family::FamilyName;
|
||||
use cssparser::{AtRuleParser, DeclarationListParser, DeclarationParser, Parser};
|
||||
use cssparser::SourceLocation;
|
||||
|
@ -337,7 +337,12 @@ font_face_descriptors! {
|
|||
UnicodeRange { start: 0, end: 0x10FFFF }
|
||||
],
|
||||
|
||||
// FIXME: add font-feature-settings, font-language-override, and font-display
|
||||
/// The feature settings of this font face.
|
||||
"font-feature-settings" feature_settings / mFontFeatureSettings: font_feature_settings::T = {
|
||||
font_feature_settings::T::Normal
|
||||
},
|
||||
|
||||
// FIXME: add font-language-override, and font-display.
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue