[util/draw] If HB_DRAW is not set, choose depending on cairo version
If HB_DRAW=0, don't use it, if HB_DRAW=1, use it, if unset, choose depending on cairo version
This commit is contained in:
parent
22f2c78c28
commit
9cc9ffe352
|
@ -70,7 +70,9 @@ static inline bool
|
|||
helper_cairo_use_hb_draw (const font_options_t *font_opts)
|
||||
{
|
||||
const char *env = getenv ("HB_DRAW");
|
||||
return env && atoi (env);
|
||||
if (!env)
|
||||
return cairo_version () >= CAIRO_VERSION_ENCODE (1, 17, 5);
|
||||
return atoi (env);
|
||||
}
|
||||
|
||||
static inline cairo_scaled_font_t *
|
||||
|
|
Loading…
Reference in New Issue