Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_canvas.c
Log Message:
only ask for hinting levels if its supported - fallback by hand
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_canvas.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_canvas.c 1 Mar 2006 03:47:51 -0000 1.13
+++ e_canvas.c 10 Mar 2006 06:01:21 -0000 1.14
@@ -22,9 +22,21 @@
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);
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs