pub struct GlyphInfo {
pub(crate) id: GlyphId,
pub advance_width: f32,
pub uv_rect: UvRect,
}
Fields§
§id: GlyphId
Used for pair-kerning.
Doesn’t need to be unique.
Use ab_glyph::GlyphId(0)
if you just want to have an id, and don’t care.
advance_width: f32
Unit: points.
uv_rect: UvRect
Texture coordinates.
Trait Implementations§
impl Copy for GlyphInfo
impl StructuralPartialEq for GlyphInfo
Auto Trait Implementations§
impl Freeze for GlyphInfo
impl RefUnwindSafe for GlyphInfo
impl Send for GlyphInfo
impl Sync for GlyphInfo
impl Unpin for GlyphInfo
impl UnwindSafe for GlyphInfo
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
)