[util/draw] Apply slant to non-user-fonts as well
This commit is contained in:
parent
c56c13756b
commit
5c558586eb
|
@ -90,6 +90,9 @@ helper_cairo_create_scaled_font (const font_options_t *font_opts)
|
||||||
cairo_matrix_init_scale (&font_matrix,
|
cairo_matrix_init_scale (&font_matrix,
|
||||||
font_opts->font_size_x,
|
font_opts->font_size_x,
|
||||||
font_opts->font_size_y);
|
font_opts->font_size_y);
|
||||||
|
if (!helper_cairo_use_hb_draw (font_opts))
|
||||||
|
font_matrix.xy = -font_opts->slant * font_opts->font_size_x;
|
||||||
|
|
||||||
font_options = cairo_font_options_create ();
|
font_options = cairo_font_options_create ();
|
||||||
cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
|
cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
|
||||||
cairo_font_options_set_hint_metrics (font_options, CAIRO_HINT_METRICS_OFF);
|
cairo_font_options_set_hint_metrics (font_options, CAIRO_HINT_METRICS_OFF);
|
||||||
|
|
Loading…
Reference in New Issue