diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2009-07-02 19:22:16 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2009-07-02 19:22:16 +0000 |
commit | f92746838339eef73b05653e5a9890d321948a46 (patch) | |
tree | 27c12997bc26307b6931247a356d6eb41c559ae2 | |
parent | cec57b28a706413962a52356e21c7d2cdbd251c7 (diff) |
The advance was not properly rounded for Monotype UFST resident fonts.
Fixes 690589.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9833 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | pcl/pctext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pcl/pctext.c b/pcl/pctext.c index a50eff10f..91ed3aff3 100644 --- a/pcl/pctext.c +++ b/pcl/pctext.c @@ -366,7 +366,8 @@ pcl_get_width(pcl_state_t *pcs, gs_point *advance_vector, const gs_point *pscale if (!pfp->params.proportional_spacing || is_space) width = pcl_hmi(pcs); else { - if ( pcs->font->scaling_technology == plfst_TrueType ) { + if (pcs->font->scaling_technology == plfst_TrueType || + pcs->font->scaling_technology == plfst_MicroType) { floatp tmp; tmp = pscale->x / (floatp)pcs->uom_cp + 0.5; tmp -= fmod(tmp, (floatp)1.0); |