From d6e49b8278fee01fea521b2a157d797f17580b3f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 2 Feb 2022 15:45:43 -0600 Subject: [PATCH] [font] Add em_fscalef_[xy] That take and return float --- src/hb-font.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-font.hh b/src/hb-font.hh index 7b3355649..272030b0f 100644 --- a/src/hb-font.hh +++ b/src/hb-font.hh @@ -140,6 +140,8 @@ struct hb_font_t hb_position_t em_scalef_y (float v) { return em_scalef (v, y_scale); } float em_fscale_x (int16_t v) { return em_fscale (v, x_scale); } float em_fscale_y (int16_t v) { return em_fscale (v, y_scale); } + float em_fscalef_x (float v) { return em_fscalef (v, x_scale); } + float em_fscalef_y (float v) { return em_fscalef (v, y_scale); } hb_position_t em_scale_dir (int16_t v, hb_direction_t direction) { return em_mult (v, dir_mult (direction)); }