[hb-view] Set hb-cairo scale-factor

Unused.
This commit is contained in:
Behdad Esfahbod 2022-12-27 17:47:46 -07:00
parent 81c04b0c21
commit 5efb3bc691
1 changed files with 3 additions and 0 deletions

View File

@ -100,7 +100,10 @@ helper_cairo_create_scaled_font (const font_options_t *font_opts)
cairo_font_face_t *cairo_face;
if (use_hb_draw)
{
cairo_face = hb_cairo_font_face_create_for_font (font);
hb_cairo_font_face_set_scale_factor (cairo_face, 1 << font_opts->subpixel_bits);
}
#ifdef HAVE_CAIRO_FT
else
cairo_face = helper_cairo_create_ft_font_face (font_opts);