[util/draw/ft] Use hb-draw for font-funcs=ft as well

If cairo is >= 1.17.5.

This essentially breaks emoji and bitmap fonts for now.
This commit is contained in:
Behdad Esfahbod 2022-02-04 18:45:04 -06:00
parent 6d5b998f25
commit 542f8269cb
1 changed files with 1 additions and 2 deletions

View File

@ -69,8 +69,7 @@ _cairo_eps_surface_create_for_stream (cairo_write_func_t write_func,
static inline bool
helper_cairo_use_hb_draw (const font_options_t *font_opts)
{
return cairo_version () >= CAIRO_VERSION_ENCODE (1, 17, 5) &&
(font_opts->font_funcs && strcmp (font_opts->font_funcs, "ft"));
return cairo_version () >= CAIRO_VERSION_ENCODE (1, 17, 5);
}
static inline cairo_scaled_font_t *