Re: [poppler] evince does not show chinese bold or italic

2017-04-21 Thread Jason Crain
On Thu, Apr 20, 2017 at 05:28:08PM +0200, Thomas Johnsson wrote:
> I suspect (but I'm not sure) that acroread synthesizes bold and italic from
> the regular font, and that evince fails to do so.
> Or could it be that additional fonts need to be installed?
> Or might this have been fixed in a later version of evince?

For the benefit of the discussion, I'll repeat and expand on what I said
on the evince mailing list.

This document does not embed fonts, which means that poppler uses
fontconfig to locate appropriate substitute fonts.  If fontconfig can't
find the right combination of bold and italic, it will select some other
non-italic or non-bold variant.  My system, and apparently also William
Bader's system, at least show the bold font but not the italic font
because we have a bold CJK font installed.  I don't think that poppler
tries to synthesize font styles.

The pdf reference does mention that font styles can be synthesized, and
this might be what acroread is doing, so it would be nice if poppler
could synthesize bold or italic font styles.
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] evince does not show chinese bold or italic

2017-04-21 Thread William Bader
atril (the Mate desktop version of evince, I think using poppler-0.34.0) on 
Fedora 23 gets the bold but not the italic.


pdftops-0.53.0 -level3 also gets the bold but not the italic.


pdftops-0.53.0 -level2 generates a ps that fails in ghostscript with Error: 
/rangecheck in --xyshow-- , possibly similar to 
https://bugs.freedesktop.org/show_bug.cgi?id=63963

It looks like the file does not contain the fonts.

$ pdffonts chinese_bold_italic.pdf
name type  encoding emb sub 
uni object ID
 -  --- --- 
--- -
STSong-Light CID TrueType  UniGB-UCS2-H no  no  
no   7  0
STSong-Light,BoldCID TrueType  UniGB-UCS2-H no  no  
no  10  0
STSong-Light,Italic  CID TrueType  UniGB-UCS2-H no  no  
no  13  0
STSong-Light,BoldItalic  CID TrueType  UniGB-UCS2-H no  no  
no  16  0


$ pdffonts -subst chinese_bold_italic.pdf
name object ID substitute font  
substitute font file
 - 
 
STSong-Light  7  0 Source Han Sans CN Light 
/usr/share/fonts/adobe-source-han-sans-cn/SourceHanSansCN-Light.otf
STSong-Light,Bold10  0 Source Han Sans CN Bold  
/usr/share/fonts/adobe-source-han-sans-cn/SourceHanSansCN-Bold.otf
STSong-Light,Italic  13  0 Source Han Sans CN Regular   
/usr/share/fonts/adobe-source-han-sans-cn/SourceHanSansCN-Regular.otf
STSong-Light,BoldItalic  16  0 Source Han Sans CN Bold  
/usr/share/fonts/adobe-source-han-sans-cn/SourceHanSansCN-Bold.otf


Regards, William


From: poppler <poppler-boun...@lists.freedesktop.org> on behalf of Thomas 
Johnsson <tho...@skri.net>
Sent: Thursday, April 20, 2017 11:28 AM
To: poppler@lists.freedesktop.org
Subject: [poppler] evince does not show chinese bold or italic

Now that Adobe has retracted support for Adobe Reader for Linux, we
use Evince as the default pdf viewer.
But we have an issue with evince for chinese text with bold, italic or both.
The font(s) used are "STSong-Light", "STSong-Light,Bold"  ,
"STSong-Light,Italic" , and "STSong-Light,BoldItalic" .

Attached screenshots show an example line with each of the fonts above,
displayed by (Adobe Acrobat Reader) acroread, and evince.
As can be seen, evince shows no difference between the lines of chinese
text.
I also attach the pdf file.
Latest tested evince version: 3.14.2 (RHEL7).

I suspect (but I'm not sure) that acroread synthesizes bold and italic
from the regular font, and that evince fails to do so.
Or could it be that additional fonts need to be installed?
Or might this have been fixed in a later version of evince?

Kind regards,
Thomas Johnsson



___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


[poppler] evince does not show chinese bold or italic

2017-04-20 Thread Thomas Johnsson

Now that Adobe has retracted support for Adobe Reader for Linux, we
use Evince as the default pdf viewer.
But we have an issue with evince for chinese text with bold, italic or both.
The font(s) used are "STSong-Light", "STSong-Light,Bold"  , 
"STSong-Light,Italic" , and "STSong-Light,BoldItalic" .


Attached screenshots show an example line with each of the fonts above, 
displayed by (Adobe Acrobat Reader) acroread, and evince.
As can be seen, evince shows no difference between the lines of chinese 
text.

I also attach the pdf file.
Latest tested evince version: 3.14.2 (RHEL7).

I suspect (but I'm not sure) that acroread synthesizes bold and italic 
from the regular font, and that evince fails to do so.

Or could it be that additional fonts need to be installed?
Or might this have been fixed in a later version of evince?

Kind regards,
Thomas Johnsson





chinese_bold_italic.pdf
Description: Adobe PDF document
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler