proper fontconfig error handling
git-svn-id: svn://localhost/ardour2/branches/3.0@14028 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0b03947210
commit
8cce8a6d0e
@ -333,7 +333,13 @@ static void load_custom_fonts() {
|
||||
|
||||
FcConfig *config = FcInitLoadConfigAndFonts();
|
||||
FcBool ret = FcConfigAppFontAddFile(config, reinterpret_cast<const FcChar8*>(ardour_mono_file.c_str()));
|
||||
if (ret == FcFalse) {
|
||||
cerr << _("Cannot load ArdourMono TrueType font.") << endl;
|
||||
}
|
||||
ret = FcConfigSetCurrent(config);
|
||||
if (ret == FcFalse) {
|
||||
cerr << _("Failed to set fontconfig configuration.") << endl;
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user