Lines Matching refs:xftg

82     XftGlyph	    *xftg;
87 xftg = font->glyphs[glyphindex];
88 if (xftg)
90 glyph_memory += xftg->glyph_memory;
646 XftGlyph *xftg;
695 xftg = font->glyphs[glyphindex];
696 if (!xftg)
706 if (xftg->glyph_memory)
842 xftg->metrics.xOff = (short)(TRUNC(ROUND(vector.x)));
843 xftg->metrics.yOff = (short)(-TRUNC(ROUND(vector.y)));
853 xftg->metrics.xOff = 0;
854 xftg->metrics.yOff = min(maximum_y,trimmed_y);
858 xftg->metrics.xOff = min(maximum_x,trimmed_x);
859 xftg->metrics.yOff = 0;
865 xftg->metrics.xOff = (short)(TRUNC(ROUND(glyphslot->advance.x)));
866 xftg->metrics.yOff = (short)(-TRUNC(ROUND(glyphslot->advance.y)));
921 xftg->metrics.width = (unsigned short)local.width;
922 xftg->metrics.height = (unsigned short)local.rows;
931 xftg->metrics.x = (short)vector.x;
932 xftg->metrics.y = (short)vector.y;
936 xftg->metrics.x = (short)(- glyphslot->bitmap_left);
937 xftg->metrics.y = (short)( glyphslot->bitmap_top);
983 if (xftg->picture)
985 XRenderFreePicture(dpy, xftg->picture);
986 xftg->picture = 0;
988 xftg->glyph_memory = (size_t)size + font->sizeof_glyph;
1031 xftg->picture = XRenderCreatePicture(dpy, pixmap, font->format, 0, NULL);
1040 xftg->glyph_memory += font->max_glyph_memory - (unsigned long) size;
1042 xftg->glyph_memory += (size_t)size * 255;
1046 &xftg->metrics, 1,
1053 xftg->bitmap = malloc ((size_t)size);
1054 if (xftg->bitmap)
1055 memcpy (xftg->bitmap, bufBitmap, (size_t)size);
1058 xftg->bitmap = NULL;
1061 font->glyph_memory += xftg->glyph_memory;
1062 info->glyph_memory += xftg->glyph_memory;
1067 xftg->glyph_memory);
1070 XftGlyphUsage *xuse = (XftGlyphUsage *) xftg;
1120 XftGlyph *xftg;
1129 xftg = font->glyphs[glyphindex];
1130 if (!xftg)
1132 if (xftg->glyph_memory)
1136 glyphindex, xftg->glyph_memory);
1139 if (xftg->picture)
1140 XRenderFreePicture(dpy, xftg->picture);
1151 else if (xftg->bitmap)
1152 free (xftg->bitmap);
1153 font->glyph_memory -= xftg->glyph_memory;
1155 info->glyph_memory -= xftg->glyph_memory;
1159 XftGlyphUsage *xuse = (XftGlyphUsage *) xftg;
1195 free (xftg);
1212 XftGlyph *xftg;
1217 xftg = font->glyphs[glyph];
1218 if (!xftg || (need_bitmaps && !xftg->glyph_memory))
1220 if (!xftg)
1222 xftg = malloc (font->sizeof_glyph);
1223 if (!xftg)
1227 xftg->bitmap = NULL;
1228 xftg->glyph_memory = 0;
1229 xftg->picture = 0;
1230 font->glyphs[glyph] = xftg;
1233 XftGlyphUsage *xuse = (XftGlyphUsage *) xftg;
1261 XftGlyphUsage *xuse = (XftGlyphUsage *) xftg;
1349 XftGlyph *xftg;
1376 xftg = font->glyphs[glyphindex];
1377 if (xftg)
1379 if (xftg->glyph_memory > glyph_memory)
1384 glyph_memory -= xftg->glyph_memory;
1400 xftg = font->glyphs[glyphindex];
1401 if (xftg)
1403 if (xftg->glyph_memory > 0)