Hi
I want to use:
https://github.com/PhilippMuenzel/PPL/blob/master/src/fontmgr.h
but don't know how to get a FontHandle.
For now I do in appinitialization:
using namespace MichaelNS;
FontMgr m;
m.loadFont("./Ubuntu-B.ttf", NULL, NULL, 16, 0);
then later how to show a text?
I need to replace this:
/* Finally we draw the text into the window, also using XPLMGraphics
* routines. The NULL indicates no word wrapping. */
XPLMDrawString(color, left + 5, top - 20,
(char*)(gClicked ? "I'm a plugin" : "Hello world"), NULL, xplmFont_Basic);
with something alike:
m.drawString(howtogetthis, #ffffff, 100, 100, align, Hello World);
Many thanks in advance and regards