From: tasn Date: Sun, 15 May 2011 11:59:58 +0000 (+0000) Subject: Evas font-engine: Remove the useless RGBA_Font_Source hb.face. X-Git-Tag: accepted/2.0/20130306.225542~242^2~607 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d154f7f4f34fac4e402a050d319934dcdea0e728;p=profile%2Fivi%2Fevas.git Evas font-engine: Remove the useless RGBA_Font_Source hb.face. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59403 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/engines/common/evas_font_load.c b/src/lib/engines/common/evas_font_load.c index 079771f..48d3df0 100644 --- a/src/lib/engines/common/evas_font_load.c +++ b/src/lib/engines/common/evas_font_load.c @@ -52,9 +52,6 @@ _evas_common_font_source_free(RGBA_Font_Source *fs) FTLOCK(); FT_Done_Face(fs->ft.face); FTUNLOCK(); -#ifdef OT_SUPPORT - evas_common_font_ot_unload_face(fs); -#endif if (fs->name) eina_stringshare_del(fs->name); if (fs->file) eina_stringshare_del(fs->file); free(fs); @@ -143,9 +140,6 @@ evas_common_font_source_memory_load(const char *name, const void *data, int data free(fs); return NULL; } -#ifdef OT_SUPPORT - evas_common_font_ot_load_face(fs); -#endif FTUNLOCK(); fs->ft.orig_upem = fs->ft.face->units_per_EM; fs->references = 1; @@ -179,9 +173,6 @@ evas_common_font_source_unload(RGBA_Font_Source *fs) FTLOCK(); FT_Done_Face(fs->ft.face); fs->ft.face = NULL; -#ifdef OT_SUPPORT - evas_common_font_ot_unload_face(fs); -#endif FTUNLOCK(); } @@ -231,9 +222,6 @@ evas_common_font_source_load_complete(RGBA_Font_Source *fs) fs->ft.face = NULL; return error; } -#ifdef OT_SUPPORT - evas_common_font_ot_load_face(fs); -#endif FTUNLOCK(); fs->ft.orig_upem = fs->ft.face->units_per_EM; return error; diff --git a/src/lib/engines/common/evas_font_ot.c b/src/lib/engines/common/evas_font_ot.c index c3e4c86..edeb6cd 100644 --- a/src/lib/engines/common/evas_font_ot.c +++ b/src/lib/engines/common/evas_font_ot.c @@ -178,24 +178,6 @@ evas_common_font_ot_cluster_size_get(const Evas_Text_Props *props, size_t char_i return (items > 0) ? items : 1; } -EAPI void -evas_common_font_ot_load_face(void *_font) -{ - RGBA_Font_Source *font = (RGBA_Font_Source *) _font; - /* Unload the face if by any chance it's already loaded */ - evas_common_font_ot_unload_face(font); - font->hb.face = hb_ft_face_create(font->ft.face, NULL); -} - -EAPI void -evas_common_font_ot_unload_face(void *_font) -{ - RGBA_Font_Source *font = (RGBA_Font_Source *) _font; - if (!font->hb.face) return; - hb_face_destroy(font->hb.face); - font->hb.face = NULL; -} - /* Harfbuzz font functions */ static void diff --git a/src/lib/engines/common/evas_font_ot.h b/src/lib/engines/common/evas_font_ot.h index 9cf0148..adbe54d 100644 --- a/src/lib/engines/common/evas_font_ot.h +++ b/src/lib/engines/common/evas_font_ot.h @@ -34,12 +34,6 @@ struct _Evas_Font_OT_Info # define EVAS_FONT_OT_POS_GET(a) ((a).source_cluster) # endif -EAPI void -evas_common_font_ot_load_face(void *_font); - -EAPI void -evas_common_font_ot_unload_face(void *_font); - # include "evas_text_utils.h" EAPI int evas_common_font_ot_cluster_size_get(const Evas_Text_Props *props, size_t char_index); diff --git a/src/lib/include/evas_common.h b/src/lib/include/evas_common.h index fb022cb..2ca8026 100644 --- a/src/lib/include/evas_common.h +++ b/src/lib/include/evas_common.h @@ -906,11 +906,6 @@ struct _RGBA_Font_Source int orig_upem; FT_Face face; } ft; -#ifdef OT_SUPPORT - struct { - void *face; - } hb; -#endif }; struct _RGBA_Font_Glyph