☰
CustomTypefaceBuilder
Associated Constants
FACTORY_ID
Methods
detach
from_data
new
set_font_style
set_glyph
set_metrics
Trait Implementations
Debug
Send
Sync
In skia_safe::utils
?
Type Definition
skia_safe
::
utils
::
CustomTypefaceBuilder
source
·
[
−
]
pub type CustomTypefaceBuilder =
Handle
<
SkCustomTypefaceBuilder
>;
Implementations
§
source
§
impl
CustomTypefaceBuilder
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 const
FACTORY_ID
:
FactoryId
= _
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