Bug 12304

Summary: substituted fonts do not use specified character widths
Product: poppler Reporter: David Juran <david>
Component: splash backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: aacid, egon.kocjan, luke.hutch
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: screenshot
prototype of cairo user fonts for scaling to character widths

Description David Juran 2007-09-06 11:00:18 UTC
I realise the summary description isn't the best, but that's the only way I can describe it. I'm using poppler-0.6-1.fc8 and evince-2.19.92-1.fc8 on Fedora and http://www.lempaala.fi/@Bin/1653333/Bp%20ohjesivu.pdf appears all garbled, see attached screenshot. Even more garbled the text in Finnish usually appears...
Comment 1 David Juran 2007-09-06 11:03:50 UTC
Created attachment 11452 [details]
screenshot
Comment 2 Albert Astals Cid 2007-09-07 11:32:58 UTC
This is not a bug. The font does not have the fonts embedded and you probably don't have Univers-Light not Univers-UltraCondensed fonts installed in your system, so we try to find some font that matches and draw them where the documents ask for them to be read, as the font we get is wider than those fonts, glyphs overlap.
Comment 3 David Juran 2007-09-08 01:47:21 UTC
Hmmm, xpdf-3.02-3.fc7 seems to get the font at least somewhat right. But that's maybe a coincidence that happens in this particular case...
Comment 4 Jeff Muizelaar 2007-09-11 16:55:43 UTC
xpdf has code to adjust the width of the rendered font, that code got ripped out of poppler when the fontconfig patches hit.
Comment 5 Jeff Muizelaar 2007-11-10 11:17:02 UTC
The cairo backend is 'fixed' now. The splash backend remains broken.
Comment 6 Brad Hards 2007-12-02 23:05:07 UTC
Jeff

I take it that your "Scale text to match 'm' size" patch is the Cairo backend fix for this?

Brad
Comment 7 Jeff Muizelaar 2007-12-04 20:37:37 UTC
Yep that's the cairo fix.
Comment 8 Jeff Muizelaar 2007-12-04 20:38:21 UTC
*** Bug 9830 has been marked as a duplicate of this bug. ***
Comment 9 Albert Astals Cid 2008-01-29 14:46:19 UTC
Fixed on Splash on master too.
Comment 10 Albert Astals Cid 2008-01-29 14:49:24 UTC
*** Bug 14294 has been marked as a duplicate of this bug. ***
Comment 11 Luke Hutchison 2008-01-29 15:05:25 UTC
Does the cairo backend use this information to try to find the font that requires the minimum stretching, i.e. with the most similar metrics?  If not (i.e. if it's just approximately matching font style etc.) then this could make some articles look a little funny, as individual glyphs are stretched different amounts to fit on screen.
Comment 12 Jeff Muizelaar 2008-09-21 20:59:42 UTC
Created attachment 19078 [details] [review]
prototype of cairo user fonts for scaling to character widths

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.