aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.rs')
-rw-r--r--src/font.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/font.rs b/src/font.rs
index 738ae30..546fabe 100644
--- a/src/font.rs
+++ b/src/font.rs
@@ -15,6 +15,9 @@ fn insert_value(arr: &mut Vec<*const Glyph>, idx: usize, glyph: *const Glyph) {
arr[idx] = glyph;
}
+pub trait BakedFont {
+ fn get_char(character: char) -> &'static [u8];
+}
pub struct Font<'a> {
pub texture: &'a [u8],
pub glyphs: Vec<*const Glyph>,