Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_canvas.c e_canvas.h e_int_config_hinting.c
Log Message:
support un the fly rehinting.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_canvas.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- e_canvas.c 28 Feb 2006 04:07:28 -0000 1.12
+++ e_canvas.c 1 Mar 2006 03:47:51 -0000 1.13
@@ -125,6 +125,27 @@
}
}
+EAPI void
+e_canvas_rehint(void)
+{
+ Evas_List *l;
+
+ for (l = _e_canvases; l; l = l->next)
+ {
+ Ecore_Evas *ee;
+ Evas *e;
+
+ ee = l->data;
+ e = ecore_evas_get(ee);
+ if (e_config->font_hinting == 0)
+ evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE);
+ else if (e_config->font_hinting == 1)
+ evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
+ else if (e_config->font_hinting == 2)
+ evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
+ }
+}
+
EAPI Ecore_Evas *
e_canvas_new(int engine_hint, Ecore_X_Window win, int x, int y, int w, int h,
int direct_resize, int override, Ecore_X_Window *win_ret,
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_canvas.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_canvas.h 3 Oct 2005 07:36:23 -0000 1.6
+++ e_canvas.h 1 Mar 2006 03:47:51 -0000 1.7
@@ -12,6 +12,7 @@
EAPI void e_canvas_recache(void);
EAPI void e_canvas_cache_flush(void);
EAPI void e_canvas_cache_reload(void);
+EAPI void e_canvas_rehint(void);
EAPI Ecore_Evas *e_canvas_new(int engine_hint, Ecore_X_Window win, int x, int
y, int w, int h, int direct_resize, int override, Ecore_X_Window *win_ret,
Ecore_X_Window *subwin_ret);
#endif
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_hinting.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_int_config_hinting.c 28 Feb 2006 04:07:28 -0000 1.4
+++ e_int_config_hinting.c 1 Mar 2006 03:47:51 -0000 1.5
@@ -73,6 +73,7 @@
/* Actually take our cfdata settings and apply them in real life */
e_config->font_hinting = cfdata->hinting;
e_config_save_queue();
+ e_canvas_rehint();
return 1; /* Apply was OK */
}
-------------------------------------------------------
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