skia_safe::utils

Type Alias CustomTypefaceBuilder

Source
pub type CustomTypefaceBuilder = Handle<SkCustomTypefaceBuilder>;

Aliased Type§

struct CustomTypefaceBuilder(/* private fields */);

Implementations§

Source§

impl CustomTypefaceBuilder

Source

pub const FACTORY_ID: FactoryId = _

Source

pub fn new() -> Self

Source

pub fn set_glyph<'a>( &mut self, glyph_id: GlyphId, advance: f32, typeface_glyph: impl Into<TypefaceGlyph<'a>>, ) -> &mut Self

Source

pub fn set_metrics( &mut self, font_metrics: &FontMetrics, scale: impl Into<Option<f32>>, ) -> &mut Self

Source

pub fn set_font_style(&mut self, font_style: FontStyle) -> &mut Self

Source

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

Source

pub fn from_data( data: impl Into<Data>, font_arguments: &FontArguments<'_, '_>, ) -> Option<Typeface>

Trait Implementations§

Source§

impl Debug for CustomTypefaceBuilder

Source§

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

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

impl Send for CustomTypefaceBuilder

Source§

impl Sync for CustomTypefaceBuilder