[style] Change tag type to hb_style_tag_t
https://github.com/harfbuzz/harfbuzz/pull/3201#discussion_r708914354
This commit is contained in:
parent
470686e817
commit
ae14537854
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue