Hi,
when bitstream vera sans is installed, JUCE picks it as its default font. The following styles are available: “Roman, Bold, Bold, Oblique, Oblique”. So when I’m requesting an italic font , the first style is picked, which is the basic style. Here is a dumb patch that fixes it in the function
Typeface::Ptr Font::getDefaultTypefaceForFont (const Font& font)
in juce_linux_Fonts.cpp
if (! styles.contains (font.getTypefaceStyle())) {
+ if (font.getTypefaceStyle() == "Italic" && styles.contains("Oblique")) {
+ f.setTypefaceStyle("Oblique");
+ } else {
f.setTypefaceStyle (styles[0]);
+ }
}
