summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_font_ot.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-07-03 07:23:17 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-07-03 07:23:17 +0000
commitcf10c5d487f73c80fa3c221e83d872dbc826b88a (patch)
tree7377c125bfe41c01b06e0b8dfccd2a7278aceb89 /legacy/evas/src/lib/engines/common/evas_font_ot.c
parent31cac0d124062eb27a539754409a681ddb5065c7 (diff)
Evas: Support harfbuzz version checking.
NB: Merged from Tizen to upstream EFL. SVN revision: 73196
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_font_ot.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_font_ot.c b/legacy/evas/src/lib/engines/common/evas_font_ot.c
index 9ed92c75f0..3e22603483 100644
--- a/legacy/evas/src/lib/engines/common/evas_font_ot.c
+++ b/legacy/evas/src/lib/engines/common/evas_font_ot.c
@@ -294,10 +294,19 @@ evas_common_font_ot_populate_text_props(const Eina_Unicode *text,
294 slen = len; 294 slen = len;
295 } 295 }
296 296
297#if HB_VERSION_CHECK(0,7,0)
298 buffer = hb_buffer_create(slen);
299#else
297 buffer = hb_buffer_create(); 300 buffer = hb_buffer_create();
301#endif
298 hb_buffer_set_unicode_funcs(buffer, _evas_common_font_ot_unicode_funcs_get()); 302 hb_buffer_set_unicode_funcs(buffer, _evas_common_font_ot_unicode_funcs_get());
303#if HB_VERSION_CHECK(0,7,0)
304 hb_buffer_set_language(buffer, hb_language_from_string(
305 evas_common_language_from_locale_get()));
306#else
299 hb_buffer_set_language(buffer, hb_language_from_string( 307 hb_buffer_set_language(buffer, hb_language_from_string(
300 evas_common_language_from_locale_get(), -1)); 308 evas_common_language_from_locale_get(), -1));
309#endif
301 hb_buffer_set_script(buffer, _evas_script_to_harfbuzz[props->script]); 310 hb_buffer_set_script(buffer, _evas_script_to_harfbuzz[props->script]);
302 hb_buffer_set_direction(buffer, 311 hb_buffer_set_direction(buffer,
303 (props->bidi.dir == EVAS_BIDI_DIRECTION_RTL) ? 312 (props->bidi.dir == EVAS_BIDI_DIRECTION_RTL) ?