[hb-view] Fix cairo slanting condition

hb-draw already does slanting. If NOT hb-draw, we should slant
through cairo path.  Donno why this was untested before.

This was double-slanting with hb-draw, and not slanting without it.
This commit is contained in:
Behdad Esfahbod 2022-11-23 16:17:50 -07:00
parent 404cb99d86
commit 2e9b270a49
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ helper_cairo_create_scaled_font (const font_options_t *font_opts)
cairo_matrix_init_scale (&font_matrix,
font_opts->font_size_x,
font_opts->font_size_y);
if (use_hb_draw)
if (!use_hb_draw)
font_matrix.xy = -font_opts->slant * font_opts->font_size_x;
font_options = cairo_font_options_create ();