By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 3204 - KPDF doesn't show a part of the fonts
Summary: KPDF doesn't show a part of the fonts
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdegraphics (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks: R14.1.0
  Show dependency treegraph
 
Reported: 2023-04-02 12:03 CDT by Roman Savochenko
Modified: 2023-04-05 20:30 CDT (History)
4 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
kpdf_NoFontOTF.patch (657 bytes, patch)
2023-04-02 12:03 CDT, Roman Savochenko
Details | Diff
Voronoi_Diagram_Notes_1.png (272.09 KB, image/png)
2023-04-03 12:55 CDT, Roman Savochenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Savochenko 2023-04-02 12:03:43 CDT
Created attachment 3057 [details]
kpdf_NoFontOTF.patch

From some time, from Debian 11, KPDF doesn't show part or whole fonts of some documents. In this time, on pure installations and Live Disks of Debian 11 all those documents are shown correctly.

After the issue learning I saw the difference only in presence the fonts Nimbus on full-featured installations from the package fonts-urw-base35, which installed together with CUPS. That was detected from resolving the document external font Helvetica by fontconfig as: NimbusSans-Regular.otf: "Nimbus Sans" "Regular".

And those fonts are new Open True Font which extension "otf" kpdf doesn't pass, so I have added it. Now all documents are shown correctly.
Comment 1 Slávek Banko 2023-04-03 12:16:24 CDT
I was hoping that it could solve issue TDE/tdegraphics#48, but when I tried to build tdegraphics with this patch, I did not observe any difference on my notebook. In KPDF texts are still missing, so far in the printing preview they are displayed.

https://mirror.git.trinitydesktop.org/gitea/TDE/tdegraphics/issues/48
Comment 2 Roman Savochenko 2023-04-03 12:55:58 CDT
Created attachment 3058 [details]
Voronoi_Diagram_Notes_1.png

(In reply to Slávek Banko from comment #1)
> I was hoping that it could solve issue TDE/tdegraphics#48, but when I tried
> to build tdegraphics with this patch, I did not observe any difference on my
> notebook. In KPDF texts are still missing, so far in the printing preview
> they are displayed.
> 
> https://mirror.git.trinitydesktop.org/gitea/TDE/tdegraphics/issues/48

And for me document of the issue is correctly displaying now, see the screen!
Comment 3 Slávek Banko 2023-04-03 13:49:26 CDT
I checked again that the fonts-urw-base35 package is installed, but the font is still not used as a Helvetica replacement. The patch looks good, but there seems to be some context that affects whether it works.
Comment 4 Roman Savochenko 2023-04-03 13:55:57 CDT
(In reply to Slávek Banko from comment #3)
> I checked again that the fonts-urw-base35 package is installed, but the font
> is still not used as a Helvetica replacement. The patch looks good, but
> there seems to be some context that affects whether it works.

Check "$ fc-match Helvetica" in your environment.
Comment 5 Michele Calgaro 2023-04-03 21:38:22 CDT
The patch seems good but R14.1.0 has been soft frozen already. I suggest we add this for R14.1.1.
Comment 6 Michele Calgaro 2023-04-03 21:53:37 CDT
I tested the patch, it fixes tdegraphics#48 for me.
Comment 7 Slávek Banko 2023-04-04 20:03:05 CDT
(In reply to Roman Savochenko from comment #4)
> (In reply to Slávek Banko from comment #3)
> > I checked again that the fonts-urw-base35 package is installed, but the font
> > is still not used as a Helvetica replacement. The patch looks good, but
> > there seems to be some context that affects whether it works.
> 
> Check "$ fc-match Helvetica" in your environment.

A little surprising result on my machine:

$ fc-match Helvetica
helvR12.pcf.gz: "Helvetica" "Regular"

If I remember well, bitmap fonts are now off by default. So it is surprising that there is a match for the bitmap font.
Comment 8 Slávek Banko 2023-04-05 17:00:07 CDT
In /etc/fonts/conf.d I did:
# ln -s ../conf.avail/70-no-bitmaps.conf

Then otf is used instead of the bitmap font:
$ fc-match Helvetica
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"

And so PDF is now displayed correctly.
Comment 9 Michele Calgaro 2023-04-05 20:24:39 CDT
Merged as PR https://mirror.git.trinitydesktop.org/gitea/TDE/tdegraphics/pulls/57