| 1 | #ifdef NEED_FT2BUILD_H |
| 2 | #include <ft2build.h> |
| 3 | #endif |
| 4 | #include <X11/Xlib.h> |
| 5 | #include <X11/Xft/Xft.h> |
| 6 | |
| 7 | const char *name = "-*-fixed-medium-r-*-*-*-120-*-*-*-*-iso8859-1"; |
| 8 | |
| 9 | int main(int argc,char *argv[]) |
| 10 | { |
| 11 | FcPattern *pattern = XftXlfdParse (name, FcFalse, FcTrue); |
| 12 | char *family; |
| 13 | if (XftPatternGetString (pattern, XFT_FAMILY, 0, &family) != XftResultMatch) |
| 14 | { |
| 15 | return 1; |
| 16 | } |
| 17 | return 0; |
| 18 | } |