mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 02:23:59 +01:00
[hb-view] Work around old cairo
Fixes https://github.com/harfbuzz/harfbuzz/issues/4378
This commit is contained in:
1 parent
06ff3bcb8d
commit
e714e7d4f3
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user