Evas font: Change font fallback to not depend on fontconfig >= 2.11.
authorTom Hacohen <tom@stosb.com>
Wed, 5 Feb 2014 13:54:41 +0000 (13:54 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 5 Feb 2014 13:54:41 +0000 (13:54 +0000)
Apparently, it was available for quite a while. It's just a case of confusing documentation
that made me think the minimum version is 2.11.

src/lib/evas/canvas/evas_font_dir.c

index 393f954..00a1249 100644 (file)
@@ -786,7 +786,6 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source,
      }
    else /* Add a fallback list from fontconfig according to the found font. */
      {
-#if FC_MAJOR >= 2 && FC_MINOR >= 11
        FcResult res;
 
         FT_Face face = evas_common_font_freetype_face_get((RGBA_Font *) font);
@@ -809,7 +808,6 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source,
                   font = _evas_load_fontconfig(font, evas->evas, set, size, wanted_rend);
                }
           }
-#endif
      }
 #endif