pub type FontMgr = RCHandle<SkFontMgr>;
Aliased Type§
struct FontMgr(/* private fields */);
Implementations§
Source§impl FontMgr
impl FontMgr
pub fn new() -> Self
pub fn empty() -> Self
pub fn count_families(&self) -> usize
pub fn family_name(&self, index: usize) -> String
pub fn family_names(&self) -> impl Iterator<Item = String> + use<'_>
pub fn new_styleset(&self, index: usize) -> FontStyleSet
👎Deprecated since 0.41.0: Use new_style_set
pub fn new_style_set(&self, index: usize) -> FontStyleSet
pub fn match_family(&self, family_name: impl AsRef<str>) -> FontStyleSet
pub fn match_family_style( &self, family_name: impl AsRef<str>, style: FontStyle, ) -> Option<Typeface>
pub fn match_family_style_character( &self, family_name: impl AsRef<str>, style: FontStyle, bcp_47: &[&str], character: Unichar, ) -> Option<Typeface>
pub fn match_face_style( &self, _typeface: impl AsRef<Typeface>, _style: FontStyle, ) -> !
👎Deprecated since 0.35.0: Removed without replacement