mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-04 19:21:40 +00:00
fix round
This commit is contained in:
parent
3c32041adf
commit
8978e15dc0
@ -253,7 +253,7 @@ void ffw_metric(double * ascent, double * descent, int * em_size)
|
|||||||
int a = bb.maxy;
|
int a = bb.maxy;
|
||||||
int d = bb.miny;
|
int d = bb.miny;
|
||||||
|
|
||||||
sf->ascent = min((int)round(bb.maxy), em);
|
sf->ascent = min(floor(bb.maxy+0.5), em);
|
||||||
sf->descent = em - bb.maxy;
|
sf->descent = em - bb.maxy;
|
||||||
|
|
||||||
info->os2_winascent = a;
|
info->os2_winascent = a;
|
||||||
|
Loading…
Reference in New Issue
Block a user