summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/mf2pt1/mf2pt1.mp
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/metapost/mf2pt1/mf2pt1.mp')
-rw-r--r--Master/texmf-dist/metapost/mf2pt1/mf2pt1.mp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/texmf-dist/metapost/mf2pt1/mf2pt1.mp b/Master/texmf-dist/metapost/mf2pt1/mf2pt1.mp
index 3d3490fa2d1..bb6ceda5dc3 100644
--- a/Master/texmf-dist/metapost/mf2pt1/mf2pt1.mp
+++ b/Master/texmf-dist/metapost/mf2pt1/mf2pt1.mp
@@ -58,7 +58,7 @@ def beginchar(expr c,w_sharp,h_sharp,d_sharp) =
w:=charwd*pt; h:=charht*pt; d:=chardp*pt;
charic:=0; clearxy; clearit; clearpen; scantokens extra_beginchar;
- def to_bp (expr num) = decimal (ceiling (num*bp_per_pixel)) enddef;
+ def to_bp (expr num) = decimal (round (num*bp_per_pixel)) enddef;
special "% MF2PT1: glyph_dimensions 0 " & to_bp (-d) & " " & to_bp(w) & " " & to_bp(h);
special "% MF2PT1: font_size " & decimal designsize;
special "% MF2PT1: font_slant " & decimal font_slant_;