| Index: third_party/harfbuzz-ng/src/hb-font.h
|
| diff --git a/third_party/harfbuzz-ng/src/hb-font.h b/third_party/harfbuzz-ng/src/hb-font.h
|
| index 82d056c0136624fc5d3667a81aefa3c90282968a..2b6ab50883fb5968676077e728ba94f4b7d3e720 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-font.h
|
| +++ b/third_party/harfbuzz-ng/src/hb-font.h
|
| @@ -116,10 +116,14 @@ typedef hb_font_get_font_extents_func_t hb_font_get_font_h_extents_func_t;
|
| typedef hb_font_get_font_extents_func_t hb_font_get_font_v_extents_func_t;
|
|
|
|
|
| -typedef hb_bool_t (*hb_font_get_glyph_func_t) (hb_font_t *font, void *font_data,
|
| - hb_codepoint_t unicode, hb_codepoint_t variation_selector,
|
| - hb_codepoint_t *glyph,
|
| - void *user_data);
|
| +typedef hb_bool_t (*hb_font_get_nominal_glyph_func_t) (hb_font_t *font, void *font_data,
|
| + hb_codepoint_t unicode,
|
| + hb_codepoint_t *glyph,
|
| + void *user_data);
|
| +typedef hb_bool_t (*hb_font_get_variation_glyph_func_t) (hb_font_t *font, void *font_data,
|
| + hb_codepoint_t unicode, hb_codepoint_t variation_selector,
|
| + hb_codepoint_t *glyph,
|
| + void *user_data);
|
|
|
|
|
| typedef hb_position_t (*hb_font_get_glyph_advance_func_t) (hb_font_t *font, void *font_data,
|
| @@ -197,7 +201,7 @@ hb_font_funcs_set_font_v_extents_func (hb_font_funcs_t *ffuncs,
|
| void *user_data, hb_destroy_func_t destroy);
|
|
|
| /**
|
| - * hb_font_funcs_set_glyph_func:
|
| + * hb_font_funcs_set_nominal_glyph_func:
|
| * @ffuncs: font functions.
|
| * @func: (closure user_data) (destroy destroy) (scope notified):
|
| * @user_data:
|
| @@ -205,12 +209,28 @@ hb_font_funcs_set_font_v_extents_func (hb_font_funcs_t *ffuncs,
|
| *
|
| *
|
| *
|
| - * Since: 0.9.2
|
| + * Since: 1.2.3
|
| + **/
|
| +HB_EXTERN void
|
| +hb_font_funcs_set_nominal_glyph_func (hb_font_funcs_t *ffuncs,
|
| + hb_font_get_nominal_glyph_func_t func,
|
| + void *user_data, hb_destroy_func_t destroy);
|
| +
|
| +/**
|
| + * hb_font_funcs_set_variation_glyph_func:
|
| + * @ffuncs: font functions.
|
| + * @func: (closure user_data) (destroy destroy) (scope notified):
|
| + * @user_data:
|
| + * @destroy:
|
| + *
|
| + *
|
| + *
|
| + * Since: 1.2.3
|
| **/
|
| HB_EXTERN void
|
| -hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs,
|
| - hb_font_get_glyph_func_t func,
|
| - void *user_data, hb_destroy_func_t destroy);
|
| +hb_font_funcs_set_variation_glyph_func (hb_font_funcs_t *ffuncs,
|
| + hb_font_get_variation_glyph_func_t func,
|
| + void *user_data, hb_destroy_func_t destroy);
|
|
|
| /**
|
| * hb_font_funcs_set_glyph_h_advance_func:
|
| @@ -382,9 +402,13 @@ hb_font_get_v_extents (hb_font_t *font,
|
| hb_font_extents_t *extents);
|
|
|
| HB_EXTERN hb_bool_t
|
| -hb_font_get_glyph (hb_font_t *font,
|
| - hb_codepoint_t unicode, hb_codepoint_t variation_selector,
|
| - hb_codepoint_t *glyph);
|
| +hb_font_get_nominal_glyph (hb_font_t *font,
|
| + hb_codepoint_t unicode,
|
| + hb_codepoint_t *glyph);
|
| +HB_EXTERN hb_bool_t
|
| +hb_font_get_variation_glyph (hb_font_t *font,
|
| + hb_codepoint_t unicode, hb_codepoint_t variation_selector,
|
| + hb_codepoint_t *glyph);
|
|
|
| HB_EXTERN hb_position_t
|
| hb_font_get_glyph_h_advance (hb_font_t *font,
|
| @@ -431,6 +455,13 @@ hb_font_get_glyph_from_name (hb_font_t *font,
|
|
|
| /* high-level funcs, with fallback */
|
|
|
| +/* Calls either hb_font_get_nominal_glyph() if variation_selector is 0,
|
| + * otherwise callse hb_font_get_variation_glyph(). */
|
| +HB_EXTERN hb_bool_t
|
| +hb_font_get_glyph (hb_font_t *font,
|
| + hb_codepoint_t unicode, hb_codepoint_t variation_selector,
|
| + hb_codepoint_t *glyph);
|
| +
|
| HB_EXTERN void
|
| hb_font_get_extents_for_direction (hb_font_t *font,
|
| hb_direction_t direction,
|
|
|