Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] okular bad rendering font, muPDF not
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
stelinux
Tux's lil' helper
Tux's lil' helper


Joined: 02 Nov 2004
Posts: 120

PostPosted: Thu Apr 16, 2020 11:36 pm    Post subject: [Solved] okular bad rendering font, muPDF not Reply with quote

Hi,
Okular rendering some fonts ugly in pdf files instead muPDF rendering them very well.

Code:

kde-apps/okular-19.12.3-r1(5) (chm crypt djvu epub handbook image-backend markdown mobi pdf plucker postscript share speech tiff -debug -mobile -test)
app-text/mupdf-1.16.1(0/1.16.1) (X javascript libressl opengl ssl -static-libs)

poppler is in stable version.
Here the same page open in both programs.

https://ibb.co/2FVRMTJ


EDIT: Thanks for the hint, I've check all my fonts installed (my is an old installation) remove some old fonts and now the rendering is OK.
_________________
stelinux on Ryzen 9 3900x on ROG Crosshair Hero VIII wifi 32GB G.Skill F4-3200C14D-16GFX CL16-16-16-39, 1.2 V
gentoo 17.1/no-multilib Sapphire Radeon RX 5700 XT 8G GDDR6 HDMI/TRIPLE DP OC W/ BP (UEFI)
openrc elogind kde


Last edited by stelinux on Fri Apr 17, 2020 9:27 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2480
Location: Frankfurt, Germany

PostPosted: Fri Apr 17, 2020 1:50 am    Post subject: Reply with quote

In Okular, please open File -> Properties -> Fonts.

Are there any fonts which are NOT included in your document and which were substituted by system fonts?

Which fonts were substituted? And which fonts were chosen as a replacement?
Back to top
View user's profile Send private message
stelinux
Tux's lil' helper
Tux's lil' helper


Joined: 02 Nov 2004
Posts: 120

PostPosted: Fri Apr 17, 2020 8:04 am    Post subject: Reply with quote

Thanks for the reply,
unfortunately all fonts are replaced on okular and I wonder why muPDF replaces them well and okular not

https://ibb.co/C7Tvjwd
_________________
stelinux on Ryzen 9 3900x on ROG Crosshair Hero VIII wifi 32GB G.Skill F4-3200C14D-16GFX CL16-16-16-39, 1.2 V
gentoo 17.1/no-multilib Sapphire Radeon RX 5700 XT 8G GDDR6 HDMI/TRIPLE DP OC W/ BP (UEFI)
openrc elogind kde
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2480
Location: Frankfurt, Germany

PostPosted: Fri Apr 17, 2020 1:01 pm    Post subject: Reply with quote

Okular and muPDF use different font rendering engines. I'm not surprised to see different results.

Let's try to find out what's wrong. It could be that...
  1. your document includes fonts, but Okular can't handle them.
  2. your document does not include fonts. Fonts must be substituted, but font substitution doesn't work on your machine.

Please post the output of
Code:
fc-match Helvetica
fc-match Times-Roman

Please post the output of
Code:
pdffonts <your-pdf-file.pdf>
pdffonts is a part of poppler. It could be that it's necessary to install poppler with USE flag 'util'.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum