pub struct Font(/* private fields */);
Implementations§
Trait Implementations§
Source§impl RaylibFont for Font
impl RaylibFont for Font
fn base_size(&self) -> i32
fn texture(&self) -> &Texture2D
fn chars(&self) -> &[GlyphInfo]
fn chars_mut(&mut self) -> &mut [GlyphInfo]
Source§fn is_font_valid(&self) -> bool
fn is_font_valid(&self) -> bool
Check if a font is valid
Source§fn export_font_as_code<A>(&self, filename: A) -> bool
fn export_font_as_code<A>(&self, filename: A) -> bool
Export font as code file, returns true on success
Source§fn get_glyph_info(&self, codepoint: char) -> GlyphInfo
fn get_glyph_info(&self, codepoint: char) -> GlyphInfo
Get glyph font info data for a codepoint (unicode character), fallback to ‘?’ if not found
Source§fn get_glyph_index(&self, codepoint: char) -> i32
fn get_glyph_index(&self, codepoint: char) -> i32
Gets index position for a unicode character on
font
.Source§fn get_glyph_atlas_rec(&self, codepoint: char) -> Rectangle
fn get_glyph_atlas_rec(&self, codepoint: char) -> Rectangle
Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to ‘?’ if not found
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