fix font alpha channel
This commit is contained in:
parent
bca29c537c
commit
2e60e4c5b8
3 changed files with 38 additions and 8 deletions
|
|
@ -61,7 +61,7 @@ struct Font {
|
|||
bool should_update; // should send update_atlas command, resets at frame_end()
|
||||
}
|
||||
|
||||
fn void! Font.load(&font, String name, String path, uint height, float scale)
|
||||
fn void! Font.load(&font, String name, ZString path, uint height, float scale)
|
||||
{
|
||||
font.table.new_init(capacity: FONT_CACHED);
|
||||
font.id = name.hash();
|
||||
|
|
@ -161,7 +161,7 @@ fn void Font.free(&font)
|
|||
schrift::freefont(font.sft.font);
|
||||
}
|
||||
|
||||
fn void! Ctx.load_font(&ctx, String name, String path, uint height, float scale = 1.0)
|
||||
fn void! Ctx.load_font(&ctx, String name, ZString path, uint height, float scale = 1.0)
|
||||
{
|
||||
return ctx.font.load(name, path, height, scale);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue