diff options
author | Tom Hacohen <tom@stosb.com> | 2012-06-12 14:14:52 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2012-06-12 14:14:52 +0000 |
commit | a9709c792ec59fddcd5d146bf2e2d48a1362eb93 (patch) | |
tree | 63cb7df5fad8671d42a9def9dea725f94a96baab /legacy/evas/src/lib/engines/common/evas_text_utils.h | |
parent | edfa1dfe6167e600204bcccb53b75f88c5aa84f7 (diff) |
Evas font: Support no bidi no shaping mode in font rendering.
For no bidi: just don't set the bidi stuff. I.e paragraph props and the
other stuff (including text_props_direction_set). If you disable BiDi you most
likely want to disable shaping as well.
For no shaping: Disable bidi (i.e don't set direction) and pass
EVAS_TEXT_PROPS_MODE_NONE to info create.
This will prove especially useful for textgrid, but not only.
SVN revision: 72032
Diffstat (limited to '')
-rw-r--r-- | legacy/evas/src/lib/engines/common/evas_text_utils.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 6a77cdbef8..ba5ef3736d 100644 --- a/legacy/evas/src/lib/engines/common/evas_text_utils.h +++ b/legacy/evas/src/lib/engines/common/evas_text_utils.h | |||
@@ -53,6 +53,12 @@ struct _Evas_Font_Glyph_Info | |||
53 | Evas_Coord pen_after; | 53 | Evas_Coord pen_after; |
54 | }; | 54 | }; |
55 | 55 | ||
56 | typedef enum | ||
57 | { | ||
58 | EVAS_TEXT_PROPS_MODE_NONE = 0, | ||
59 | EVAS_TEXT_PROPS_MODE_SHAPE | ||
60 | } Evas_Text_Props_Mode; | ||
61 | |||
56 | 62 | ||
57 | void | 63 | void |
58 | evas_common_text_props_bidi_set(Evas_Text_Props *props, | 64 | evas_common_text_props_bidi_set(Evas_Text_Props *props, |
@@ -64,7 +70,7 @@ evas_common_text_props_script_set(Evas_Text_Props *props, Evas_Script_Type scr); | |||
64 | EAPI Eina_Bool | 70 | EAPI Eina_Bool |
65 | evas_common_text_props_content_create(void *_fi, const Eina_Unicode *text, | 71 | evas_common_text_props_content_create(void *_fi, const Eina_Unicode *text, |
66 | Evas_Text_Props *text_props, const Evas_BiDi_Paragraph_Props *par_props, | 72 | Evas_Text_Props *text_props, const Evas_BiDi_Paragraph_Props *par_props, |
67 | size_t par_pos, int len); | 73 | size_t par_pos, int len, Evas_Text_Props_Mode mode); |
68 | 74 | ||
69 | void | 75 | void |
70 | evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst, | 76 | evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst, |