[style] Change tag type to hb_style_tag_t

https://github.com/harfbuzz/harfbuzz/pull/3201#discussion_r708914354
This commit is contained in:
Behdad Esfahbod 2021-09-15 07:46:33 -04:00
parent 470686e817
commit ae14537854
2 changed files with 3 additions and 4 deletions

View File

@ -73,12 +73,11 @@ _hb_ratio_to_angle (float r)
* Since: REPLACEME * Since: REPLACEME
**/ **/
float 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)); 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; hb_face_t *face = font->face;
#ifndef HB_NO_VAR #ifndef HB_NO_VAR

View File

@ -72,7 +72,7 @@ typedef enum
HB_EXTERN float 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 HB_END_DECLS