Lines 1237-1247
Link Here
|
1237 |
|
1237 |
|
1238 |
FT_Face face = XftLockFace (f); |
1238 |
FT_Face face = XftLockFace (f); |
1239 |
|
1239 |
|
|
|
1240 |
/* |
1241 |
* use ascent, descent and height from XftFont *f instead of FT_Face face. |
1242 |
* this somehow reproduces the behaviour of the line height as seen on xterm. |
1243 |
|
1240 |
ascent = (face->size->metrics.ascender + 63) >> 6; |
1244 |
ascent = (face->size->metrics.ascender + 63) >> 6; |
1241 |
descent = (-face->size->metrics.descender + 63) >> 6; |
1245 |
descent = (-face->size->metrics.descender + 63) >> 6; |
1242 |
height = max (ascent + descent, (face->size->metrics.height + 63) >> 6); |
1246 |
height = max (ascent + descent, (face->size->metrics.height + 63) >> 6); |
1243 |
width = 0; |
1247 |
width = 0; |
1244 |
|
1248 |
|
|
|
1249 |
*/ |
1250 |
|
1251 |
ascent = f->ascent; |
1252 |
descent = f->descent; |
1253 |
height = max (ascent + descent, f->height); |
1254 |
width = 0; |
1255 |
|
1245 |
bool scalable = face->face_flags & FT_FACE_FLAG_SCALABLE; |
1256 |
bool scalable = face->face_flags & FT_FACE_FLAG_SCALABLE; |
1246 |
|
1257 |
|
1247 |
XftUnlockFace (f); |
1258 |
XftUnlockFace (f); |