pub struct SharedGlyphData {
pub id: u32,
pub extents: Option<Rect<i32>>,
pub scale_for_1_pixel: f32,
pub unit_h_metrics: HMetrics,
pub shape: Option<Vec<Vertex>>,
}
Expand description
Shared glyph data, inner data of a glyph
Fields§
§id: u32
ID of the glyph in the font
extents: Option<Rect<i32>>
Extents of the glyph
scale_for_1_pixel: f32
Current scaling
unit_h_metrics: HMetrics
Raw horizontal metrics
shape: Option<Vec<Vertex>>
Vertices of the glyph
Trait Implementations§
Source§fn clone(&self) -> SharedGlyphData
fn clone(&self) -> SharedGlyphData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)