skia_safe::textlayout

Type Alias FontCollection

Source
pub type FontCollection = RCHandle<skia_textlayout_FontCollection>;

Aliased Type§

struct FontCollection(/* private fields */);

Implementations§

Source§

impl FontCollection

Source

pub fn new() -> Self

Source

pub fn font_managers_count(&self) -> usize

Source

pub fn set_asset_font_manager( &mut self, font_manager: impl Into<Option<FontMgr>>, )

Source

pub fn set_dynamic_font_manager( &mut self, font_manager: impl Into<Option<FontMgr>>, )

Source

pub fn set_test_font_manager( &mut self, font_manager: impl Into<Option<FontMgr>>, )

Source

pub fn set_default_font_manager<'a>( &mut self, font_manager: impl Into<Option<FontMgr>>, default_family_name: impl Into<Option<&'a str>>, )

Source

pub fn set_default_font_manager_and_family_names( &mut self, font_manager: impl Into<Option<FontMgr>>, family_names: &[impl AsRef<str>], )

Source

pub fn fallback_manager(&self) -> Option<FontMgr>

Source

pub fn find_typefaces( &mut self, family_names: &[impl AsRef<str>], font_style: FontStyle, ) -> Vec<Typeface>

Source

pub fn find_typefaces_with_font_arguments<'fa>( &mut self, family_names: &[impl AsRef<str>], font_style: FontStyle, font_args: impl Into<Option<&'fa FontArguments>>, ) -> Vec<Typeface>

Source

pub fn default_fallback_char( &mut self, unicode: Unichar, font_style: FontStyle, locale: impl AsRef<str>, ) -> Option<Typeface>

Source

pub fn default_fallback(&mut self) -> Option<Typeface>

Source

pub fn default_emoji_fallback( &mut self, emoji_start: Unichar, font_style: FontStyle, locale: impl AsRef<str>, ) -> Option<Typeface>

Source

pub fn disable_font_fallback(&mut self)

Source

pub fn enable_font_fallback(&mut self)

Source

pub fn font_fallback_enabled(&self) -> bool

Source

pub fn paragraph_cache(&self) -> &ParagraphCache

Source

pub fn paragraph_cache_mut(&mut self) -> &mut ParagraphCache

Source

pub fn clear_caches(&mut self)

Trait Implementations§

Source§

impl Debug for FontCollection

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more