Implement normal for FontSettings

This commit is contained in:
CYBAI 2017-11-20 21:36:49 +08:00
parent e4cfff8364
commit dcdc384122
3 changed files with 8 additions and 16 deletions

View file

@ -290,14 +290,6 @@ pub type FontVariantNumeric = specified::VariantNumeric;
/// Use FontSettings as computed type of FontFeatureSettings
pub type FontFeatureSettings = FontSettings<FontSettingTagInt>;
impl FontFeatureSettings {
#[inline]
/// Default value of `font-feature-settings` as `normal`
pub fn normal() -> FontFeatureSettings {
FontSettings::Normal
}
}
/// font-language-override can only have a single three-letter
/// OpenType "language system" tag, so we should be able to compute
/// it and store it as a 32-bit integer