summaryrefslogtreecommitdiff
path: root/pxl
diff options
context:
space:
mode:
authorStefan Kemper <stefan.kemper@artifex.com>2003-01-28 19:29:08 +0000
committerStefan Kemper <stefan.kemper@artifex.com>2003-01-28 19:29:08 +0000
commitbdc38d2dca649967ecbb293cdeb52a53f8507b7f (patch)
treec2c51d20a667851624c2beec55cab99e67ec8b3f /pxl
parentb65c695ebd9a9c76d9184966156b01287100d41b (diff)
Add page orientation rotation into account when rotating PXL downloaded bitmap
glyphs. bitmap rotation is page orientation - font orientation git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1833 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pxl')
-rw-r--r--pxl/pxfont.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pxl/pxfont.c b/pxl/pxfont.c
index 64693fd04..1dee799b0 100644
--- a/pxl/pxfont.c
+++ b/pxl/pxfont.c
@@ -127,9 +127,11 @@ px_set_char_matrix(px_state_t *pxs)
&mat);
/*
* Rotate the bitmap to undo the effect of its built-in
- * orientation.
+ * orientation and add the page orientation rotation
*/
- gs_matrix_rotate(&mat, pxfont->header[1] * 90, &mat);
+ gs_matrix_rotate(&mat,
+ 90.0f * (pxfont->header[1] - pxs->orientation),
+ &mat);
}
else
{ float char_size = pxgs->char_size;