Bug 691419 - don't adjust widths for Type0 fonts
Summary: don't adjust widths for Type0 fonts
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Windows 7
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 16:37 UTC by zeniko
Modified: 2010-07-02 01:42 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zeniko 2010-06-24 16:37:40 UTC
E.g. for the document linked from http://code.google.com/p/sumatrapdf/issues/detail?id=958 or page one from the document linked from http://code.google.com/p/sumatrapdf/issues/detail?id=962 the fonts are misrendered.

Not calling pdf_makewidthtable for Type0 fonts seems to fix this issue without regressing any of the other documents relying on pdf_makewidthtable.
Comment 1 Tor Andersson 2010-07-02 01:42:53 UTC
Agreed -- the font metrics of CJK fonts are usually very close or very different so the stretching doesn't buy us any legibility. The test to disable can be made on the existence of fontdesc->tottfcmap which is only loaded when substituting a CJK font with a truetype.