From: Matthias Kramm <kramm@quiss.org>
Date: Wed, 14 Apr 2010 00:08:03 +0000 (-0700)
Subject: more lsb fixes
X-Git-Tag: version-0-9-1~50
X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=820250dd4bc31121dfdc6177b3ae40cc5418d72b;p=swftools.git

more lsb fixes
---

diff --git a/lib/gfxfont.c b/lib/gfxfont.c
index 7c71ca7..8650880 100644
--- a/lib/gfxfont.c
+++ b/lib/gfxfont.c
@@ -665,6 +665,7 @@ ttf_t* gfxfont_to_ttf(gfxfont_t*font)
 	    }
 	}
 
+	dest->bearing = dest->xmin;
 	/* make sure coordinates are always to the right of the origin */
 	int xshift=0;
 	if(dest->xmin < 0) {
@@ -676,8 +677,8 @@ ttf_t* gfxfont_to_ttf(gfxfont_t*font)
 	    dest->xmax += xshift;
 	}
 
-	dest->bearing = dest->xmin;
-	dest->xmin=0;
+	//dest->xmin=0; //TODO: might be necessary for some font engines?
+
 	dest->advance = src->advance*scale;
 
 	int u = font->glyphs[t].unicode;