[hb-view] Remove stale disabled code path
With color rendering that code path is wrong anyway. And cairo now supports subpixel text positioning.
This commit is contained in:
parent
5efb3bc691
commit
dc9ca63763
|
@ -184,11 +184,7 @@ view_cairo_t::render (const font_options_t *font_opts)
|
||||||
cairo_restore (cr);
|
cairo_restore (cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 && cairo_surface_get_type (cairo_get_target (cr)) == CAIRO_SURFACE_TYPE_IMAGE) {
|
if (l.num_clusters)
|
||||||
/* 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)
|
|
||||||
cairo_show_text_glyphs (cr,
|
cairo_show_text_glyphs (cr,
|
||||||
l.utf8, l.utf8_len,
|
l.utf8, l.utf8_len,
|
||||||
l.glyphs, l.num_glyphs,
|
l.glyphs, l.num_glyphs,
|
||||||
|
|
Loading…
Reference in New Issue