diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-05-11 13:04:36 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-05-15 23:59:14 +0900 |
commit | 25c42176e6ee9b3850aae6544d7f1c48bef79b95 (patch) | |
tree | 9c2f304fdc357607ccbd1f97a1f60b2bc2110e22 /src/lib/evas/common | |
parent | 08c9c70c27265c6679b367680dea02205c597c2f (diff) |
evas - make func indenting more redable with overflow lines aligned
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r-- | src/lib/evas/common/evas_font_ot.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/evas/common/evas_font_ot.c b/src/lib/evas/common/evas_font_ot.c index 3c4d4db4aa..2ba9d17f45 100644 --- a/src/lib/evas/common/evas_font_ot.c +++ b/src/lib/evas/common/evas_font_ot.c | |||
@@ -268,7 +268,9 @@ _evas_common_font_ot_shape(hb_buffer_t *buffer, RGBA_Font_Int *fi, Evas_Text_Pro | |||
268 | 268 | ||
269 | EAPI Eina_Bool | 269 | EAPI Eina_Bool |
270 | evas_common_font_ot_populate_text_props(const Eina_Unicode *text, | 270 | evas_common_font_ot_populate_text_props(const Eina_Unicode *text, |
271 | Evas_Text_Props *props, int len, Evas_Text_Props_Mode mode, const char *lang) | 271 | Evas_Text_Props *props, int len, |
272 | Evas_Text_Props_Mode mode, | ||
273 | const char *lang) | ||
272 | { | 274 | { |
273 | RGBA_Font_Int *fi; | 275 | RGBA_Font_Int *fi; |
274 | hb_buffer_t *buffer; | 276 | hb_buffer_t *buffer; |
@@ -296,18 +298,16 @@ evas_common_font_ot_populate_text_props(const Eina_Unicode *text, | |||
296 | hb_buffer_set_language(buffer, hb_language_from_string(lang, -1)); | 298 | hb_buffer_set_language(buffer, hb_language_from_string(lang, -1)); |
297 | hb_buffer_set_script(buffer, _evas_script_to_harfbuzz[props->script]); | 299 | hb_buffer_set_script(buffer, _evas_script_to_harfbuzz[props->script]); |
298 | hb_buffer_set_direction(buffer, | 300 | hb_buffer_set_direction(buffer, |
299 | (props->bidi_dir == EVAS_BIDI_DIRECTION_RTL) ? | 301 | (props->bidi_dir == EVAS_BIDI_DIRECTION_RTL) ? |
300 | HB_DIRECTION_RTL : HB_DIRECTION_LTR); | 302 | HB_DIRECTION_RTL : HB_DIRECTION_LTR); |
301 | /* FIXME: add run-time conversions if needed, which is very unlikely */ | 303 | /* FIXME: add run-time conversions if needed, which is very unlikely */ |
302 | hb_buffer_add_utf32(buffer, (const uint32_t *) text, slen, 0, slen); | 304 | hb_buffer_add_utf32(buffer, (const uint32_t *) text, slen, 0, slen); |
303 | 305 | ||
304 | _evas_common_font_ot_shape(buffer, fi, mode); | 306 | _evas_common_font_ot_shape(buffer, fi, mode); |
305 | 307 | ||
306 | props->len = hb_buffer_get_length(buffer); | 308 | props->len = hb_buffer_get_length(buffer); |
307 | props->info->ot = calloc(props->len, | 309 | props->info->ot = calloc(props->len, sizeof(Evas_Font_OT_Info)); |
308 | sizeof(Evas_Font_OT_Info)); | 310 | props->info->glyph = calloc(props->len, sizeof(Evas_Font_Glyph_Info)); |
309 | props->info->glyph = calloc(props->len, | ||
310 | sizeof(Evas_Font_Glyph_Info)); | ||
311 | positions = hb_buffer_get_glyph_positions(buffer, NULL); | 311 | positions = hb_buffer_get_glyph_positions(buffer, NULL); |
312 | infos = hb_buffer_get_glyph_infos(buffer, NULL); | 312 | infos = hb_buffer_get_glyph_infos(buffer, NULL); |
313 | gl_itr = props->info->glyph; | 313 | gl_itr = props->info->glyph; |