MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / SpriteFont

Class SpriteFont

src/graphics/text.rs:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40pub struct SpriteFont {
41 pub ascent: f32,
42 pub descent: f32,
43 pub line_gap: f32,
44
45 texture: Texture,
46 cache: HashMap<char, SpriteFontGlyph>,
47 kerning: HashMap<(char, char), f32>,
48}
49
50impl SpriteFont {
51 pub fn new(gfx: &Graphics, font: &Font, size: f32) -> SpriteFont {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected