From 7cdc56e5e73a33adf659126c964ecd71ba7328ae Mon Sep 17 00:00:00 2001 From: Henry Stiles Date: Wed, 9 Mar 2011 23:00:16 +0000 Subject: 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 --- pcl/pglabel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pcl') 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; -- cgit v1.2.3