pub struct Inter<'a, Style> { /* private fields */ }
Available on crate features
unstable
and views
and default_ui
only.Expand description
The Inter font
§Inter
Inter is a typeface carefully crafted & designed for computer screens. Inter features a tall x-height to aid in readability of mixed-case and lower-case text. Inter is a variable font with several OpenType features, like contextual alternates that adjusts punctuation depending on the shape of surrounding glyphs, slashed zero for when you need to disambiguate “0” from “o”, tabular numbers, etc.
Methods from Deref<Target = Font<'a>>§
sourcepub fn full_name(&self) -> Option<String>
pub fn full_name(&self) -> Option<String>
Full font name that reflects all family and relevant subfamily descriptors.
sourcepub fn identifier(&self) -> Option<String>
pub fn identifier(&self) -> Option<String>
Unique font identifier
sourcepub fn version(&self) -> Option<String>
pub fn version(&self) -> Option<String>
Should begin with the syntax “Version N.M” (upper case, lower case, or mixed, with a space between “Version” and the number).
sourcepub fn capital_height(&self) -> f32
pub fn capital_height(&self) -> f32
Capital height,
Trait Implementations§
impl DependencyDefault for Inter<'static, L>
impl DependencyDefault for Inter<'static, L>
impl DependencyDefault for Inter<'static, L>
impl DependencyDefault for Inter<'static, M>
impl DependencyDefault for Inter<'static, M>
impl DependencyDefault for Inter<'static, M>
impl DependencyDefault for Inter<'static, S>
impl DependencyDefault for Inter<'static, S>
impl DependencyDefault for Inter<'static, S>
Auto Trait Implementations§
impl<'a, Style> Freeze for Inter<'a, Style>
impl<'a, Style> !RefUnwindSafe for Inter<'a, Style>
impl<'a, Style> Send for Inter<'a, Style>where
Style: Send,
impl<'a, Style> Sync for Inter<'a, Style>where
Style: Sync,
impl<'a, Style> Unpin for Inter<'a, Style>where
Style: Unpin,
impl<'a, Style> !UnwindSafe for Inter<'a, Style>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more