Bug 474171

Summary: Some fixed width fonts don't work in KDE applications
Product: [Fedora] Fedora Reporter: Ville-Pekka Vainio <vpvainio>
Component: kdebaseAssignee: Than Ngo <than>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: jreznik, kevin, lorenzo, ltinkl, rdieter, than, tuxbrewr, williamsjohn333
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-03 20:29:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville-Pekka Vainio 2008-12-02 16:22:05 UTC
Description of problem:
For some reason some fonts aren't working at all in my F-10 KDE installation. All the fonts I'm seeing this with are fixed width fonts, but it's not happening with all fixed width fonts. For example LucidaTypewriter doesn't work, that would be my preference for a Konsole font. For example Liberation Mono works.

Version-Release number of selected component (if applicable):
kdebase-4.1.3-2.fc10.i386

How reproducible:
Always

Steps to Reproduce:
1. Choose some fixed width font such as LucidaTypewriter in a KDE application (for example Konsole)
  
Actual results:
All text in that font goes missing

Expected results:
All fixed width fonts should work normally

Here are a couple of screenshots to illustrate the problem:

LucidaTypewriter chosen in Konsole, no text visible at all
http://vpv.fedorapeople.org/misc/fedora10-kde-font-bug1.png

Liberation Mono chosen in Konsole, works normally
http://vpv.fedorapeople.org/misc/fedora10-kde-font-bug2.png

Comment 1 Jaroslav Reznik 2008-12-03 08:16:40 UTC
I can't reproduce it in Konsole, works for me, text is rendered correctly for all fonts in selection.

Comment 2 Rex Dieter 2008-12-03 16:07:02 UTC
I can't reproduce either.

We've seen this in the past on several occassions due to buggy (usually 3rd-party/binary) X drivers (*cough* nvidia *cough*).

What video hw/driver are you using? :)

Comment 3 Ville-Pekka Vainio 2008-12-03 18:24:04 UTC
Rex: I'm seeing this on two different setups. My laptop has this according to lspci: "Intel Corporation Mobile 915GM/GMS/910GML" and it's using the "intel" X.org driver. My desktop has an nVidia 6600GT and that's using the "nouveau" X.org driver, which in general has worked well for 2D.

I forgot to mention that both of these systems have been upgraded since Fedora Core 6, either with the installation DVD or Preupgrade. Are there any specific configurations that I should remove? I've already once removed the ~/.kde folder, that didn't help. If it seems like a clean reinstall would help, I could try doing that, although it'd be quite some work.

Comment 4 Rex Dieter 2008-12-03 18:31:53 UTC
Looking closer at your screenshot, it would appear you have one or both of:
1.  fontconfig support for bitmap fonts enabled (fedora's default is disabled)
2.  still using xfs (x font server).

Either one of these ring a bell?

I'll try enabling bitmap fonts, and see if I can reproduce the problem in the meantime.

Comment 5 Rex Dieter 2008-12-03 18:35:07 UTC
that, or you have a rogue/corrupted copy/version of LucidaTypewriter on your system somewhere.

Comment 6 Rex Dieter 2008-12-03 18:36:19 UTC
rats, enabled bitmaps, still can't reproduce.

Comment 7 Ville-Pekka Vainio 2008-12-03 19:35:39 UTC
Thanks for looking into this. I tried to find some "font related hacks" I've done to the system.

 - I had an old installation of the proprietary JDK in /opt, it had some fonts, 
   so I removed it completely
 - I had the msttcorefonts unofficial package installed, I removed it
 - I had the freetype-freeworld package installed, I removed it
 - I reinstalled the fontconfig package with yum just to be sure the config files 
   would be overwritten

These helped a bit, now the fonts work in the Konsole main screen, but they don't work in the preview screen, quite weird. If I press "x" in KMail main screen, the fonts go missing just like they do in the Konsole preview screen. The problematic fonts are LucidaTypeWriter, Majumori and MiscFixed.

Btw, I have no idea how to enable or disable bitmap fonts or how they are enabled if they're supposed to be disabled. Maybe I've tinkered with some configs some time and forgotten about it since...

Comment 8 Rex Dieter 2008-12-03 19:46:53 UTC
One last ditch thing to try (as root);
fc-cache -f -s
(to force regeneration of all fontconfig caches)

Comment 9 Ville-Pekka Vainio 2008-12-03 20:29:44 UTC
I removed .kde*, .qt/ and .font* from my home directory and ran fc-cache -f -s. Now all the fonts work. I have no idea what caused this, maybe there was some old font setting in one of these files which messed up some fonts...

I'll close as WORKSFORME since I'm not quite sure if I can use NOTABUG, this may or may not have been a bug ;)

Comment 10 williamsjohn333 2010-06-12 08:25:48 UTC
This issue already appears to be the fourth highest voted open issue in Fedora.
This is a beta release of Red Hat Bugzilla  3.4. The data contained within is a snapshot of the live data so any changes you make will not be reflected.
Excellent site, keep up the good work. I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say I’m glad I found your blog. Thanks
<a href="http://fixedrateisa.org" rel="dofollow">Fixed Rate ISA</a>

williamsjohn333

Comment 11 williamsjohn333 2010-06-12 08:27:39 UTC
This issue already appears to be the fourth highest voted open issue in Fedora.
This is a beta release of Red Hat Bugzilla  3.4. The data contained within is a
snapshot of the live data so any changes you make will not be reflected.
Excellent site, keep up the good work. I read a lot of blogs on a daily basis
and for the most part, people lack substance but, I just wanted to make a quick
comment to say I’m glad I found your blog. Thanks
[URL=http://fixedrateisa.org rel=”dofollow”]Fixed Rate ISA[/URL]

williamsjohn333