Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ttfont.c
Log Message:
Partial fix to clipped TT font text.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ttfont.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- ttfont.c 25 Apr 2004 08:29:52 -0000 1.35
+++ ttfont.c 8 Jun 2004 20:24:06 -0000 1.36
@@ -102,13 +102,14 @@
int *max_ascent_return, int *max_descent_return,
int *lbearing_return, int *rbearing_return)
{
- int height;
+ int w, h;
if (!f)
return;
imlib_context_set_font(f->face);
- imlib_get_text_size(text, width_return, &height);
+ imlib_get_text_advance(text, &w, &h);
+ *width_return = w;
if (font_ascent_return)
*font_ascent_return = imlib_get_font_ascent();
if (font_descent_return)
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs