| Index: third_party/harfbuzz-ng/src/hb-font-private.hh
|
| diff --git a/third_party/harfbuzz-ng/src/hb-font-private.hh b/third_party/harfbuzz-ng/src/hb-font-private.hh
|
| index cda97a68c01c4eabe46e8aeba97ebe8f987828b5..53671d78d23a6da06c235c5a1bc0a6a8ffc06fb5 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-font-private.hh
|
| +++ b/third_party/harfbuzz-ng/src/hb-font-private.hh
|
| @@ -108,6 +108,10 @@ struct hb_font_t {
|
| unsigned int x_ppem;
|
| unsigned int y_ppem;
|
|
|
| + /* Font variation coordinates. */
|
| + unsigned int num_coords;
|
| + int *coords;
|
| +
|
| hb_font_funcs_t *klass;
|
| void *user_data;
|
| hb_destroy_func_t destroy;
|
| @@ -120,6 +124,8 @@ struct hb_font_t {
|
| { return HB_DIRECTION_IS_VERTICAL(direction) ? y_scale : x_scale; }
|
| inline hb_position_t em_scale_x (int16_t v) { return em_scale (v, x_scale); }
|
| inline hb_position_t em_scale_y (int16_t v) { return em_scale (v, y_scale); }
|
| + inline hb_position_t em_scalef_x (float v) { return em_scalef (v, this->x_scale); }
|
| + inline hb_position_t em_scalef_y (float v) { return em_scalef (v, this->y_scale); }
|
| inline hb_position_t em_scale_dir (int16_t v, hb_direction_t direction)
|
| { return em_scale (v, dir_scale (direction)); }
|
|
|
| @@ -531,6 +537,10 @@ struct hb_font_t {
|
| scaled += scaled >= 0 ? upem/2 : -upem/2; /* Round. */
|
| return (hb_position_t) (scaled / upem);
|
| }
|
| + inline hb_position_t em_scalef (float v, int scale)
|
| + {
|
| + return (hb_position_t) (v * scale / face->get_upem ());
|
| + }
|
| };
|
|
|
| #define HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
|
|
|