fixes to ttf file format, merged in Mike Lewis name table patch
[swftools.git] / lib / filters / remove_font_transforms.c
index 4a23cfd..95db4ca 100644 (file)
@@ -212,6 +212,9 @@ static gfxresult_t* pass1_finish(gfxfilter_t*f, gfxdevice_t*out)
        fd->dx = -total.xmin;
        fd->dy = 0;
 
+       font->ascent = total.ymax;
+       font->descent = total.ymin;
+
        for(t=0;t<count;t++) {
            gfxline_t*line = font->glyphs[t].line;
            while(line) {