From f6b701aa10cb855f093e5d1e12d93f1251665922 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 10 Mar 2006 06:01:21 +0000 Subject: [PATCH] only ask for hinting levels if its supported - fallback by hand SVN revision: 21161 --- src/bin/e_canvas.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/bin/e_canvas.c b/src/bin/e_canvas.c index de8f5f4d1..dd7466efb 100644 --- a/src/bin/e_canvas.c +++ b/src/bin/e_canvas.c @@ -22,9 +22,21 @@ e_canvas_add(Ecore_Evas *ee) evas_font_cache_set(e, e_config->font_cache * 1024); e_path_evas_append(path_fonts, e); if (e_config->font_hinting == 0) - evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE); + { + if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_BYTECODE)) + evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE); + else if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_AUTO)) + evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO); + else + evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE); + } else if (e_config->font_hinting == 1) - evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO); + { + if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_AUTO)) + evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO); + else + evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE); + } else if (e_config->font_hinting == 2) evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);