[style] Change tag type to hb_style_tag_t

https://github.com/harfbuzz/harfbuzz/pull/3201#discussion_r708914354
pull/3210/head
Behdad Esfahbod 3 years ago
parent 470686e817
commit ae14537854
  1. 5
      src/hb-style.cc
  2. 2
      src/hb-style.h

@ -73,12 +73,11 @@ _hb_ratio_to_angle (float r)
* Since: REPLACEME
**/
float
hb_style_get_value (hb_font_t *font, hb_tag_t tag)
hb_style_get_value (hb_font_t *font, hb_style_tag_t style_tag)
{
if (unlikely (tag == HB_STYLE_TAG_SLANT_RATIO))
if (unlikely (style_tag == HB_STYLE_TAG_SLANT_RATIO))
return _hb_angle_to_ratio (hb_style_get_value (font, HB_STYLE_TAG_SLANT_ANGLE));
hb_style_tag_t style_tag = (hb_style_tag_t) tag;
hb_face_t *face = font->face;
#ifndef HB_NO_VAR

@ -72,7 +72,7 @@ typedef enum
HB_EXTERN float
hb_style_get_value (hb_font_t *font, hb_tag_t style_tag);
hb_style_get_value (hb_font_t *font, hb_style_tag_t style_tag);
HB_END_DECLS

Loading…
Cancel
Save