Bug 124007 - Font previewing in kfontview and Konqueror is broken in current 3.5 branch
Summary: Font previewing in kfontview and Konqueror is broken in current 3.5 branch
Status: RESOLVED FIXED
Alias: None
Product: kcontrol
Classification: Miscellaneous
Component: kcmfontinst (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Craig Drummond
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 02:29 UTC by Bernhard Rosenkraenzer
Modified: 2006-05-21 15:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2006-03-21 02:29:20 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.1.0 
OS:                Linux

kfontview and the font preview in Konqueror show the font name properly, and then just a huge white box.

This is on current (as of 2006/03/18) 3.5 branch, fontconfig 2.3.94, libXft 2.1.8.2 (aka Xorg 7.0), freetype 2.1.10
Comment 1 Craig Drummond 2006-03-21 23:08:07 UTC
Which font? Any particular one, or all of them? Which font type? Was the font 
installed? Or is this viewing a non-installed font?

Craig.
Comment 2 Bernhard Rosenkraenzer 2006-03-22 00:20:50 UTC
Apparently all non-installed fonts (tried good old X bitmap fonts and TTF fonts).

Going to fonts:/System and previewing from there works, going to the directory where the actual font files reside (/usr/share/X11/fonts/TTF in my case) and previewing the same fonts from there doesn't.
Comment 3 Craig Drummond 2006-03-22 09:23:02 UTC
Hmmm.... My Xft is 2.1.7, and fontconfig 2.3.2.

Which OS is this with? Is it with a released version of ArLinux that I can download, and experiment with? Everything works with my library versions, so there must be something strange going on with the newer versions.
Comment 4 Bernhard Rosenkraenzer 2006-03-23 00:25:41 UTC
Yes, this is with Ark Linux 2006.1-rc1 (http://arklinux.osuosl.org/2006.1-rc1/iso/arklinux-2006.1-rc1.iso).
Comment 5 Craig Drummond 2006-03-23 09:31:05 UTC
OK. Thanks. I've downloaded the ISO and will have a play at the weekend.
Comment 6 Craig Drummond 2006-03-29 23:30:53 UTC
I can confirm that this is the case on ArkLinux, having installed this under QEmu.

Under KUbuntu Dapper (which uses fontconfig 2.3.2, libXft 2.1.8.2, and freetype 2.1.10) the font preview works. So the only difference would appear to be the fontconfig version.

Is 2.3.94 not a beta release for 2.4? According to the fontconfig website 2.3.2 is the latest stable release. Perhaps you should report this issue to the fontconfig developers as well?

KFontView, etc, use FcConfigAppFontAddFile to add any non fonts:// URLs to FontConfig's list of fonts.  This would appear to be broken with 2.3.94

However, I will have a play and see if I can resolve the problem.
Comment 7 Craig Drummond 2006-04-05 23:01:04 UTC
OK. Well, as I said KUbuntu Dapper has similar versions apart from fontconfig. So, I've downloaded fontconfig-2.3.94, and compiled.

And, kfontview works perfectly.

How does Ark compile fontconfig, Xft, and freetype? Do you use any non-standard options? I don't understand why its not working on Ark, but works on KUbuntu.
Comment 8 Craig Drummond 2006-04-27 23:26:49 UTC
After unsuccessfully trying to get Ark to work on my laptop, I'm back to QEmu.

FontConfig 2.3.95 has just recently been release, so I've compile and installed that on Ark using:

    ./configure --prefix=/usr --sysconfdir=/etc
    make
    make install

..and low and behold, kfontview now works! Looks like it might have been an error in FontConfig 2.3.94.

Can you please try upgrading to 2.3.95 and let me know if it works OK for you now?
Comment 9 Bernhard Rosenkraenzer 2006-05-21 15:02:39 UTC
Thanks, works after the fontconfig update