Evas: Fixed compilation with old fontconfig.
authorTom Hacohen <tom@stosb.com>
Wed, 12 Sep 2012 11:55:45 +0000 (11:55 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 12 Sep 2012 11:55:45 +0000 (11:55 +0000)
This fixes ticket #1500 by Sleep_Walker.

SVN revision: 76520

legacy/evas/src/lib/canvas/evas_font_dir.c

index 4f53e5f..94ffd4a 100644 (file)
@@ -268,6 +268,10 @@ static int _fc_slant_map[] =
    FC_SLANT_ITALIC
 };
 
+/* Apparently EXTRABLACK is not always available, hardcode. */
+# ifndef FC_WEIGHT_EXTRABLACK
+#  define FC_WEIGHT_EXTRABLACK 215
+# endif
 static int _fc_weight_map[] =
 {
    FC_WEIGHT_NORMAL,