Skip to main content

FontFeatureSettings

Type Alias FontFeatureSettings 

Source
pub type FontFeatureSettings = FontSettings<FeatureTagValue<Integer>>;
Expand description

This property provides low-level control over OpenType or TrueType font features.

Aliased Type§

pub struct FontFeatureSettings(pub Box<[FeatureTagValue<Integer>]>);

Tuple Fields§

§0: Box<[FeatureTagValue<Integer>]>

Implementations§

Source§

impl FontFeatureSettings

Source

pub fn parse_for_font_face_rule<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Like parse, but rejects calc expressions that cannot be resolved at parse time, since @font-face descriptors require concrete values.