mitsuba-renderer / nanogui

Minimalistic C++/Python GUI library for OpenGL, GLES2/3, Metal, and WebAssembly/WebGL
Other
1.56k stars 196 forks source link

Inconsistent/incorrect font sizes with updated nanovg #148

Open jkl1337 opened 1 year ago

jkl1337 commented 1 year ago

Because the library is using an old version of nanovg there is no support for OpenType fonts and some additional features and numerous rendering fixes that have been updated in stb_truetype.h. However updating nanovg will make all the font sizes and vertical positions wrong in existing themes, widgets and examples. It might be nice to fix this so that sizes are more consistent with the platform.

See: https://github.com/memononen/nanovg/pull/558 https://github.com/iPlug2/iPlug2/issues/508