return 0;
}
best = FcFontSetMatchInternal (config, sets, nsets, p, result);
- return FcFontRenderPrepare (config, p, best);
+ if (best)
+ return FcFontRenderPrepare (config, p, best);
+ else
+ return NULL;
}
FcPattern *
sets[nsets++] = config->fonts[FcSetApplication];
best = FcFontSetMatchInternal (config, sets, nsets, p, result);
- return FcFontRenderPrepare (config, p, best);
+ if (best)
+ return FcFontRenderPrepare (config, p, best);
+ else
+ return NULL;
}
typedef struct _FcSortNode {