[−][src]Trait badgen::Font
A Font trait specific to badge generation.
Required methods
fn height(&self) -> u32
The font height relative to the badge viewbox.
fn render_glyph<'a>(&'a mut self, c: char) -> Option<FontGlyph<'a>>
Render a character glyph if it exists.
Provided methods
fn scale(&self) -> f32
The scale of the font used in path rendering.
fn precision(&self) -> u8
The precision of the font used in path rendering.
Implementors
impl<'a> Font for TrueTypeFont<'a>
[src]
fn height(&self) -> u32
[src]
fn render_glyph<'b>(&'b mut self, c: char) -> Option<FontGlyph<'b>>
[src]
fn scale(&self) -> f32
[src]
fn precision(&self) -> u8
[src]
impl<T> Font for CachedFont<T> where
T: Font,
[src]
T: Font,