minor changes & work on threading
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user