changeset 35230:996c2f5657b3

More strict check so it is actually possible to trigger. A font with only the "fallback" character is rather useless.
author reimar
date Thu, 01 Nov 2012 21:42:40 +0000
parents 1d9aaca72672
children 9fb45b9710cc
files sub/font_load_ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sub/font_load_ft.c	Thu Nov 01 21:31:53 2012 +0000
+++ b/sub/font_load_ft.c	Thu Nov 01 21:42:40 2012 +0000
@@ -787,7 +787,7 @@
     charset_size = count;
 
     iconv_close(cd);
-    if (charset_size==0) {
+    if (charset_size <= 1) {
 	mp_msg(MSGT_OSD, MSGL_ERR, "No characters to render!\n");
 	return -1;
     }