Bug 103891 - some fonts are not shown
Summary: some fonts are not shown
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: 0.4.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-14 16:10 UTC by Piotr Szymański
Modified: 2005-04-14 21:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Acrobat Reader 7.0 screenshot while rendering the test PDF (146.88 KB, image/png)
2005-04-14 16:11 UTC, Piotr Szymański
Details
KPdf screenshot while rendering the test PDF (63.11 KB, image/png)
2005-04-14 16:12 UTC, Piotr Szymański
Details
The test pdf (96.99 KB, application/pdf)
2005-04-14 16:14 UTC, Piotr Szymański
Details
Sreenshot (55.28 KB, image/png)
2005-04-14 16:48 UTC, Tommi Tervo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymański 2005-04-14 16:10:03 UTC
Version:           0.4.1 (using KDE KDE 3.4.0)
Installed from:    Compiled From Sources

In kpdf from KDE 3.4 BRANCH from 050330 18:10 the font rendering in the applied pdf is broken (no TTF fonts are rendered).

Attaching:
- PDF file
- acrobat reader 7.0 screenshot
- kpdf screenshot
Comment 1 Piotr Szymański 2005-04-14 16:11:22 UTC
Created attachment 10626 [details]
Acrobat Reader 7.0 screenshot while rendering the test PDF
Comment 2 Piotr Szymański 2005-04-14 16:12:22 UTC
Created attachment 10627 [details]
KPdf screenshot while rendering the test PDF
Comment 3 Piotr Szymański 2005-04-14 16:14:17 UTC
Created attachment 10628 [details]
The test pdf
Comment 4 Tommi Tervo 2005-04-14 16:48:31 UTC
Created attachment 10630 [details]
Sreenshot 

KPdf on Debian 3.4.0, works fone.
Comment 5 Albert Astals Cid 2005-04-14 16:51:13 UTC
Who told you these fonts are truetype? They are not, they are Type 1 fonts (not that this matters but i thought i had to correct the error).

That pdf works fine here so it's a problem in your side. Check that you got no warnings about freetype or fontconfig when compiling and that fontconfig is able of giving fonts for Times and Courier (you can user fc-match Times and fc-match Courier for that)

Also which version of freetype are you using?
Comment 6 Piotr Szymański 2005-04-14 17:06:50 UTC
[djurban@djurban ~]$ fc-match Times ; fc-match Courier
timR12.pcf.gz: "Times" "Regular"
cour.pfb: "Courier" "Regular"
[djurban@djurban ~]$

Im using freetype 2.1.9.
Comment 7 Albert Astals Cid 2005-04-14 17:16:21 UTC
Wops, i just realized that fonts are not asked on fontconfig, we have direct "bindings" to them
Courier -> n022003l.pfb
Times-Bold -> n021004l.pfb
Times-Roman -> n021003l.pfb

Do you have this fonts in any of these paths? 
/usr/share/ghostscript/fonts
/usr/local/share/ghostscript/fonts
/usr/share/fonts/default/Type1
/usr/share/fonts/type1/gsfonts
/usr/share/fonts/default/ghostscript/

If you don't have that fonts in any of these that is the problem
Comment 8 Albert Astals Cid 2005-04-14 21:04:51 UTC
CVS commit by aacid: 

Add another path to search the default gs fonts, we have to improve, but for now i'm closing the bug, thanks for reporting
BUGS: 103891


  M +1 -0      GlobalParams.cc   1.14


--- kdegraphics/kpdf/xpdf/xpdf/GlobalParams.cc  #1.13:1.14
@@ -101,4 +101,5 @@ static const char *displayFontDirs[] = {
   "/usr/share/fonts/type1/gsfonts",
   "/usr/share/fonts/default/ghostscript/",
+  "/usr/share/fonts/Type1",
   NULL
 };