Type Alias freya_engine::prelude::Typeface
pub type Typeface = RCHandle<SkTypeface>;
Aliased Type§
struct Typeface(/* private fields */);
Implementations
§impl RCHandle<SkTypeface>
impl RCHandle<SkTypeface>
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<Axis>>
pub fn unique_id(&self) -> u32
pub fn equal( face_a: impl AsRef<RCHandle<SkTypeface>>, face_b: impl AsRef<RCHandle<SkTypeface>>, ) -> bool
pub fn clone_with_arguments( &self, arguments: &FontArguments<'_, '_>, ) -> Option<RCHandle<SkTypeface>>
pub fn serialize_stream( &self, write: impl Write, behavior: SkTypeface_SerializeBehavior, )
pub fn serialize( &self, behavior: SkTypeface_SerializeBehavior, ) -> RCHandle<SkData>
pub fn make_deserialize( data: impl Read, last_resort_mgr: impl Into<Option<RCHandle<SkFontMgr>>>, ) -> Option<RCHandle<SkTypeface>>
pub fn unichars_to_glyphs(&self, uni: &[i32], glyphs: &mut [u16])
pub fn str_to_glyphs(&self, str: impl AsRef<str>, glyphs: &mut [u16]) -> usize
pub fn text_to_glyphs( &self, text: impl EncodedText, glyphs: &mut [u16], ) -> usize
pub fn unichar_to_glyph(&self, unichar: i32) -> u16
pub fn count_glyphs(&self) -> usize
pub fn count_tables(&self) -> usize
pub fn get_table_size(&self, tag: u32) -> Option<usize>
pub fn get_table_data(&self, tag: u32, data: &mut [u8]) -> usize
pub fn copy_table_data(&self, tag: u32) -> Option<RCHandle<SkData>>
pub fn units_per_em(&self) -> Option<i32>
pub fn get_kerning_pair_adjustments( &self, glyphs: &[u16], adjustments: &mut [i32], ) -> bool
pub fn new_family_name_iterator(&self) -> impl Iterator<Item = LocalizedString>
pub fn family_name(&self) -> String
pub fn post_script_name(&self) -> Option<String>
pub fn to_font_data(&self) -> Option<(Vec<u8>, usize)>
pub fn bounds(&self) -> Rect
Trait Implementations
§impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.
§impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
§impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
A reference counted handle is cheap to clone, so we do support a conversion from a reference to a ref counter to an owned handle.