I’m having some difficulties with TypeFace Styles in JUCE 8. By way of example:
In the JUCE 8 FontsDemo, using the JUCE-supplied DemoRunner, the “Styles” Menu shows the installed styles in a different order (from JUCE 7), and some of them do not work correctly or change the TypeFace style.
I am using the example of the Arial Font here, but it does this with others. (I also noticed it not working with Calibri, for the Light and Light Italic styles, which look the same as Regular.) In case Arial is not a standard font on Windows, here it is:
In JUCE 8, here is the same thing. The Styles are in a completely different order. Selecting Arial from the list comes up with style “Black” selected (not “Regular” like JUCE 7), but it is NOT the Black version displayed, but the Regular. Black simply does not work.
I was hoping the JUCE team could take a look at this, since it is affecting my ability to select styles. I basically have a version of the FontsDemo built in to my app so the user can choose a font. Many styles do NOT work.
Thanks for reporting this issue. I’ve pushed a couple of fixes to the develop branch:
Font lookup by style name should now work as expected, and typeface styles should be reported in the same order used by the system, so the default/regular style is more likely to end up first in the list of styles.