summaryrefslogtreecommitdiff
path: root/thirdparty/harfbuzz/src/hb-font.hh
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-02 22:17:43 +0100
committerGitHub <noreply@github.com>2022-02-02 22:17:43 +0100
commit5f3f0b5e00a2e692a282d087321b647f1a274315 (patch)
tree5b396972281fd9029317d993d0543b859ae13013 /thirdparty/harfbuzz/src/hb-font.hh
parent7be7623d693a4328d8ef1947e16ff3d1d70daa65 (diff)
parent5676b3c022874c6a636073792e4be5ee3abd170d (diff)
Merge pull request #57563 from bruvzg/hb331
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-font.hh')
-rw-r--r--thirdparty/harfbuzz/src/hb-font.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/thirdparty/harfbuzz/src/hb-font.hh b/thirdparty/harfbuzz/src/hb-font.hh
index 1b7f445e8b..0d73589e8c 100644
--- a/thirdparty/harfbuzz/src/hb-font.hh
+++ b/thirdparty/harfbuzz/src/hb-font.hh
@@ -109,6 +109,8 @@ struct hb_font_t
int32_t x_scale;
int32_t y_scale;
+ float slant;
+ float slant_xy;
int64_t x_mult;
int64_t y_mult;
@@ -617,6 +619,7 @@ struct hb_font_t
signed upem = face->get_upem ();
x_mult = ((int64_t) x_scale << 16) / upem;
y_mult = ((int64_t) y_scale << 16) / upem;
+ slant_xy = y_scale ? slant * x_scale / y_scale : 0.f;
}
hb_position_t em_mult (int16_t v, int64_t mult)