1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-03 08:38:39 +00:00

working on asc/des

This commit is contained in:
Lu Wang 2012-09-19 03:26:52 +08:00
parent 7c2679d23c
commit 4949981f46

View File

@ -238,16 +238,22 @@ void ffw_metric(double * ascent, double * descent)
*ascent = *descent = 0;
}
info->os2_winascent = *ascent;
info->os2_typoascent = *ascent;
info->hhead_ascent = *ascent;
int a = bb.maxy;
int d = bb.miny;
sf->descent += sf->ascent;
sf->ascent = 0;
info->os2_winascent = a;
info->os2_typoascent = a;
info->hhead_ascent = a;
info->winascent_add = 0;
info->typoascent_add = 0;
info->hheadascent_add = 0;
info->os2_windescent = -*descent;
info->os2_typodescent = *descent;
info->hhead_descent = *descent;
info->os2_windescent = -d;
info->os2_typodescent = d;
info->hhead_descent = d;
info->windescent_add = 0;
info->typodescent_add = 0;
info->hheaddescent_add = 0;