Implement hb_shape_plan_get_shaper()

Untested.
This commit is contained in:
Behdad Esfahbod 2012-11-16 13:23:37 -08:00
parent 43b6531500
commit f9edd5d56b
3 changed files with 9 additions and 3 deletions

View File

@ -43,6 +43,7 @@ struct hb_shape_plan_t
hb_segment_properties_t props; hb_segment_properties_t props;
hb_shape_func_t *shaper_func; hb_shape_func_t *shaper_func;
const char *shaper_name;
struct hb_shaper_data_t shaper_data; struct hb_shaper_data_t shaper_data;
}; };

View File

@ -49,6 +49,7 @@ hb_shape_plan_plan (hb_shape_plan_t *shape_plan,
HB_SHAPER_DATA (shaper, shape_plan) = \ HB_SHAPER_DATA (shaper, shape_plan) = \
HB_SHAPER_DATA_CREATE_FUNC (shaper, shape_plan) (shape_plan, user_features, num_user_features); \ HB_SHAPER_DATA_CREATE_FUNC (shaper, shape_plan) (shape_plan, user_features, num_user_features); \
shape_plan->shaper_func = _hb_##shaper##_shape; \ shape_plan->shaper_func = _hb_##shaper##_shape; \
shape_plan->shaper_name = #shaper; \
return; \ return; \
} \ } \
} HB_STMT_END } HB_STMT_END
@ -120,6 +121,7 @@ hb_shape_plan_get_empty (void)
HB_SEGMENT_PROPERTIES_DEFAULT, /* props */ HB_SEGMENT_PROPERTIES_DEFAULT, /* props */
NULL, /* shaper_func */ NULL, /* shaper_func */
NULL, /* shaper_name */
{ {
#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INVALID, #define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INVALID,
@ -298,3 +300,8 @@ retry:
return hb_shape_plan_reference (shape_plan); return hb_shape_plan_reference (shape_plan);
} }
const char *
hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan)
{
}

View File

@ -80,10 +80,8 @@ hb_shape_plan_execute (hb_shape_plan_t *shape_plan,
const hb_feature_t *features, const hb_feature_t *features,
unsigned int num_features); unsigned int num_features);
#ifdef HB_NOT_IMPLEMENTED
const char * const char *
Xhb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan); hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan);
#endif
HB_END_DECLS HB_END_DECLS