So, since updating last week (latest tip, dev branch) I have a strange font issue.
On windows and mac, my font can sometimes drop out when the UI is closed/reopened.
It doesn’t drop entirely out, but some letters/components seem to just turn into some sort of Thai(ish) script?
Notice, in the screenshot, for example that the knob with should be “Ratio” is rendering the Rat, and then some gobbly gook. Other sliders are unaffected. It’s a different set of sliders/letters each time.
If I open/close the window a few times, this always happens (on Win, I can’t reproduced on mac, but some users have reported it).
Per code …
I have a custom stylesheet, with a few Typeface::Ptr items.
In the constructor, I create them from a binary blob (exported ages ago using the BinaryBuilder as I recall).
// FONTS ::::
const char* font = Fonts::PoppinsSemiBold_ttf;
const int fontSize = Fonts::PoppinsSemiBold_ttfSize;
default_typeface = Typeface::createSystemTypefaceFor(font, fontSize);
Then I just override LookAndFeel::getTypefaceForFont() to return that font.
Worked like a charm until last week after this update. Anyone have any idea what may have changed?
I’ve had this issue on and off for years, to avoid it creeping in I always wrap my fonts in a sharedResourcePointer.
Not a very satisfying answer, will try it though.
Anyone out there have a sense how/why this happens?