diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-02 10:48:37 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-02 10:48:37 +0200 |
commit | 9b0fbfa06dcfc5edab5d3a31ad5cb0d12c21bd4a (patch) | |
tree | 2719d3fb7b2d20275cadc5d434d745c0ce6d9697 /thirdparty/harfbuzz/src/hb-style.cc | |
parent | b7a852a05d3598771bc1b9456ed34c0f5d011652 (diff) | |
download | redot-engine-9b0fbfa06dcfc5edab5d3a31ad5cb0d12c21bd4a.tar.gz |
HarfBuzz: Update to version 4.0.0
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-style.cc')
-rw-r--r-- | thirdparty/harfbuzz/src/hb-style.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/thirdparty/harfbuzz/src/hb-style.cc b/thirdparty/harfbuzz/src/hb-style.cc index c0c5c4832c..c7d7d713c2 100644 --- a/thirdparty/harfbuzz/src/hb-style.cc +++ b/thirdparty/harfbuzz/src/hb-style.cc @@ -46,13 +46,13 @@ static inline float _hb_angle_to_ratio (float a) { - return tanf (a * float (M_PI / 180.)); + return tanf (a * float (-M_PI / 180.)); } static inline float _hb_ratio_to_angle (float r) { - return atanf (r) * float (180. / M_PI); + return atanf (r) * float (-180. / M_PI); } /** @@ -72,8 +72,7 @@ float hb_style_get_value (hb_font_t *font, hb_style_tag_t style_tag) { if (unlikely (style_tag == HB_STYLE_TAG_SLANT_RATIO)) - return _hb_angle_to_ratio (hb_style_get_value (font, HB_STYLE_TAG_SLANT_ANGLE)) - + font->slant; + return _hb_angle_to_ratio (hb_style_get_value (font, HB_STYLE_TAG_SLANT_ANGLE)); hb_face_t *face = font->face; |