pub enum GlyphMode {
Mask,
Rgba,
}Expand description
How a text’s glyphs are colored.
Variants§
Mask
The glyphs’ alpha is a mask, in the text’s color: the text
program. A page’s glyphs may then be any color: only their alpha is
read.
Rgba
The glyphs’ own colors times the text’s color, as a sprite’s: for a
font whose pages hold colors, such as an outline darker than its
glyphs (BMFont’s alphaChnl=2).
Trait Implementations§
impl Copy for GlyphMode
impl Eq for GlyphMode
impl StructuralPartialEq for GlyphMode
Auto Trait Implementations§
impl Forget for GlyphMode
impl Freeze for GlyphMode
impl Move for GlyphMode
impl RefUnwindSafe for GlyphMode
impl Send for GlyphMode
impl Sync for GlyphMode
impl Unpin for GlyphMode
impl UnsafeUnpin for GlyphMode
impl UnwindSafe for GlyphMode
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