enlightenment-cvs@lists.sourceforge.net wrote:
Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/src/lib
Modified Files:
font_draw.c
Log Message:
expand tmp image
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/font_draw.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- font_draw.c 1 Nov 2004 09:45:31 -0000 1.1
+++ font_draw.c 29 Jul 2005 02:23:55 -0000 1.2
@@ -77,9 +77,12 @@
ImlibImage *im2;
DATA32 *data, col;
int nx, ny, tmp;
-
- imlib_font_query_advance(fn, text, &w, &h);
-
+ int inset;
+
+ inset = imlib_font_query_inset(fn, text);
+ imlib_font_query_size(fn, text, &w, &h);
+ w += inset;
+
data = malloc(w * h * sizeof(DATA32));
if (!data)
return;
This causes uglyness in all e16 themes using TT fonts. Many strings are
chopped ~1 pixel at the right side.
Any objections to reverting this change?
/Kim
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel