[draw] Document slant_xy

This commit is contained in:
Behdad Esfahbod committed 2025-03-14 22:10:29 -06:00
1 parent da4758e791
commit bd05b260af
1 file changed
+6
+6
View File
@@ -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 {