Open DeXP opened 7 years ago
Interesting problem. This could have a number of different causes going from easy to absolutely god aweful. Possible sources could be drawing inside nk_draw_list_add_text
and nk_draw_list_push_rect_uv
. Then font baking and glyph packing inside nk_font_atlas
in function nk_font_atlas_bake
. The absolute worst case would be inside the font rasterizer.
nk_font_atlas_add_from_file(atlas, "DejaVuSans.ttf", 60, 0);
"P" letter is trimmed on the right; "o" from right and bottom etc. It's for all fonts, not just DejaVuSans. Extremely seen on Sans, not Serif fonts. Maybe antialiasing problem and/or texture size mismatch? Front end: X11, SDL, GLFW. OpenGL both 2 and 3.