Struct pixel_game_lib::font::Font  
source · pub struct Font { /* private fields */ }Expand description
Pixel font loaded from an image.
Implementations§
source§impl Font
 
impl Font
sourcepub fn from_buffer_with_alpha<B>(
    buffer: B,
    alpha: u8,
    char_size: Extent2<u8>
) -> Selfwhere
    B: ToBlitBuffer,
 
pub fn from_buffer_with_alpha<B>(
    buffer: B,
    alpha: u8,
    char_size: Extent2<u8>
) -> Selfwhere
    B: ToBlitBuffer,
Construct the font from a bitmap with an alpha channel.
sourcepub fn from_buffer_with_mask_color<B>(
    buffer: B,
    mask_color: u32,
    char_size: Extent2<u8>
) -> Selfwhere
    B: ToBlitBuffer,
 
pub fn from_buffer_with_mask_color<B>(
    buffer: B,
    mask_color: u32,
    char_size: Extent2<u8>
) -> Selfwhere
    B: ToBlitBuffer,
Construct the font from a bitmap where a single color is the alpha mask.
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