skia_safe

Type Alias FontStyleSet

Source
pub type FontStyleSet = RCHandle<SkFontStyleSet>;

Aliased Type§

struct FontStyleSet(/* private fields */);

Implementations§

Source§

impl FontStyleSet

Source

pub fn count(&mut self) -> usize

Source

pub fn style(&mut self, index: usize) -> (FontStyle, Option<String>)

Source

pub fn new_typeface(&mut self, index: usize) -> Option<Typeface>

Source

pub fn match_style(&mut self, pattern: FontStyle) -> Option<Typeface>

Source

pub fn new_empty() -> Self

Trait Implementations§

Source§

impl Debug for FontStyleSet

Source§

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

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

impl Default for FontStyleSet

Source§

fn default() -> Self

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