Commit 4b848612 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(xftfont_text_extents): Fix calculation of descent

value.
parent 83b364b4
......@@ -464,7 +464,7 @@ xftfont_text_extents (font, code, nglyphs, metrics)
metrics->rbearing = - extents.x + extents.width;
metrics->width = extents.xOff;
metrics->ascent = extents.y;
metrics->descent = extents.y - extents.height;
metrics->descent = extents.height - extents.y;
}
return extents.xOff;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment