Support font-feature-settings as a @font-face descriptor

This commit is contained in:
Anthony Ramine 2017-05-18 12:59:45 +02:00
parent 7d66e65d94
commit a0886213b6
3 changed files with 44 additions and 12 deletions

View file

@ -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.
]
}