Struct graphics_buffer::BufferGlyphs
source · pub struct BufferGlyphs<'f> { /* private fields */ }
Expand description
A character cache for drawing text to a RenderBuffer
.
Implementations§
source§impl<'f> BufferGlyphs<'f>
impl<'f> BufferGlyphs<'f>
sourcepub fn from_bytes(bytes: &'f [u8]) -> Result<BufferGlyphs<'f>, Error>
pub fn from_bytes(bytes: &'f [u8]) -> Result<BufferGlyphs<'f>, Error>
Loads a BufferGlyphs
from an array of font data.
sourcepub fn from_font(font: Font<'f>) -> BufferGlyphs<'f>
pub fn from_font(font: Font<'f>) -> BufferGlyphs<'f>
Loads a BufferGlyphs
from a Font
.
Trait Implementations§
source§impl<'f> CharacterCache for BufferGlyphs<'f>
impl<'f> CharacterCache for BufferGlyphs<'f>
source§impl<'f> Clone for BufferGlyphs<'f>
impl<'f> Clone for BufferGlyphs<'f>
source§fn clone(&self) -> BufferGlyphs<'f>
fn clone(&self) -> BufferGlyphs<'f>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more