pub struct FontFaceWrapper(/* private fields */);Implementations§
Source§impl FontFaceWrapper
impl FontFaceWrapper
pub fn load( filename_hint: Option<String>, buffer: impl Into<Arc<[u8]>>, ) -> Result<Vec<FontFaceWrapper>>
pub fn codepoints_in_set(&self, set: &CharacterSet) -> CharacterSet
pub fn all_codepoints(&self) -> &CharacterSet
pub fn font_id(&self) -> FontId
pub fn font_family(&self) -> &str
pub fn font_style(&self) -> &str
pub fn font_version(&self) -> &str
pub fn is_variable(&self) -> bool
pub fn variations(&self) -> &[VariationAxis]
pub fn parsed_font_style(&self) -> FontStyle
pub fn parsed_font_weight(&self) -> FontWeight
pub fn font_data(&self) -> &[u8] ⓘ
pub fn weight_range(&self) -> RangeInclusive<u32>
pub fn subset(&self, name: &str, chars: &CharacterSet) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Clone for FontFaceWrapper
impl Clone for FontFaceWrapper
Source§fn clone(&self) -> FontFaceWrapper
fn clone(&self) -> FontFaceWrapper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontFaceWrapper
impl Debug for FontFaceWrapper
Auto Trait Implementations§
impl Freeze for FontFaceWrapper
impl RefUnwindSafe for FontFaceWrapper
impl Send for FontFaceWrapper
impl Sync for FontFaceWrapper
impl Unpin for FontFaceWrapper
impl UnsafeUnpin for FontFaceWrapper
impl UnwindSafe for FontFaceWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more