minor changes & work on threading

This commit is contained in:
2025-03-04 00:53:06 +00:00
parent 0a5269eeb0
commit 48dcde0c02
8 changed files with 62 additions and 54 deletions
+26
View File
@@ -47,6 +47,32 @@ pub fn include_font(item: TokenStream) -> TokenStream {
struct Font([[u8; 16]; 512]);
struct FontData {
width: u8,
height: u8,
length: u16,
data: Vec<Glyph>,
unicode_table: [[u8; 2]; 512],
}
struct Glyph {
bytes: Vec<u8>,
}
enum FontBuilder {
Psf1,
Psf2,
}
impl FontBuilder {
const PSF1_MAGIC: u16 = 0x3604;
const PSF2_MAGIC: u32 = 0x72b54a86;
pub fn load() -> Option<Self> {
None
}
}
impl Font {
const MAGIC: u16 = 0x3604;