Bug 42752 - poppler font size problem
Summary: poppler font size problem
Status: RESOLVED NOTABUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 11:39 UTC by Sérgio M. Basto
Modified: 2013-08-05 20:05 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
the problematic pdf (160.96 KB, application/pdf)
2011-11-09 11:39 UTC, Sérgio M. Basto
Details
the pdftoppm result (708.60 KB, image/png)
2011-11-09 11:42 UTC, Sérgio M. Basto
Details
what should appear (2.32 MB, image/jpeg)
2011-11-09 11:43 UTC, Sérgio M. Basto
Details

Description Sérgio M. Basto 2011-11-09 11:39:58 UTC
Created attachment 53339 [details]
the problematic pdf

test it with 0.18.1
Comment 1 Sérgio M. Basto 2011-11-09 11:42:34 UTC
Created attachment 53340 [details]
the pdftoppm result
Comment 2 Sérgio M. Basto 2011-11-09 11:43:54 UTC
Created attachment 53341 [details]
what should appear
Comment 3 Albert Astals Cid 2011-11-09 11:45:41 UTC
Not major by any means, actually i should close it as "not a bug" since the problem is that the font is not embedded in the pdf file so if you have not "BethonSansCond-Light" installed it is difficult to render exactly what the created wanted (this is BTW fault of the creator) but i'll leave it open in case someone wants to have a go at guessing the correct size we should use with the default font.
Comment 4 Sérgio M. Basto 2011-11-09 11:52:19 UTC
(In reply to comment #3)
> Not major by any means, actually i should close it as "not a bug" since the
> problem is that the font is not embedded in the pdf file so if you have not
> "BethonSansCond-Light" installed it is difficult to render exactly what the
> created wanted (this is BTW fault of the creator) but i'll leave it open in
> case someone wants to have a go at guessing the correct size we should use with
> the default font.

hum thanks, for your reply and explanation, sorry about classify with major. 

I have 2 questions:
1 - how I know if a pdf have a font that is not embedded in the pdf  ? 
2 - Can I find this "BethonSansCond-Light" font in Linux system ?

Thanks you help me much .
Comment 5 Sérgio M. Basto 2011-11-09 11:55:21 UTC
Forget to tell : 
acroread read it well in same computer . 

so seems a default font of acrobat reader.
Comment 6 Albert Astals Cid 2011-11-09 12:03:23 UTC
pdffonts "emb" column will tell you if it is embedded in the file or not. Linux fonts are just regular TTF fonts, get this font from somewhere (which probably means buying it) and install it.

And yes, Adobe somehow has a better replacement algorithm for non embedded fonts.
Comment 7 Sérgio M. Basto 2011-11-09 13:00:52 UTC
(In reply to comment #6)
pdffonts says:
BentonSansCond-Light                 TrueType          no  no  no      46  0
Swiss911BT-ExtraCompressed           TrueType          no  no  no      48  0
QuioscoOne-Bold                      TrueType          no  no  no      50  0
StampGothic                          TrueType          no  no  no      52  0
BentonSansCond-Regular               TrueType          no  no  no      54  0
BentonSansCond-Bold                  TrueType          no  no  no      56  0
BentonSansCond-Medium                TrueType          no  no  no      58  0
BentonSansCond-Black                 TrueType          no  no  no      60  0


How do you know the fault is BentonSansCond-Light ? 
Can I debug what replacement is done ? and alter some fonts replacement ? 

I install 350 different fonts of fedora 15
Total download size: 254 M
Installed size: 505 M
and nothing change ...
(snip)
Comment 8 Albert Astals Cid 2011-11-09 15:01:02 UTC
All the non embedded ones are problematic, it just depends on their width to see if they look just a bit or very wrong

As said these are commercial fonts, so you have to buy them http://new.myfonts.com/fonts/fontbureau/benton-sans/cond-light/
Comment 9 Sérgio M. Basto 2011-11-09 15:30:44 UTC
(In reply to comment #8)
> All the non embedded ones are problematic, it just depends on their width to
> see if they look just a bit or very wrong
> 
> As said these are commercial fonts, so you have to buy them
> http://new.myfonts.com/fonts/fontbureau/benton-sans/cond-light/

is not granted could be others
Swiss911BT-ExtraCompressed 
QuioscoOne-Bold
StampGothic

one of the font replacements is wrong in this case , but I could have more cases in future .
and what this bug report about is know how I could try other font replacement, thats is what I like to know.
I don't care is the font isn't the same. I care that someone write in bold and I render is thin and overlapping .
Comment 10 Albert Astals Cid 2011-11-09 15:41:21 UTC
yes, could be others.

Use fontconfig to provide a substitution for that font if you don't have it.
Comment 11 Sérgio M. Basto 2011-12-05 09:11:29 UTC
hi,
I agree that was fault of the creator, btw creator send all others correctly with embedded fonts.
But acroread and okular use same fontconfig and acroread do a better job , so could be interesting , find out what acroread does which poppler don't .
Comment 12 Sérgio M. Basto 2013-08-05 20:05:39 UTC
(In reply to comment #11)
> hi,
> I agree that was fault of the creator, btw creator send all others correctly
> with embedded fonts.
> But acroread and okular use same fontconfig and acroread do a better job ,
> so could be interesting , find out what acroread does which poppler don't .

After install "Microsoft core TrueType fonts" with rpm on http://mscorefonts2.sourceforge.net/ 
or in Debian with: 
apt-get install ttf-mscorefonts-installer

this problem is fixed ! . 

So Acroread should have a handle to Microsoft fonts without fontconfig .


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.