kmatheussen / radium

A graphical music editor. A next generation tracker.
http://users.notam02.no/~kjetism/radium/
GNU General Public License v2.0
854 stars 37 forks source link

No error message is shown if a font is missing #1232

Open kmatheussen opened 5 years ago

kmatheussen commented 5 years ago

Use QFontDatabse: https://doc.qt.io/qt-5/qfontdatabase.html

kmatheussen commented 5 years ago

@Teteros Radium does require Bitstream Vera Sans Mono and many other fonts. Arch linux should include them. The error message mentioned in #1115 is displayed by a 3rd party library and not by Radium. But Radium does use this font, and it should display a warning if the font is missing.

kmatheussen commented 5 years ago

(that error message from the 3rd party library about the missing vera sans mono font is displayed even if the font is installed)

Teteros commented 5 years ago

Good call, the comments on the AUR page were right then, indeed the error message from that lib is misleading.

Radium does require Bitstream Vera Sans Mono and many other fonts.

Does radium only load contents of bin/fonts in the packaged release? I've checked which fonts from there are currently used by radium and they are:

If that's correct I can add these then to the AUR package.

kmatheussen commented 5 years ago

Yes, it should only use the fonts in bin/fonts. But there is no assertion that the fonts are actually available, so if it's not available, Qt will just silently find a different font (this needs to be fixed).

But when displaying native VST plugins, JUCE is used instead of Qt for the text buttons at the top (bypass-button etc.), and I haven't configured JUCE to look in bin/fonts for font files. I haven't checked, but it's possible that JUCE is using bitstream vera by default, so this font might have to be installed globally.