better font atlas implementation
This commit is contained in:
parent
5a89e9ec7d
commit
6d8300f9d9
7 changed files with 170 additions and 143 deletions
|
|
@ -27,7 +27,7 @@ fn int main(String[] args)
|
|||
{
|
||||
ugui::Ctx ui;
|
||||
ui.init()!!;
|
||||
ui.font.load("/usr/share/fonts/TTF/HackNerdFontMono-Regular.ttf", 16)!!;
|
||||
ui.load_font("font1", "/usr/share/fonts/TTF/HackNerdFontMono-Regular.ttf", 16)!!;
|
||||
|
||||
short width = 800;
|
||||
short height = 450;
|
||||
|
|
@ -195,7 +195,6 @@ fn int main(String[] args)
|
|||
|
||||
rl::close_window();
|
||||
|
||||
ui.font.free();
|
||||
ui.free();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue