diff --git a/src/hb-unicode.c b/src/hb-unicode.c index d8ea0ea64..a897f2380 100644 --- a/src/hb-unicode.c +++ b/src/hb-unicode.c @@ -160,6 +160,43 @@ hb_unicode_funcs_set_eastasian_width_func (hb_unicode_funcs_t *ufuncs, } +hb_codepoint_t +hb_unicode_get_mirroring (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_mirroring (unicode); +} + +hb_category_t +hb_unicode_get_general_category (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_general_category (unicode); +} + +hb_script_t +hb_unicode_get_script (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_script (unicode); +} + +unsigned int +hb_unicode_get_combining_class (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_combining_class (unicode); +} + +unsigned int +hb_unicode_get_eastasian_width (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_eastasian_width (unicode); +} + + + #define LTR HB_DIRECTION_LTR #define RTL HB_DIRECTION_RTL const hb_direction_t horiz_dir[] = diff --git a/src/hb-unicode.h b/src/hb-unicode.h index b7c3a75f2..6b6335225 100644 --- a/src/hb-unicode.h +++ b/src/hb-unicode.h @@ -214,6 +214,27 @@ hb_unicode_funcs_set_eastasian_width_func (hb_unicode_funcs_t *ufuncs, hb_unicode_get_eastasian_width_func_t eastasian_width_func); +hb_codepoint_t +hb_unicode_get_mirroring (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +hb_category_t +hb_unicode_get_general_category (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +hb_script_t +hb_unicode_get_script (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +unsigned int +hb_unicode_get_combining_class (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +unsigned int +hb_unicode_get_eastasian_width (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + + HB_END_DECLS #endif /* HB_UNICODE_H */