#[repr(C)]pub struct Font {
pub baseSize: c_int,
pub glyphCount: c_int,
pub glyphPadding: c_int,
pub texture: Texture2D,
pub recs: *mut Rectangle,
pub glyphs: *mut GlyphInfo,
}
Expand description
Font, font texture and GlyphInfo array data
Fields§
§baseSize: c_int
Base size (default chars height)
glyphCount: c_int
Number of glyph characters
glyphPadding: c_int
Padding around the glyph characters
texture: Texture2D
Texture atlas containing the glyphs
recs: *mut Rectangle
Rectangles in texture for the glyphs
glyphs: *mut GlyphInfo
Glyphs info data
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