1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

fix asc/dsec, but breaking '_', need create glyph for ' '

This commit is contained in:
Lu Wang 2012-09-19 03:50:00 +08:00
parent b7dcad3632
commit 356ee117f1
2 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,7 @@ span {
}
._ {
color:transparent;
font-size:1px;
}
::selection{
background: rgba(127,255,255,1);

View File

@ -216,6 +216,7 @@ void ffw_metric(double * ascent, double * descent)
SplineFontFindBounds(sf, &bb);
struct pfminfo * info = &sf->pfminfo;
/*
//debug
printf("bb %lf %lf\n", bb.maxy, bb.miny);
printf("_ %d %d\n", sf->ascent, sf->descent);
@ -225,6 +226,7 @@ void ffw_metric(double * ascent, double * descent)
printf("%d %d\n", info->typoascent_add, info->typodescent_add);
printf("hhead %d %d\n", info->hhead_ascent, info->hhead_descent);
printf("%d %d\n", info->hheadascent_add, info->hheaddescent_add);
*/
int em = sf->ascent + sf->descent;
@ -258,6 +260,9 @@ void ffw_metric(double * ascent, double * descent)
info->typodescent_add = 0;
info->hheaddescent_add = 0;
info->os2_typolinegap = 0;
info->linegap = 0;
info->pfmset = 1;
sf->changed = true;
}