Bug 88975

Summary: Fonts are not displayed because KPDF can't find them, though it works with GPDF
Product: [Applications] kpdf Reporter: Gerold Jens Wucherpfennig <gjwucherpfennig>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Gerold Jens Wucherpfennig 2004-09-07 03:32:01 UTC
Version:           0.4 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.2 prerelease from 3.4 branch
OS:                Linux

Opening

http://www.naturaldata.com/Files/PR-ENT_News_Mapi_NDI.pdf

with kpdf will raise multiple errors about missing
fonts:

The "Error could not find a font for ..."

("Times-Roman", "TrebuchetMS",
"TrebuchetMS,BoldItalic", "Verdana",
"Verdana, Italic" and "Verdana, Bold")

"Times New Roman", "Trebuchet MS" and "Verdana"
are installed and can be selected in KControl's
font module. It cannot be sole a font
substitution problem "TrebuchetMS vs. Trebuchet MS",
because of "Verdana vs. Verdana".

With kpdf no text from the above mention PDF
file is displayed at all.

It's worth to mention that GPDF doesn't
issue any warning or error with that file.
The text is displayed CORRECTLY.
Comment 1 Albert Astals Cid 2004-09-07 21:47:48 UTC
It works for me.

Do you get any warning when compiling KPDF? (You should not)

Do you have t1lib and freetype installed? (Look for #define HAVE_T1LIB_H 1 and #define HAVE_FREETYPE 1 in kdegraphics/config.h)
Comment 2 Gerold Jens Wucherpfennig 2004-09-09 22:16:44 UTC
On Tuesday 07 September 2004 21:47, Albert Astals Cid wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=88975
>
>
>
>
> ------- Additional Comments From tsdgeos terra es  2004-09-07 21:47 -------
> It works for me.
>
> Do you get any warning when compiling KPDF? (You should not)
>
> Do you have t1lib and freetype installed? (Look for #define HAVE_T1LIB_H 1
> and #define HAVE_FREETYPE 1 in kdegraphics/config.h)

t1lib is missing ...( #define HAVE_T1LIB_H 0)
I'll test again...

Comment 3 Gerold Jens Wucherpfennig 2004-09-09 22:19:58 UTC
On Tuesday 07 September 2004 21:47, Albert Astals Cid wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=88975
>
>
>
>
> ------- Additional Comments From tsdgeos terra es  2004-09-07 21:47 -------
> It works for me.
>
> Do you get any warning when compiling KPDF? (You should not)
>
> Do you have t1lib and freetype installed? (Look for #define HAVE_T1LIB_H 1
> and #define HAVE_FREETYPE 1 in kdegraphics/config.h)

... T1LIB is for Type-1 fonts, though I have the original Truetype fonts
installed... I'll test T1LIB nonetheless...

Comment 4 Albert Astals Cid 2004-09-09 22:33:13 UTC
ok, found the problem (i think), the problem is you don't (possibly) have a /etc/xpdfrc file, if i remove mine (installed there by xpdf) i don't get the fonts either.
Comment 5 Albert Astals Cid 2004-09-10 00:17:02 UTC
CVS commit by aacid: 

Setup the base fonts
CCMAIL:88975-done@bugs.kde.org


  M +1 -0      kpdf_part.cpp   1.51.2.7


--- kdegraphics/kpdf/kpdf/kpdf_part.cpp  #1.51.2.6:1.51.2.7
@@ -50,4 +50,5 @@ Part::Part(QWidget *parentWidget, const 
 
   globalParams = new GlobalParams("");
+  globalParams->setupBaseFonts(NULL);
 
   // we need an instance