… | |
… | |
1437 | |
1437 | |
1438 | FT_UInt glyph = XftCharIndex (disp, f, chr); |
1438 | FT_UInt glyph = XftCharIndex (disp, f, chr); |
1439 | XGlyphInfo extents; |
1439 | XGlyphInfo extents; |
1440 | XftGlyphExtents (disp, f, &glyph, 1, &extents); |
1440 | XftGlyphExtents (disp, f, &glyph, 1, &extents); |
1441 | |
1441 | |
1442 | int xOff = extents.xOff ? extents.xOff : cwidth; |
|
|
1443 | |
|
|
1444 | ep->glyph = glyph; |
1442 | ep->glyph = glyph; |
1445 | ep->x = x_; |
1443 | ep->x = x_; |
1446 | ep->y = y_ + ascent; |
1444 | ep->y = y_ + ascent; |
1447 | |
1445 | |
1448 | // the xft font cell might differ from the terminal font cell, |
1446 | // the xft font cell might differ from the terminal font cell, |