Type Definition skia_safe::FontMgr

source ·
pub type FontMgr = RCHandle<SkFontMgr>;

Implementations§

source§

impl FontMgr

source

pub fn new() -> Self

source

pub fn empty() -> Self

source

pub fn count_families(&self) -> usize

source

pub fn family_name(&self, index: usize) -> String

source

pub fn family_names(&self) -> impl Iterator<Item = String> + '_

source

pub fn new_styleset(&self, index: usize) -> FontStyleSet

👎Deprecated since 0.41.0: Use new_style_set
source

pub fn new_style_set(&self, index: usize) -> FontStyleSet

source

pub fn match_family(&self, family_name: impl AsRef<str>) -> FontStyleSet

source

pub fn match_family_style( &self, family_name: impl AsRef<str>, style: FontStyle ) -> Option<Typeface>

source

pub fn match_family_style_character( &self, family_name: impl AsRef<str>, style: FontStyle, bcp_47: &[&str], character: Unichar ) -> Option<Typeface>

source

pub fn match_face_style( &self, _typeface: impl AsRef<Typeface>, _style: FontStyle ) -> !

👎Deprecated since 0.35.0: Removed without replacement
source

pub fn new_from_data( &self, bytes: &[u8], ttc_index: impl Into<Option<usize>> ) -> Option<Typeface>

Trait Implementations§

source§

impl Debug for FontMgr

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for FontMgr

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<RCHandle<SkOrderedFontMgr>> for FontMgr

source§

fn from(font_mgr: OrderedFontMgr) -> Self

Converts to this type from the input type.