From 5efb3bc6919f771f68780e3879e4be0d5121e99e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 27 Dec 2022 17:47:46 -0700 Subject: [PATCH] [hb-view] Set hb-cairo scale-factor Unused. --- util/helper-cairo.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/helper-cairo.hh b/util/helper-cairo.hh index d834cc87d..604271949 100644 --- a/util/helper-cairo.hh +++ b/util/helper-cairo.hh @@ -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);