Summary: | difference in fontmetrics AFS/UFST on certain fonts | ||
---|---|---|---|
Product: | GhostPCL | Reporter: | norbert.janssen |
Component: | PCL fonts | Assignee: | Henry Stiles <henry.stiles> |
Status: | NOTIFIED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | 661 | Word Size: | --- |
Attachments: |
metrictest.pcl
metrictest.pcl |
Description
norbert.janssen
2009-07-02 03:37:30 UTC
Created attachment 5175 [details]
metrictest.pcl
testfile to show difference in fontmetrics when printing with AFS or UFST
Was your test file extracted from a larger file that was a more complete metrics test, if so could you post the complete file? Created attachment 5177 [details]
metrictest.pcl
all 79 PCL5 typefaces (no lineprinter).
Note when printing with AFS that the Wingdings seems to be the same as the
Dingbats.
Yes AFS does not include wingdings for legal reasons. Dingbats are substituted, I haven't looked at your complete metrics file yet but I suspect the fix should be as follows: Index: pctext.c =================================================================== --- pctext.c (revision 9827) +++ pctext.c (working copy) @@ -366,7 +366,8 @@ 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); Your change is more restrictive, I wonder if you have a counterexample to this patch. Fixed in revision 9833. Please reopen if this doesn't address the issue. Not for comparing AFS against UFST. This patch indeed makes the charactermetrics identical. However, for some of the typefaces/fonts there is a difference when comparing with an HP LJ4345 output. HP devices differ, there is some discussion in the UFST documentation about advance width for different printers. Does Zoran match the LJ4345? If you could post a scan of the HP printer output, I'd be interested to see it. As it is too large to post here, I sent it by email to Henry Changing customer bugs that have been resolved more than a year ago to closed. |