Type Definition skia_safe::FontStyleSet

source ·
pub type FontStyleSet = RCHandle<SkFontStyleSet>;

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, index: usize, 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