summaryrefslogtreecommitdiff
path: root/Build/source/texk/afm2pl/afm2pl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/afm2pl/afm2pl.c')
-rw-r--r--Build/source/texk/afm2pl/afm2pl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/afm2pl/afm2pl.c b/Build/source/texk/afm2pl/afm2pl.c
index c3533244bf0..33e8bfa35b2 100644
--- a/Build/source/texk/afm2pl/afm2pl.c
+++ b/Build/source/texk/afm2pl/afm2pl.c
@@ -862,6 +862,11 @@ changeadobe(void)
newslant = (double) slant -
efactor * tan (italicangle * (3.1415926535 / 180.0));
+ /* Avoid output of '(SLANT R -0.000000)' due to floating point
+ * rounding; neither round() nor fabs() need be defined. */
+ if ((newslant < 0.0) && (newslant*2000000.0 > 0.0))
+ newslant = 0.0;
+
/* if !keepligs, remove native ligatures */
if (!keepligs && lspace>0) {
for (i = 0; i < nglyphs; i++)