[hb-view] Work around old cairo

Fixes https://github.com/harfbuzz/harfbuzz/issues/4378
pull/4379/head
Behdad Esfahbod 1 year ago
parent 06ff3bcb8d
commit e714e7d4f3
  1. 3
      util/view-cairo.hh

@ -202,6 +202,8 @@ view_cairo_t::render (const font_options_t *font_opts)
cairo_restore (cr);
}
// https://github.com/harfbuzz/harfbuzz/issues/4378
#if CAIRO_VERSION >= 11700
if (l.num_clusters)
cairo_show_text_glyphs (cr,
l.utf8, l.utf8_len,
@ -209,6 +211,7 @@ view_cairo_t::render (const font_options_t *font_opts)
l.clusters, l.num_clusters,
l.cluster_flags);
else
#endif
cairo_show_glyphs (cr, l.glyphs, l.num_glyphs);
}

Loading…
Cancel
Save