diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2011-03-09 23:00:16 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2011-03-09 23:00:16 +0000 |
commit | 7cdc56e5e73a33adf659126c964ecd71ba7328ae (patch) | |
tree | 4e54d84c9387c14fc8e1006a71354b6fc528bd27 /pcl | |
parent | 235f9078cd8e3310227b56854216ffa98d1e9b1e (diff) |
Fixes bug #692037 and improves the several pages in PCL5C CET files
30-17.BIN and 30-18.BIN. The direction of characters was calculated
incorrectly for bitmap fonts which are scaled in a different
coordinate system.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12266 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'pcl')
-rw-r--r-- | pcl/pglabel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pcl/pglabel.c b/pcl/pglabel.c index 39fb962b0..3391e6cd0 100644 --- a/pcl/pglabel.c +++ b/pcl/pglabel.c @@ -747,6 +747,11 @@ hpgl_print_char( double run = pgls->g.character.direction.x, rise = pgls->g.character.direction.y; + /* gl/2 bitmap fonts are scaled in a left handed coordinate + system - so the "rise" direction is opposite. */ + if (font->scaling_technology == plfst_bitmap) + rise *= -1; + if (pgls->g.character.direction_relative) run *= pgls->g.P2.x - pgls->g.P1.x, rise *= pgls->g.P2.y - pgls->g.P1.y; |