pub struct Font {
pub header: Header,
/* private fields */
}
Expand description
The structure for the font.
Example
let font = Font::load(fs::read("./font.psfu").unwrap().as_slice());
font.get_char('A', |bit, x, y| {
// Stuff
});
Fields§
§header: Header
Implementations§
Trait Implementations§
Auto Trait Implementations§
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