From dc9ca63763234d5082db5e88944d1fccb65ed565 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 27 Dec 2022 17:49:02 -0700 Subject: [PATCH] [hb-view] Remove stale disabled code path With color rendering that code path is wrong anyway. And cairo now supports subpixel text positioning. --- util/view-cairo.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/util/view-cairo.hh b/util/view-cairo.hh index 1578f13e3..3fd12e3cb 100644 --- a/util/view-cairo.hh +++ b/util/view-cairo.hh @@ -184,11 +184,7 @@ view_cairo_t::render (const font_options_t *font_opts) cairo_restore (cr); } - if (0 && cairo_surface_get_type (cairo_get_target (cr)) == CAIRO_SURFACE_TYPE_IMAGE) { - /* cairo_show_glyphs() doesn't support subpixel positioning */ - cairo_glyph_path (cr, l.glyphs, l.num_glyphs); - cairo_fill (cr); - } else if (l.num_clusters) + if (l.num_clusters) cairo_show_text_glyphs (cr, l.utf8, l.utf8_len, l.glyphs, l.num_glyphs,