diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-10-27 23:21:25 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-10-27 23:21:25 +0300 |
commit | 07c3d56e45d91d129f639a7bb8fdc18d4eaa68b1 (patch) | |
tree | 41af2c263563c7b2128c0c9b636090f5f4c3ec51 /thirdparty/harfbuzz/src/hb-ot-post-table.hh | |
parent | f497156e0b37fc4c33ce11c285a8b318b319f7cc (diff) | |
download | redot-engine-07c3d56e45d91d129f639a7bb8fdc18d4eaa68b1.tar.gz |
HarfBuzz: Update to version 8.2.2
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-ot-post-table.hh')
-rw-r--r-- | thirdparty/harfbuzz/src/hb-ot-post-table.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/thirdparty/harfbuzz/src/hb-ot-post-table.hh b/thirdparty/harfbuzz/src/hb-ot-post-table.hh index 761e49d119..aaecc348ee 100644 --- a/thirdparty/harfbuzz/src/hb-ot-post-table.hh +++ b/thirdparty/harfbuzz/src/hb-ot-post-table.hh @@ -113,12 +113,12 @@ struct post } #endif - if (c->plan->user_axes_location.has (HB_TAG ('s','l','n','t')) && - !c->plan->pinned_at_default) + Triple *axis_range; + if (c->plan->user_axes_location.has (HB_TAG ('s','l','n','t'), &axis_range)) { - float italic_angle = c->plan->user_axes_location.get (HB_TAG ('s','l','n','t')).middle; - italic_angle = hb_max (-90.f, hb_min (italic_angle, 90.f)); - post_prime->italicAngle.set_float (italic_angle); + float italic_angle = hb_max (-90.f, hb_min (axis_range->middle, 90.f)); + if (post_prime->italicAngle.to_float () != italic_angle) + post_prime->italicAngle.set_float (italic_angle); } if (glyph_names && version.major == 2) |