[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #18 from Yuri Chornoivan  ---
(In reply to Albert Astals Cid from comment #17)
> (In reply to Yuri Chornoivan from comment #12)
> > DejaVu Sans (dejavu-fonts package) should be enough. You can file a bug
> > report against openSUSE package to include it as a dependence as proposed by
> > Albert.
> 
> This is not correct. Dejavu is not a correct replacement for ZapfDingbats.
> 
> ZapfDingbats is a special font where A is not rendered as an A but as the
> star of david, etc.

It can be proven (e.g. using FontForge) that DejaVu Sans is a good replacement
of ZapfDingbats as it contains dingbats part and is common in the
distributions. The screenshot above (Mageia 8, fontconfig 2.13.93) is
additional proof of the fact that it can be used to render the test file. The
only problem is the font precedence.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=438454

Albert Astals Cid  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |NOT A BUG
 Status|NEEDSINFO   |RESOLVED

--- Comment #17 from Albert Astals Cid  ---
(In reply to Yuri Chornoivan from comment #12)
> DejaVu Sans (dejavu-fonts package) should be enough. You can file a bug
> report against openSUSE package to include it as a dependence as proposed by
> Albert.

This is not correct. Dejavu is not a correct replacement for ZapfDingbats.

ZapfDingbats is a special font where A is not rendered as an A but as the star
of david, etc.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread David Hurka
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #16 from David Hurka  ---
Why wasn’t the  symbol rendered instead of the missing character?

https://en.wikipedia.org/wiki/Specials_(Unicode_block)
U+FFFD � REPLACEMENT CHARACTER used to replace an unknown, unrecognized, or
unrepresentable character

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #15 from Oleksandr Ostrenko  ---
(In reply to Yuri Chornoivan from comment #14)
> Created attachment 139254 [details]
> Fonts that work
> 
> Linux fontconfig subsystem is complex and fragile. It is hard to decide what
> to do in such cases. As a rule of thumb, you should install the substituted
> fonts. Or just embed fonts.
> 
> https://hansjoerg.me/2018/02/15/font-embedding-for-latex-and-r-users/

Ah, I see. Thank you for providing this link.

So it's a "feature". 

Thanks to everybody in the thread for helping me hunt it down!
It's been resolved for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #14 from Yuri Chornoivan  ---
Created attachment 139254
  --> https://bugs.kde.org/attachment.cgi?id=139254=edit
Fonts that work

Linux fontconfig subsystem is complex and fragile. It is hard to decide what to
do in such cases. As a rule of thumb, you should install the substituted fonts.
Or just embed fonts.

https://hansjoerg.me/2018/02/15/font-embedding-for-latex-and-r-users/

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #13 from Oleksandr Ostrenko  ---
(In reply to Yuri Chornoivan from comment #12)
> (In reply to Oleksandr Ostrenko from comment #10)
> > (In reply to Albert Astals Cid from comment #9)
> > > Roboto is a terrible substitution for ZapfDingbats (which my quess is 
> > > what's
> > > being used for the dots).
> > > 
> > > Install a package that gives you an actual ZapfDingbats compatible font 
> > > like
> > > D05L.otf and while at it please complain to your distro to make that a
> > > very very very very recommended package for okular.
> > 
> > OK, after checking my packages I found some Zapfding fonts in 
> > texlive-zapfding:
> > 
> > /usr/share/texmf/dvips/zapfding/config.uzd
> > /usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm
> > /usr/share/texmf/fonts/afm/urw/zapfding/uzdr.afm
> > /usr/share/texmf/fonts/map/dvips/zapfding/uzd.map
> > /usr/share/texmf/fonts/tfm/adobe/zapfding/pzdr.tfm
> > /usr/share/texmf/fonts/tfm/urw35vf/zapfding/uzdr.tfm
> > /usr/share/texmf/fonts/type1/urw/zapfding/uzdr.pfb
> > /usr/share/texmf/fonts/type1/urw/zapfding/uzdr.pfm
> > /usr/share/texmf/tex/latex/zapfding/uuzd.fd
> > 
> > But no OTF fonts. I tried looking into other packages and I found
> > D05L.{afm,pfb} in ghostscript-fonts-std. But, again, not an OTF font. So
> > I had to download and install it manually and, voila, now it works. 
> > 
> > However, I don't quite understand why none of the installed fonts from
> > texlive-zapfding or ghostscript-fonts-std could be used to substitute it.
> > Did I miss anything or is it bug? If so, what should I report it against?
> 
> DejaVu Sans (dejavu-fonts package) should be enough. You can file a bug
> report against openSUSE package to include it as a dependence as proposed by
> Albert.

I am sorry, I am still a bit confused.

I had all those fonts installed (dejavu-fonts, texlive-zapfding,
ghostscript-fonts-std) and it still did not work, until I MANUALLY downloaded
an OTF file for Zapfding from the web and installed it. I had the other fonts
installed as afm & pfb files, but, apparently, they are not considered for
rendering by okular. For instance, Roboto.ttf was choosen over
D05L.{afm,pfb}. Is this the expected behavior? Sorry if that is seems
trivial, but I am a bit lost here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #12 from Yuri Chornoivan  ---
(In reply to Oleksandr Ostrenko from comment #10)
> (In reply to Albert Astals Cid from comment #9)
> > Roboto is a terrible substitution for ZapfDingbats (which my quess is what's
> > being used for the dots).
> > 
> > Install a package that gives you an actual ZapfDingbats compatible font like
> > D05L.otf and while at it please complain to your distro to make that a
> > very very very very recommended package for okular.
> 
> OK, after checking my packages I found some Zapfding fonts in 
> texlive-zapfding:
> 
> /usr/share/texmf/dvips/zapfding/config.uzd
> /usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm
> /usr/share/texmf/fonts/afm/urw/zapfding/uzdr.afm
> /usr/share/texmf/fonts/map/dvips/zapfding/uzd.map
> /usr/share/texmf/fonts/tfm/adobe/zapfding/pzdr.tfm
> /usr/share/texmf/fonts/tfm/urw35vf/zapfding/uzdr.tfm
> /usr/share/texmf/fonts/type1/urw/zapfding/uzdr.pfb
> /usr/share/texmf/fonts/type1/urw/zapfding/uzdr.pfm
> /usr/share/texmf/tex/latex/zapfding/uuzd.fd
> 
> But no OTF fonts. I tried looking into other packages and I found
> D05L.{afm,pfb} in ghostscript-fonts-std. But, again, not an OTF font. So
> I had to download and install it manually and, voila, now it works. 
> 
> However, I don't quite understand why none of the installed fonts from
> texlive-zapfding or ghostscript-fonts-std could be used to substitute it.
> Did I miss anything or is it bug? If so, what should I report it against?

DejaVu Sans (dejavu-fonts package) should be enough. You can file a bug report
against openSUSE package to include it as a dependence as proposed by Albert.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #11 from Oleksandr Ostrenko  ---
Created attachment 139248
  --> https://bugs.kde.org/attachment.cgi?id=139248=edit
works

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #10 from Oleksandr Ostrenko  ---
(In reply to Albert Astals Cid from comment #9)
> Roboto is a terrible substitution for ZapfDingbats (which my quess is what's
> being used for the dots).
> 
> Install a package that gives you an actual ZapfDingbats compatible font like
> D05L.otf and while at it please complain to your distro to make that a
> very very very very recommended package for okular.

OK, after checking my packages I found some Zapfding fonts in 
texlive-zapfding:

/usr/share/texmf/dvips/zapfding/config.uzd
/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm
/usr/share/texmf/fonts/afm/urw/zapfding/uzdr.afm
/usr/share/texmf/fonts/map/dvips/zapfding/uzd.map
/usr/share/texmf/fonts/tfm/adobe/zapfding/pzdr.tfm
/usr/share/texmf/fonts/tfm/urw35vf/zapfding/uzdr.tfm
/usr/share/texmf/fonts/type1/urw/zapfding/uzdr.pfb
/usr/share/texmf/fonts/type1/urw/zapfding/uzdr.pfm
/usr/share/texmf/tex/latex/zapfding/uuzd.fd

But no OTF fonts. I tried looking into other packages and I found
D05L.{afm,pfb} in ghostscript-fonts-std. But, again, not an OTF font. So I
had to download and install it manually and, voila, now it works. 

However, I don't quite understand why none of the installed fonts from
texlive-zapfding or ghostscript-fonts-std could be used to substitute it. Did I
miss anything or is it bug? If so, what should I report it against?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #9 from Albert Astals Cid  ---
Roboto is a terrible substitution for ZapfDingbats (which my quess is what's
being used for the dots).

Install a package that gives you an actual ZapfDingbats compatible font like
D05L.otf and while at it please complain to your distro to make that a very
very very very recommended package for okular.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #8 from Oleksandr Ostrenko  ---
Created attachment 139246
  --> https://bugs.kde.org/attachment.cgi?id=139246=edit
file->properties->fonts 2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #7 from Oleksandr Ostrenko  ---
(In reply to Yuri Chornoivan from comment #6)
> (In reply to Oleksandr Ostrenko from comment #3)
> > (In reply to Albert Astals Cid from comment #2)
> > > Wroks here too, i guess it's another issue of the wrong font being
> > > substituted, can you attach a capture of the file->properties->fonts 
> > > dialog?
> > 
> > Sure, it's attached.
> 
> Can you try to remove texlive-tex-gyre-fonts (and install some Helvetica
> font, e.g. LiberationSans) temporarily?
> 
> Thanks in advance for your answer.

I removed texlive-tex-gyre-fonts, but the issue persists. A capture of the
fonts tab is attached, showing that LiberationSans is  used now instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #6 from Yuri Chornoivan  ---
(In reply to Oleksandr Ostrenko from comment #3)
> (In reply to Albert Astals Cid from comment #2)
> > Wroks here too, i guess it's another issue of the wrong font being
> > substituted, can you attach a capture of the file->properties->fonts dialog?
> 
> Sure, it's attached.

Can you try to remove texlive-tex-gyre-fonts (and install some Helvetica font,
e.g. LiberationSans) temporarily?

Thanks in advance for your answer.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #5 from Oleksandr Ostrenko  ---
Created attachment 139245
  --> https://bugs.kde.org/attachment.cgi?id=139245=edit
issue

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #4 from Oleksandr Ostrenko  ---
Created attachment 139244
  --> https://bugs.kde.org/attachment.cgi?id=139244=edit
file->properties->fonts

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-12 Thread Oleksandr Ostrenko
https://bugs.kde.org/show_bug.cgi?id=438454

--- Comment #3 from Oleksandr Ostrenko  ---
(In reply to Albert Astals Cid from comment #2)
> Wroks here too, i guess it's another issue of the wrong font being
> substituted, can you attach a capture of the file->properties->fonts dialog?

Sure, it's attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-11 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=438454

Albert Astals Cid  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO
 CC||aa...@kde.org

--- Comment #2 from Albert Astals Cid  ---
Wroks here too, i guess it's another issue of the wrong font being substituted,
can you attach a capture of the file->properties->fonts dialog?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 438454] Scatter plots from R are not shown incorrectly

2021-06-11 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=438454

Yuri Chornoivan  changed:

   What|Removed |Added

 CC||yurc...@ukr.net

--- Comment #1 from Yuri Chornoivan  ---
Cannot confirm this bug in Okular 21.07.70 (poppler 20.12.1). The document is
rendered as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.