| 38 | } |
| 39 | |
| 40 | pub 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 | |
| 50 | impl SpriteFont { |
| 51 | pub fn new(gfx: &Graphics, font: &Font, size: f32) -> SpriteFont { |
nothing calls this directly
no outgoing calls
no test coverage detected