evas/evas_font - added exeption handlings.

SVN revision: 62659
This commit is contained in:
ChunEon Park 2011-08-21 12:47:11 +00:00
parent 40d578abe0
commit 1bed664303
1 changed files with 11 additions and 7 deletions

View File

@ -53,21 +53,25 @@
/*FIXME: doc */
#ifdef OT_SUPPORT
# define EVAS_FONT_WALK_X_OFF \
(EVAS_FONT_ROUND_26_6_TO_INT(EVAS_FONT_OT_X_OFF_GET(*_ot_itr)))
((_ot_itr) ? \
(EVAS_FONT_ROUND_26_6_TO_INT(EVAS_FONT_OT_X_OFF_GET(*_ot_itr)) : \
0)
# define EVAS_FONT_WALK_Y_OFF \
(EVAS_FONT_ROUND_26_6_TO_INT(EVAS_FONT_OT_Y_OFF_GET(*_ot_itr)))
((_ot_itr) ? \
(EVAS_FONT_ROUND_26_6_TO_INT(EVAS_FONT_OT_Y_OFF_GET(*_ot_itr)) : \
0)
# define EVAS_FONT_WALK_POS \
(EVAS_FONT_OT_POS_GET(*_ot_itr) - text_props->text_offset)
((_ot_itr) ? \
(EVAS_FONT_OT_POS_GET(*_ot_itr) - text_props->text_offset) : \
0)
# define EVAS_FONT_WALK_POS_NEXT \
((!EVAS_FONT_WALK_IS_LAST) ? \
EVAS_FONT_OT_POS_GET(*(_ot_itr + 1)) - \
text_props->text_offset : \
((_ot_itr) ? EVAS_FONT_OT_POS_GET(*(_ot_itr + 1)) : 0) - text_props->text_offset : \
EVAS_FONT_WALK_POS \
)
# define EVAS_FONT_WALK_POS_PREV \
((char_index > 0) ? \
EVAS_FONT_OT_POS_GET(*(_ot_itr - 1)) - \
text_props->text_offset : \
((_ot_itr) ? EVAS_FONT_OT_POS_GET(*(_ot_itr - 1)) : 0) - text_props->text_offset : \
EVAS_FONT_WALK_POS \
)
#else