pub struct InterFontCollection { /* private fields */ }Expand description
The font collection of the embedded Inter family, with the key
fonts:Inter.
Implementations§
Trait Implementations§
Source§impl Default for InterFontCollection
impl Default for InterFontCollection
Source§impl FontCollectionBaseImpl for InterFontCollection
impl FontCollectionBaseImpl for InterFontCollection
Source§fn base(this: &Self) -> &FontCollectionBase
fn base(this: &Self) -> &FontCollectionBase
The base class state of the collection.
Source§fn try_match_character(
this: &Self,
codepoint: i32,
style: FontStyle,
weight: FontWeight,
stretch: FontStretch,
family_name: Option<&str>,
culture: Option<&CultureInfo>,
) -> Option<Typeface>
fn try_match_character( this: &Self, codepoint: i32, style: FontStyle, weight: FontWeight, stretch: FontStretch, family_name: Option<&str>, culture: Option<&CultureInfo>, ) -> Option<Typeface>
Tries to match a specified character to a
Typeface that supports
specified font properties.Source§fn try_match_character_from_platform(
_this: &Self,
_codepoint: i32,
_key: FontCollectionKey,
_family_name: Option<&str>,
_culture: Option<&CultureInfo>,
) -> Option<Rc<GlyphTypeface>>
fn try_match_character_from_platform( _this: &Self, _codepoint: i32, _key: FontCollectionKey, _family_name: Option<&str>, _culture: Option<&CultureInfo>, ) -> Option<Rc<GlyphTypeface>>
Hook for platform-backed collections (e.g. the system font collection)
to consult the underlying font manager for a fallback typeface.
Invoked at most once per (script-bucket, culture) pair from
FontCollectionBase::try_match_character.Source§fn try_create_synthetic_glyph_typeface(
this: &Self,
glyph_typeface: &Rc<GlyphTypeface>,
style: FontStyle,
weight: FontWeight,
stretch: FontStretch,
) -> Option<Rc<GlyphTypeface>>
fn try_create_synthetic_glyph_typeface( this: &Self, glyph_typeface: &Rc<GlyphTypeface>, style: FontStyle, weight: FontWeight, stretch: FontStretch, ) -> Option<Rc<GlyphTypeface>>
Try to get a synthetic glyph typeface for given parameters.
Source§fn try_get_glyph_typeface(
this: &Self,
family_name: &str,
style: FontStyle,
weight: FontWeight,
stretch: FontStretch,
) -> Option<Rc<GlyphTypeface>>
fn try_get_glyph_typeface( this: &Self, family_name: &str, style: FontStyle, weight: FontWeight, stretch: FontStretch, ) -> Option<Rc<GlyphTypeface>>
Try to get a glyph typeface for given parameters.
Auto Trait Implementations§
impl !Freeze for InterFontCollection
impl !RefUnwindSafe for InterFontCollection
impl !Send for InterFontCollection
impl !Sync for InterFontCollection
impl !UnwindSafe for InterFontCollection
impl Unpin for InterFontCollection
impl UnsafeUnpin for InterFontCollection
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read moreSource§impl<T> IFontCollection for Twhere
T: FontCollectionBaseImpl,
impl<T> IFontCollection for Twhere
T: FontCollectionBaseImpl,
Source§fn font_families(&self) -> Vec<FontFamily>
fn font_families(&self) -> Vec<FontFamily>
A snapshot of the font families of the collection, in order.
Source§fn try_get_glyph_typeface(
&self,
family_name: &str,
style: FontStyle,
weight: FontWeight,
stretch: FontStretch,
) -> Option<Rc<GlyphTypeface>>
fn try_get_glyph_typeface( &self, family_name: &str, style: FontStyle, weight: FontWeight, stretch: FontStretch, ) -> Option<Rc<GlyphTypeface>>
Try to get a glyph typeface for given parameters.
Source§fn try_match_character(
&self,
codepoint: i32,
font_style: FontStyle,
font_weight: FontWeight,
font_stretch: FontStretch,
family_name: Option<&str>,
culture: Option<&CultureInfo>,
) -> Option<Typeface>
fn try_match_character( &self, codepoint: i32, font_style: FontStyle, font_weight: FontWeight, font_stretch: FontStretch, family_name: Option<&str>, culture: Option<&CultureInfo>, ) -> Option<Typeface>
Source§fn try_get_family_typefaces(&self, family_name: &str) -> Option<Vec<Typeface>>
fn try_get_family_typefaces(&self, family_name: &str) -> Option<Vec<Typeface>>
Tries to get a list of typefaces for the specified family name.
Source§fn try_create_synthetic_glyph_typeface(
&self,
glyph_typeface: &Rc<GlyphTypeface>,
style: FontStyle,
weight: FontWeight,
stretch: FontStretch,
) -> Option<Rc<GlyphTypeface>>
fn try_create_synthetic_glyph_typeface( &self, glyph_typeface: &Rc<GlyphTypeface>, style: FontStyle, weight: FontWeight, stretch: FontStretch, ) -> Option<Rc<GlyphTypeface>>
Try to get a synthetic glyph typeface for given parameters.
Source§fn try_get_nearest_match(
&self,
family_name: &str,
style: FontStyle,
weight: FontWeight,
stretch: FontStretch,
) -> Option<Rc<GlyphTypeface>>
fn try_get_nearest_match( &self, family_name: &str, style: FontStyle, weight: FontWeight, stretch: FontStretch, ) -> Option<Rc<GlyphTypeface>>
Attempts to retrieve the glyph typeface that most closely matches the
specified font family name, style, weight, and stretch. Read more
Source§fn dispose(&self)
fn dispose(&self)
Releases the glyph typefaces held by the collection (C#
IDisposable.Dispose).Source§fn as_font_collection_base(
&self,
) -> Option<&(dyn IFontCollectionBase + 'static)>
fn as_font_collection_base( &self, ) -> Option<&(dyn IFontCollectionBase + 'static)>
The collection viewed as a
FontCollectionBase derived collection, if
it is one (C# collection is FontCollectionBase).Source§impl<T> IFontCollectionBase for Twhere
T: FontCollectionBaseImpl,
impl<T> IFontCollectionBase for Twhere
T: FontCollectionBaseImpl,
Source§fn base(&self) -> &FontCollectionBase
fn base(&self) -> &FontCollectionBase
The base class state of the collection.
Source§fn try_match_character_from_platform(
&self,
codepoint: i32,
key: FontCollectionKey,
family_name: Option<&str>,
culture: Option<&CultureInfo>,
) -> Option<Rc<GlyphTypeface>>
fn try_match_character_from_platform( &self, codepoint: i32, key: FontCollectionKey, family_name: Option<&str>, culture: Option<&CultureInfo>, ) -> Option<Rc<GlyphTypeface>>
Calls the collection’s
try_match_character_from_platform.