Struct typer::TextRenderer
source · pub struct TextRenderer {}
Implementations
sourceimpl TextRenderer
impl TextRenderer
pub fn new() -> Self
pub fn load_fonts<'a>(data: Vec<(String, PathBuf)>) -> Vec<(String, Font<'a>)>
pub fn format<'a>(
format_blocks: Vec<FormatBlock>,
dpi_factor: f32,
fonts: &'a [(String, Font<'a>)]
) -> Layout<'a>
pub fn render<T: ImgBufferTrait>(layout: &Layout<'_>, buffer: &mut T)
Auto Trait Implementations
impl RefUnwindSafe for TextRenderer
impl Send for TextRenderer
impl Sync for TextRenderer
impl Unpin for TextRenderer
impl UnwindSafe for TextRenderer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more