added library schrift

This commit is contained in:
Alessandro Mauri 2024-12-06 22:03:35 +01:00
parent f86a360f39
commit dbe70eb4f4
11 changed files with 141 additions and 1 deletions

View file

@ -167,6 +167,7 @@ struct Ctx {
// total size in pixels of the context
ushort width, height;
Style style;
Font font;
bool has_focus;
struct input {

18
src/ugui_font.c3 Normal file
View file

@ -0,0 +1,18 @@
module ugui;
import schrift;
struct Font @private {
schrift::Sft sft;
String path;
}
fn void! Ctx.font_load(&ctx, String path)
{
}
fn void Ctx.font_free(&ctx)
{
}