mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-07 06:40:20 +01:00
[cairo-xlib-screen] Protect fontconfig call with CAIRO_HAS_FT_FONT
This commit is contained in:
parent
c8fc587ede
commit
9e1b4704ce
1 changed files with 2 additions and 0 deletions
|
|
@ -111,8 +111,10 @@ get_integer_default (Display *dpy,
|
|||
|
||||
v = XGetDefault (dpy, "Xft", option);
|
||||
if (v) {
|
||||
#if CAIRO_HAS_FT_FONT
|
||||
if (FcNameConstant ((FcChar8 *) v, value))
|
||||
return TRUE;
|
||||
#endif
|
||||
|
||||
i = strtol (v, &e, 0);
|
||||
if (e != v)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue