mirror of
https://github.com/Immediate-Mode-UI/Nuklear.git
synced 2026-11-30 16:48:10 +01:00
Fixed blurry font for examples
Oversampling for the default font is tweaked for the default font with height 13. I set the wrong height for all examples which should now be fixed.
This commit is contained in:
@@ -656,8 +656,8 @@ int main(int argc, char *argv[])
|
||||
const char *font_path = (argc > 1) ? argv[1]: 0;
|
||||
nk_font_atlas_init_default(&atlas);
|
||||
nk_font_atlas_begin(&atlas);
|
||||
if (font_path) font = nk_font_atlas_add_from_file(&atlas, font_path, 14.0f, NULL);
|
||||
else font = nk_font_atlas_add_default(&atlas, 14.0f, NULL);
|
||||
if (font_path) font = nk_font_atlas_add_from_file(&atlas, font_path, 13.0f, NULL);
|
||||
else font = nk_font_atlas_add_default(&atlas, 13.0f, NULL);
|
||||
image = nk_font_atlas_bake(&atlas, &w, &h, NK_FONT_ATLAS_RGBA32);
|
||||
device_upload_atlas(&device, image, w, h);
|
||||
nk_font_atlas_end(&atlas, nk_handle_id((int)device.font_tex), &device.null);}
|
||||
|
||||
Reference in New Issue
Block a user