diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2006-04-09 22:23:58 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2006-04-09 22:23:58 +0000 |
commit | d8912c509382e72b4ebc2ab163bc89555ccc5646 (patch) | |
tree | 7ebe435ca11e9008dcc5cc549384397fe9d8fd20 /pcl/pglabel.c | |
parent | 4779b0542b20edb17545db9f42c931b97bd47278 (diff) |
debug warning message for setting a non invertible matrix and GL/2
fixed space fonts were scaled incorrecly. The scaling was effectively
the floor of the actual value, so this change effects many files with
non observable differences. Fixes pcl5c cet 27-09 where pathological
fonts sizes smaller than 1 plotter unit were floored to 0 resulting in
a 0 font scale matrix.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2348 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl/pglabel.c')
-rw-r--r-- | pcl/pglabel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcl/pglabel.c b/pcl/pglabel.c index 8b7a101a3..6475792a2 100644 --- a/pcl/pglabel.c +++ b/pcl/pglabel.c @@ -646,9 +646,9 @@ hpgl_print_char( scale.y = -(ratio * inches_2_plu(1.0 / font->resolution.y)); } } else { - scale.x = hpgl_points_2_plu(pgls, pl_fp_pitch_cp(&pfs->params) / - pl_fp_pitch_cp(&pfs->font->params) ); - scale.y = scale.x; + double ratio = (double)pl_fp_pitch_cp(&pfs->params) / + pl_fp_pitch_cp(&pfs->font->params); + scale.y = scale.x = hpgl_points_2_plu(pgls, ratio); } } else { |