GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+the Free Software Foundation, either version 3 of the License, or (at
+your option) any later version.
GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
font->ascent = xftfont->ascent;
font->descent = xftfont->descent;
- if (pixel_size >= 5)
- {
- /* The above condition is a dirty workaround because
- XftTextExtents8 behaves strangely for some fonts
- (e.g. "Dejavu Sans Mono") when pixel_size is less than 5. */
- if (font->ascent < extents.y)
- font->ascent = extents.y;
- if (font->descent < extents.height - extents.y)
- font->descent = extents.height - extents.y;
- }
font->height = font->ascent + font->descent;
if (XINT (AREF (entity, FONT_SIZE_INDEX)) == 0)