X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxfont.c;h=8650880cae8be8fac9fcb801b6be03fc2de2c508;hp=7c71ca75177b2d27cc40ada5cb15b54513e5c64e;hb=820250dd4bc31121dfdc6177b3ae40cc5418d72b;hpb=e00b10147bcf64db3d6b052d911c9c2e76f98253 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;