d9bbdff08c
these should be used to include external files and resources in the kernel binary
at compile time.
- libm currently supports loading psf-1 formatted fonts
- added two fonts that are included in the binary at compile time
- refactored libk to make the crate structure more organised and maintainable in future.
new structure:
- drivers (hardware interaction)
- resources (consts and statics included either manually or via macros)
- std (standard functions for higher level interaction with the os, for example creating windows)
- added geometry.rs
- provides the Vec2<T> struct for use with dimensions, coordinates etc.
- added window.rs
- provides the Window struct for rendering the state of an application to the screen
- added application.rs
- provides the Application trait for custom programs to implement in order to run
13 lines
361 B
Rust
13 lines
361 B
Rust
use libm::include_font;
|
|
|
|
pub mod ibm_vga_8x16;
|
|
|
|
pub static FONT_SPLEEN_8X16: Font = Font(include_font!(
|
|
"/home/zxq5/Projects/OSDev/FoundryOS/libk/resources/font/spleen-8x16.psf"
|
|
));
|
|
pub static FONT_CP850_8X16: Font = Font(include_font!(
|
|
"/home/zxq5/Projects/OSDev/FoundryOS/libk/resources/font/cp850-8x16.psf"
|
|
));
|
|
|
|
pub struct Font(pub [[u8; 16]; 512]);
|