Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
8.86k stars 536 forks source link

No documentation explaining how to convert an nk_rune to a char. #644

Closed StrikerMan780 closed 1 month ago

StrikerMan780 commented 1 month ago

Trying to get nuklear working in an engine that doesn't support unicode, and I'm trying to convert an nk_rune in my font glyph query function into an ASCII char, and I'm completely stumped.

StrikerMan780 commented 1 month ago

Never mind, figured out you can do it by checking/clamping the range and casting to char.