From c38e060fb2cf02c760f71f0a1314bfc4bac6bc50 Mon Sep 17 00:00:00 2001 From: tilman Date: Sat, 31 Mar 2007 10:53:22 +0000 Subject: [PATCH] hooked up the 'alternate font metrics stuff' in edje_cc. SVN revision: 29280 --- legacy/edje/src/bin/edje_cc_handlers.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/legacy/edje/src/bin/edje_cc_handlers.c b/legacy/edje/src/bin/edje_cc_handlers.c index a05fdcf4e4..1d097df6f5 100644 --- a/legacy/edje/src/bin/edje_cc_handlers.c +++ b/legacy/edje/src/bin/edje_cc_handlers.c @@ -43,6 +43,7 @@ static void st_collections_group_parts_part_type(void); static void st_collections_group_parts_part_effect(void); static void st_collections_group_parts_part_mouse_events(void); static void st_collections_group_parts_part_repeat_events(void); +static void st_collections_group_parts_part_use_alternate_font_metrics(void); static void st_collections_group_parts_part_clip_to_id(void); static void st_collections_group_parts_part_dragable_x(void); static void st_collections_group_parts_part_dragable_y(void); @@ -176,6 +177,7 @@ New_Statement_Handler statement_handlers[] = {"collections.group.parts.part.effect", st_collections_group_parts_part_effect}, {"collections.group.parts.part.mouse_events", st_collections_group_parts_part_mouse_events}, {"collections.group.parts.part.repeat_events", st_collections_group_parts_part_repeat_events}, + {"collections.group.parts.part.use_alternate_font_metrics", st_collections_group_parts_part_use_alternate_font_metrics}, {"collections.group.parts.part.clip_to", st_collections_group_parts_part_clip_to_id}, {"collections.group.parts.part.dragable.x", st_collections_group_parts_part_dragable_x}, {"collections.group.parts.part.dragable.y", st_collections_group_parts_part_dragable_y}, @@ -893,6 +895,7 @@ ob_collections_group_parts_part(void) ep->type = EDJE_PART_TYPE_IMAGE; ep->mouse_events = 1; ep->repeat_events = 0; + ep->use_alternate_font_metrics = 0; ep->clip_to_id = -1; ep->dragable.confine_id = -1; ep->dragable.events_id = -1; @@ -975,6 +978,19 @@ st_collections_group_parts_part_repeat_events(void) ep->repeat_events = parse_bool(0); } +static void +st_collections_group_parts_part_use_alternate_font_metrics(void) +{ + Edje_Part_Collection *pc; + Edje_Part *ep; + + check_arg_count(1); + + pc = evas_list_data(evas_list_last(edje_collections)); + ep = evas_list_data(evas_list_last(pc->parts)); + ep->use_alternate_font_metrics = parse_bool(0); +} + static void st_collections_group_parts_part_clip_to_id(void) {