… | |
… | |
1445 | ep->x = x_; |
1445 | ep->x = x_; |
1446 | ep->y = y_ + ascent; |
1446 | ep->y = y_ + ascent; |
1447 | |
1447 | |
1448 | // the xft font cell might differ from the terminal font cell, |
1448 | // the xft font cell might differ from the terminal font cell, |
1449 | // in which case we use the average between the two. |
1449 | // in which case we use the average between the two. |
1450 | if (extents.xOff) |
|
|
1451 | ep->x += extents.xOff ? cwidth - extents.xOff >> 1 : 0; |
1450 | ep->x += extents.xOff ? cwidth - extents.xOff >> 1 : 0; |
1452 | |
1451 | |
1453 | // xft/freetype represent combining characters as characters with zero |
1452 | // xft/freetype represent combining characters as characters with zero |
1454 | // width rendered over the previous character with some fonts, while |
1453 | // width rendered over the previous character with some fonts, while |
1455 | // in other fonts, they are considered normal characters, while yet |
1454 | // in other fonts, they are considered normal characters, while yet |