From bd05b260af5d0d030dbae2d719dc433e2c7e0b2c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 14 Mar 2025 22:10:29 -0600 Subject: [PATCH] [draw] Document slant_xy --- src/hb-draw.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hb-draw.h b/src/hb-draw.h index 89ef1b22a..3308f230f 100644 --- a/src/hb-draw.h +++ b/src/hb-draw.h @@ -45,6 +45,12 @@ HB_BEGIN_DECLS * * Current drawing state. * + * The @slant_xy is a slanting factor for synthetic oblique. If the font's + * oblique angle is not 0, this factor is used to slant the drawing. For + * fonts with uniform x and y scales, this factor is calculated as + * tan(oblique_angle). For fonts with non-uniform scales, this factor is + * calculated as tan(oblique_angle) * x_scale / y_scale, or 0 if y_scale is 0. + * * Since: 4.0.0 **/ typedef struct hb_draw_state_t {