Bug 227132 - Konsole doesn't allow "Fixed SemiCondensed" font
Summary: Konsole doesn't allow "Fixed SemiCondensed" font
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 2.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-16 06:11 UTC by adam.hawthorne
Modified: 2017-02-13 03:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Full output from fontconfig 'FC_DEBUG=1 konsole' (98.59 KB, text/plain)
2010-02-16 06:13 UTC, adam.hawthorne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adam.hawthorne 2010-02-16 06:11:52 UTC
Version:           2.4 (using 4.4.00 (KDE 4.4.0), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.31-20-generic

I use the bitmap font "Fixed SemiCondensed 10", usually found in a font file called 6x13.pcf.gz .  In 4.3, I had to manually modify my individual konsole profile files to use a "light" weight font in order to select the semicondensed font.  At that time, I used the string:

Font=Fixed [Misc],10,-1,2,25,0,0,0,0,0

Now, since I just upgraded to 4.4, I cannot seem to cause konsole to use a semicondensed font.  I changed fontconfig to change any requests for "Fixed" to "Fixed:width=semicondensed".  Running 'fc-match Fixed-10' returns Fixed-10:width=semicondensed, and running konsole with FC_DEBUG=1 shows that the best match is indeed Fixed SemiCondensed, but konsole doesn't use that font.

Other applications do see the change in my fontconfig settings, so I assume konsole must be resolving which font to render differently.  In 3.5, there was a 'style' option in the font chooser that allowed selecting SemiCondensed (or Condensed). Please consider either adding back the 'style' dialog in the font selector, or at least respecting the font chosen by fontconfig.

Here is the tail of the output from fontconfig:

$ FC_DEBUG=1 konsole
FC_DEBUG=1                                                                      
FC_DEBUG=1                                                                      
...
Best score 100 0 1e+99 100 0 2000 33 0 0 0 0 0 1 0 100 2.14748e+11Pattern has 18 elts (size 18)                                                                 
        family: "Fixed"(w)                                                      
        style: "SemiCondensed"(w)                                               
        slant: 0(i)(w)                                                          
        weight: 100(i)(w)                                                       
        width: 87(i)(w)                                                         
        pixelsize: 13(f)(w)                                                     
        spacing: 110(i)(w)                                                      
        foundry: "Misc"(w)                                                      
        antialias: FcFalse(w)                                                   
        file: "/usr/share/fonts/X11/misc/6x13.pcf.gz"(w)                        
        index: 0(i)(w)                                                          
        outline: FcFalse(w)                                                     
        scalable: FcFalse(w)                                                    
        charset: 0000: 00000001 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff                                                                  
        0001: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff                                                                           
        0002: ffffffff 000ffffd ffff0000 ffffffff ffffffff ffff3fff ffffffff 00007fff                                                                           
        0003: ffffffff ffffffff 0000ffff 4430ffff ffffd7f0 fffffffb ffff7fff 007fffff                                                                           
        0004: ffffffff ffffffff ffffffff ffffffff ffffff7f ffffffff ffff7fff 033fffff                                                                           
        0005: 0000ffff fffe0000 fe7fffff fffffffe f7fe06ff fbffbf7b ffff001f 001f07ff                                                                           
        000e: fffffffe 87ffffff 0fffffff 00000000 00000000 00000000 00000000 00000000                                                                           
        0010: 00000000 00000000 00000000 00000000 00000000 00000000 ffff0000 09ffffff                                                                           
        0011: 00000000 00000000 00000000 00000000 00000000 ffffff00 00000007 02000800                                                                           
        0016: 00000000 00000000 00000000 00000000 1fffffff ffffffff ffffffff 0001ffff                                                                           
        001e: ffffffff ffffffff ffffffff ffffffff 0fffffff ffffffff ffffffff 03ffffff                                                                           
        001f: 3f3fffff ffffffff aaff3f3f 3fffffff ffffffff ffdfffff efcfffdf 7fdcffff                                                                           
        0020: ffffffff ffff80ff 8087ffff fff3000f 00007fff 0003ffff ffff0000 000007ff                                                                           
        0021: ffffffff e7ffffff fff80fff ffffffff ffff000f ffffffff ffffffff ffffffff                                                                           
        0022: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff                                                                           
        0023: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 00007fff 00000000                                                                           
        0024: ffffffff 0000007f 000007ff ffffffff 0000007f 00000000 00000000 00000400                                                                           
        0025: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff                                                                           
        0026: fecfffff ffffffff ffffffff 3fffffff 000003ff 00000000 00000000 00000000                                                                           
        0027: fff8015e f9fffefd 7f47aff8 ffc000fe ff1fffff 7ff400f3 00000000 ffe00fc0                                                                           
        0028: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff                                                                           
        0029: 000000c0 00000000 00000000 00000000 01fffff8 00000000 00000000 30000000                                                                           
        002a: 2000027f 80000000 00000000 00000000 00000000 00000000 00000000 00000000                                                                           
        0030: ffffff6f 80400000 00000000 00000000 1e000000 fffffffe ffffffff 7fffffff
        0031: ffffffe0 fffe1fff ffffffff 0000000f 00000000 00000000 00000000 00000000
        00e0: ffffffff ffff0fff ffffffff 00007fff 00000000 00000000 00000000 00000000
        00fb: e0f8007f 5f7fffff 0000ffdb 00000000 00000000 00000000 00000000 00000000
        00fe: 00000000 0000000f 00000000 00000000 00000000 00000000 00000000 00000000
        00ff: fffffffe ffffffff 7fffffff fffffffe ffffffff 7ffffffe 1cfcfcfc 30007f7f
(w)
        lang: aa|ab|af|ast|ava|ay|az|ba|bam|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cu|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|ful|fur|fy|ga|gd|gl|gn|gv|ha|haw|he|ho|hr|hu|hy|ia|ibo|id|ie|ik|io|is|it|ka|kaa|ki|kk|kl|ku|kum|kv|kw|ky|la|lb|lez|ln|lt|lv|mg|mh|mi|mk|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|sco|se|sel|sh|shs|sk|sl|sm|sma|smj|smn|sms|so|sq|sr|ss|st|sv|sw|tg|th|tk|tn|to|tr|ts|tt|tw|tyv|uk|uz|ven|vi|vo|vot|wa|wen|wo|xh|yap|yi|yo|zu(w)
        fontversion: 0(i)(w)
        fontformat: "PCF"(w)
        decorative: FcFalse(w)
Comment 1 adam.hawthorne 2010-02-16 06:13:46 UTC
Created attachment 40835 [details]
Full output from fontconfig 'FC_DEBUG=1 konsole'
Comment 2 Helge Hielscher 2011-02-02 08:43:01 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 migrus123 2011-12-15 10:02:35 UTC
There is a workaround to get the standard "fixed" font working in the current konsole:
http://ptspts.blogspot.com/2010/06/how-to-enable-bitmap-fonts-on-ubuntu.html

I have been using this on Kubuntu 11.04 and 11.10 (4.6.? and 4.7.2?)


Copying the relevant bits from that blog. Download and install this variant of Fixed that has the "semicondensed" tag removed:
http://pts-mini-gpl.googlecode.com/svn/trunk/fonts/fixedsc.tgz

Then enable bitmap fonts by removing the no-bitmaps.conf file and linking the force-bitmaps or yes-bitmaps config:
$ sudo rm -f /etc/fonts/conf.d/70-{yes,no,force}-bitmaps.conf
$ if test -f /etc/fonts/conf.avail/70-force-bitmaps.conf
  then sudo ln -s {../conf.avail,/etc/fonts/conf.d}/70-force-bitmaps.conf
  else sudo ln -s {../conf.avail,/etc/fonts/conf.d}/70-yes-bitmaps.conf
  fi

Then rebuild fontconfig: (not required for me so have not tested this)
$ sudo rm -f /var/cache/fontconfig/*
$ rm -rf "$HOME/.fontconfig"
$ sudo fc-cache
$ fc-cache
$ fc-list | grep -E 'FixedSC' | sort
FixedSC:style=Bold
FixedSC:style=Regular

Restart konsole and there should be a Fixed SC available to choose.
(size 10 is what you want)