summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-04-25 20:12:46 +0100
committerRobin Watts <robin.watts@artifex.com>2013-04-26 14:42:55 +0100
commit2172fe392a373d75ed4ac7c7730397e1349e1730 (patch)
tree146872c67a5753b8f98305eabd1c0006e9f6db19 /pdf
parent6bbdb0f3e091ebc7579d6708beaac6bd0f1892e5 (diff)
downloadmupdf-2172fe392a373d75ed4ac7c7730397e1349e1730.tar.xz
Bug 693845: Vertical motion in PDF.
Ignore sign of font size when calculating X offset in vertical motion for fonts.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_interpret.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c
index 1c077901..a08fbb8f 100644
--- a/pdf/pdf_interpret.c
+++ b/pdf/pdf_interpret.c
@@ -804,7 +804,7 @@ pdf_show_char(pdf_csi *csi, int cid)
if (fontdesc->wmode == 1)
{
v = pdf_lookup_vmtx(ctx, fontdesc, cid);
- tsm.e -= v.x * gstate->size * 0.001f;
+ tsm.e -= v.x * fabsf(gstate->size) * 0.001f;
tsm.f -= v.y * gstate->size * 0.001f;
}