Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: text.c Log Message: Xft font height tweak. =================================================================== RCS file: /cvs/e/e16/e/src/text.c,v retrieving revision 1.82 retrieving revision 1.83 diff -u -3 -r1.82 -r1.83 --- text.c 19 Nov 2006 21:55:52 -0000 1.82 +++ text.c 3 Dec 2006 14:28:47 -0000 1.83 @@ -477,6 +477,8 @@ XftTextExtentsUtf8(disp, fdc->font, (const XftChar8 *)text, len, &gi); *width = gi.xOff; *height = fdc->font->height; + if (*height < fdc->font->ascent + fdc->font->descent) + *height = fdc->font->ascent + fdc->font->descent; *ascent = fdc->font->ascent; #if 0 Eprintf("asc/dsc/h=%d/%d/%d x,y=%2d,%d wxh=%dx%d ox,y=%3d,%d: (%d)%s\n", ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs