pub type Typeface = RCHandle<SkTypeface>;
Aliased Type§
pub struct Typeface(/* private fields */);
Implementations§
Source§impl Typeface
impl Typeface
pub fn font_style(&self) -> FontStyle
pub fn is_bold(&self) -> bool
pub fn is_italic(&self) -> bool
pub fn is_fixed_pitch(&self) -> bool
pub fn variation_design_position(&self) -> Option<Vec<Coordinate>>
pub fn variation_design_parameters(&self) -> Option<Vec<VariationAxis>>
pub fn unique_id(&self) -> TypefaceId
pub fn equal(face_a: impl AsRef<Typeface>, face_b: impl AsRef<Typeface>) -> bool
pub fn clone_with_arguments( &self, arguments: &FontArguments<'_, '_>, ) -> Option<Typeface>
pub fn serialize_stream(&self, write: impl Write, behavior: SerializeBehavior)
pub fn serialize(&self, behavior: SerializeBehavior) -> Data
pub fn make_deserialize( data: impl Read, last_resort_mgr: impl Into<Option<FontMgr>>, ) -> Option<Typeface>
pub fn unichars_to_glyphs(&self, uni: &[Unichar], glyphs: &mut [GlyphId])
pub fn str_to_glyphs( &self, str: impl AsRef<str>, glyphs: &mut [GlyphId], ) -> usize
pub fn text_to_glyphs( &self, text: impl EncodedText, glyphs: &mut [GlyphId], ) -> usize
pub fn unichar_to_glyph(&self, unichar: Unichar) -> GlyphId
pub fn count_glyphs(&self) -> usize
pub fn count_tables(&self) -> usize
👎Deprecated since 0.88.0: use read_table_tags