mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement normal for FontSettings
This commit is contained in:
parent
e4cfff8364
commit
dcdc384122
3 changed files with 8 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue