Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/imaging
Modified Files:
evas_imaging.c
Log Message:
make hinting an engine api thnig - engine apis need to be mroe easily updated
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/imaging/evas_imaging.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- evas_imaging.c 27 Feb 2006 14:03:27 -0000 1.7
+++ evas_imaging.c 28 Feb 2006 04:07:47 -0000 1.8
@@ -80,13 +80,7 @@
EAPI Evas_Bool
evas_imaging_font_hinting_can_hint(Evas_Font_Hinting_Flags hinting)
{
- Font_Hint_Flags h;
-
- h = FONT_BYTECODE_HINT;
- if (hinting == EVAS_FONT_HINTING_NONE) h = FONT_NO_HINT;
- else if (hinting == EVAS_FONT_HINTING_AUTO) h = FONT_AUTO_HINT;
- else if (hinting == EVAS_FONT_HINTING_BYTECODE) h = FONT_BYTECODE_HINT;
- return evas_common_hinting_available(h);
+ return evas_common_hinting_available(hinting);
}
EAPI Evas_Imaging_Font *
@@ -108,7 +102,7 @@
tmp = evas_file_path_join(file, key);
if (tmp)
{
- font = evas_common_font_load(tmp, size);
+ font = evas_common_font_hinting_load(tmp, size, _evas_hinting);
if (!font)
{
Eet_File *ef;
@@ -122,7 +116,7 @@
fdata = eet_read(ef, (char *)key, &fsize);
if ((fdata) && (fsize > 0))
{
- font = evas_common_font_memory_load(tmp, size,
fdata, fsize);
+ font = evas_common_font_memory_hinting_load(tmp,
size, fdata, fsize, _evas_hinting);
free(fdata);
}
eet_close(ef);
@@ -134,13 +128,8 @@
else
#endif
{
- font = evas_common_font_load((char *)file, size);
+ font = evas_common_font_hinting_load((char *)file, size, _evas_hinting);
}
- h = FONT_BYTECODE_HINT;
- if (_evas_hinting == EVAS_FONT_HINTING_NONE) h = FONT_NO_HINT;
- else if (_evas_hinting == EVAS_FONT_HINTING_AUTO) h = FONT_AUTO_HINT;
- else if (_evas_hinting == EVAS_FONT_HINTING_BYTECODE) h =
FONT_BYTECODE_HINT;
- if (font) evas_common_font_hinting_set(font, h);
fn = calloc(1, sizeof(RGBA_Font));
if (!fn) return NULL;
fn->font = font;
@@ -224,4 +213,4 @@
evas_imaging_font_cache_get(void)
{
return evas_common_font_cache_get();
-}
+}
\ No newline at end of file
-------------------------------------------------------
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