Why would the constructor of SharedFontInternal jassert that a Typeface name isn’t empty:
explicit SharedFontInternal (const Typeface::Ptr& face) noexcept
: typeface (face),
typefaceName (face->getName()),
typefaceStyle (face->getStyle()),
height (FontValues::defaultFontHeight)
{
jassert (typefaceName.isNotEmpty());
}
When WindowsTypeface readily constructs typefaces with an empty name?
WindowsTypeface (const void* data, size_t dataSize)
: Typeface (String(), String())
{
//...
I’m using Typeface::createSystemTypefaceFor() to set my default look-and-feel font, and now every time I boot up my app in debug mode I hit that jassert. Very inconvenient!
