pub struct Font { /* private fields */ }
Expand description
A font
Implementations§
Source§impl Font
impl Font
pub const fn id(&self) -> ID
pub fn monospace_em_width(&self) -> Option<f32>
pub fn scripts(&self) -> &[[u8; 4]]
pub fn unicode_codepoints(&self) -> &[u32]
pub fn data(&self) -> &[u8] ⓘ
pub fn rustybuzz(&self) -> &RustybuzzFace<'_>
pub fn as_swash(&self) -> FontRef<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Font
impl !RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl !UnwindSafe for Font
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