diff options
Diffstat (limited to '')
-rw-r--r-- | legacy/evas/src/lib/engines/common/evas_font_draw.c | 16 | ||||
-rw-r--r-- | legacy/evas/src/lib/engines/common/evas_text_utils.h | 4 |
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 | ||
28 | struct _Evas_Text_Props_Info | 32 | struct _Evas_Text_Props_Info |