|
|
@ -1243,15 +1243,10 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
|
|
|
|
fontpattern = FcFontSetMatch(0, fcsets, 1,
|
|
|
|
fontpattern = FcFontSetMatch(0, fcsets, 1,
|
|
|
|
fcpattern, &fcres);
|
|
|
|
fcpattern, &fcres);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/* Allocate memory for the new cache entry. */
|
|
|
|
* Allocate memory for the new cache entry.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (frclen >= frccap) {
|
|
|
|
if (frclen >= frccap) {
|
|
|
|
frccap += 16;
|
|
|
|
frccap += 16;
|
|
|
|
if (!frc)
|
|
|
|
frc = xrealloc(frc, frccap * sizeof(Fontcache));
|
|
|
|
frc = xmalloc(frccap * sizeof(Fontcache));
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
frc = xrealloc(frc, frccap * sizeof(Fontcache));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
frc[frclen].font = XftFontOpenPattern(xw.dpy,
|
|
|
|
frc[frclen].font = XftFontOpenPattern(xw.dpy,
|
|
|
|