libmatoya
libmatoya copied to clipboard
[Feature Request] Font rendering in libmatoya
I've quickly looked through the source code but haven't found anything related to font rendering. Actually a very nice feature would be to implement some sort of font rendering (TTF or old VGA DOS fonts or something else). I believe it will help to replace huge SDL+SDL_ttf libraries in some projects if this would be available in platform independent way in libmatoya.
I do have plans for this, although in a separate dependency -- you may have noticed the UI rendering operations like MTY_RendererDrawUI
-- these are designed to accept the draw command list output of an immediate mode UI framework like ImGui (https://github.com/ocornut/imgui) or nuklear with minimal conversion. These frameworks support font rendering and much more for a minimal UI toolkit.
We have a wrapper planned around ImGui right now that will work well with libmatoya, hooking the MTY_App
into the immediate mode framework. It will probably appear over the next few months.
Looks like ImGui is a good choice as it supports multiple renderers and platforms and no external dependencies. I will wait for it and switch from SDL to libmatoya for my alternative Parsec client https://github.com/mbroemme/vdi-stream-client