summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rufl_init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rufl_init.c b/src/rufl_init.c
index e37b36f..f9ff55f 100644
--- a/src/rufl_init.c
+++ b/src/rufl_init.c
@@ -861,9 +861,11 @@ rufl_code rufl_init_scan_font_old(unsigned int font_index)
/* Not finding the font isn't fatal */
if (code != rufl_FONT_MANAGER_ERROR ||
(rufl_fm_error->errnum !=
- error_FONT_NOT_FOUND &&
+ error_FONT_NOT_FOUND &&
+ rufl_fm_error->errnum !=
+ error_FILE_NOT_FOUND &&
rufl_fm_error->errnum !=
- error_FILE_NOT_FOUND)) {
+ error_FONT_ENCODING_NOT_FOUND)) {
free(charset);
for (i = 0; i < num_umaps; i++)
free((umap + i)->encoding);