… | |
… | |
1308 | if (fc != ' ') // skip spaces |
1308 | if (fc != ' ') // skip spaces |
1309 | { |
1309 | { |
1310 | FT_UInt glyph = XftCharIndex (disp, f, fc); |
1310 | FT_UInt glyph = XftCharIndex (disp, f, fc); |
1311 | XftGlyphExtents (disp, f, &glyph, 1, &extents); |
1311 | XftGlyphExtents (disp, f, &glyph, 1, &extents); |
1312 | |
1312 | |
1313 | |
|
|
1314 | ep->glyph = glyph; |
1313 | ep->glyph = glyph; |
1315 | ep->x = x + (cwidth - extents.xOff >> 1); |
1314 | ep->x = x + (cwidth - extents.xOff >> 1); |
1316 | ep->y = y + ascent; |
1315 | ep->y = y + ascent; |
1317 | |
1316 | |
1318 | if (extents.xOff == 0) |
1317 | if (extents.xOff == 0) |