libmatoya icon indicating copy to clipboard operation
libmatoya copied to clipboard

[Feature Request] Font rendering in libmatoya

Open mbroemme opened this issue 3 years ago • 2 comments

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.

mbroemme avatar May 21 '21 22:05 mbroemme

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.

chrisd1100 avatar May 21 '21 23:05 chrisd1100

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

mbroemme avatar May 23 '21 19:05 mbroemme