summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-04-21 15:34:44 +0000
committerTom Hacohen <tom@stosb.com>2011-04-21 15:34:44 +0000
commit902d94afb9497d03e9b6631e15b4aa009b8a8e10 (patch)
treec95051842b45c3b142fc86fb720593ad0fa9db9f /legacy/evas/src/lib/engines/common
parent2dce8da128b261977d5b0533312473185acf46b5 (diff)
Evas textblock: Added a temp fix for repch until implemented nicely.
This fix is just until we finally split to scripts and cache fi all the time, i.e in all the possible paths (regular, fribidi and harfbuzz). SVN revision: 58806
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_font_draw.c16
-rw-r--r--legacy/evas/src/lib/engines/common/evas_text_utils.h4
2 files changed, 16 insertions, 4 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_font_draw.c b/legacy/evas/src/lib/engines/common/evas_font_draw.c
index 5d1efb6d4d..5ea57ec10c 100644
--- a/legacy/evas/src/lib/engines/common/evas_font_draw.c
+++ b/legacy/evas/src/lib/engines/common/evas_font_draw.c
@@ -551,8 +551,12 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font
551#else 551#else
552 /* FIXME: Should be removed once we split according to script without 552 /* FIXME: Should be removed once we split according to script without
553 * the use of harfbuzz */ 553 * the use of harfbuzz */
554 index = 554 if (text_props->repch)
555 evas_common_font_glyph_search(fn, &fi, text[EVAS_FONT_WALK_POS]); 555 index =
556 evas_common_font_glyph_search(fn, &fi, text_props->repch);
557 else
558 index =
559 evas_common_font_glyph_search(fn, &fi, text[EVAS_FONT_WALK_POS]);
556 560
557 if (index == 0) 561 if (index == 0)
558 { 562 {
@@ -877,8 +881,12 @@ evas_font_word_prerender(RGBA_Draw_Context *dc, const Eina_Unicode *in_text, con
877#else 881#else
878 /* FIXME: Should be removed once we split according to script without 882 /* FIXME: Should be removed once we split according to script without
879 * the use of harfbuzz */ 883 * the use of harfbuzz */
880 index = 884 if (text_props->repch)
881 evas_common_font_glyph_search(fn, &fi, text[EVAS_FONT_WALK_POS]); 885 index =
886 evas_common_font_glyph_search(fn, &fi, text_props->repch);
887 else
888 index =
889 evas_common_font_glyph_search(fn, &fi, text[EVAS_FONT_WALK_POS]);
882 890
883 if (fi->src->current_size != fi->size) 891 if (fi->src->current_size != fi->size)
884 { 892 {
diff --git a/legacy/evas/src/lib/engines/common/evas_text_utils.h b/legacy/evas/src/lib/engines/common/evas_text_utils.h
index 21f8f3864e..687827a70d 100644
--- a/legacy/evas/src/lib/engines/common/evas_text_utils.h
+++ b/legacy/evas/src/lib/engines/common/evas_text_utils.h
@@ -23,6 +23,10 @@ struct _Evas_Text_Props
23 Evas_BiDi_Props bidi; 23 Evas_BiDi_Props bidi;
24 Evas_Script_Type script; 24 Evas_Script_Type script;
25 Evas_Text_Props_Info *info; 25 Evas_Text_Props_Info *info;
26
27 /* FIXME: just a hack in the meanwhile, remove when I can finally cache
28 * fi and split to scripts without harfbuzz */
29 Eina_Unicode repch;
26}; 30};
27 31
28struct _Evas_Text_Props_Info 32struct _Evas_Text_Props_Info