summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2021-08-24 15:21:56 -0600
committerRobin Watts <Robin.Watts@artifex.com>2021-09-06 10:44:43 +0100
commit050aadeea7147e353fb338ace6b728c7a1c46621 (patch)
tree9a0dfd6d8cd5dbd8f3004e0608b1adf9ad01168e
parent7d93c52edeb865f471e928c35e94d2da2d3cd140 (diff)
downloadghostpdl-050aadeea7147e353fb338ace6b728c7a1c46621.tar.gz
Reapply font scaling after page feed.
-rw-r--r--pcl/pcl/pctext.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pcl/pcl/pctext.c b/pcl/pcl/pctext.c
index 8697938ab..ce5de0957 100644
--- a/pcl/pcl/pctext.c
+++ b/pcl/pcl/pctext.c
@@ -869,6 +869,16 @@ pcl_show_chars_slow(pcl_state_t * pcs,
if (code < 0)
return code;
code = pcl_do_LF(pcs);
+ /* A LF can cause a page feed which in turn can
+ * change the CTM, reapply the current font
+ * scaling */
+ if (pcl_page_marked(pcs) == false) {
+ gs_point scale;
+ pcl_set_ctm(pcs, true);
+ pcl_font_scale(pcs, &scale);
+ gs_scale(pgs, scale.x, scale.y);
+ }
+
if (code < 0)
return code;
use_rmargin = true;