Package: xfonts-traditional Version: 1.6 Here is an example of how to make fontconfig capable of finding trad fixed. We need part of the attached file.
17:30 <Diziet> gitk seems to be using something that doesn't understand fixed. 17:32 <fanf2> damnit entrepreneurial students spamming from amazon aws 17:33 <mdw> http://www.distorted.org.uk/~markw/t/gitk-fixed.png <- it's possible 17:33 <Diziet> Good. How ? 17:34 <Diziet> set textfont fixed 17:34 <Diziet> ^ does not work 17:34 <mdw> http://git.distorted.org.uk/~mdw/profile/blob/HEAD:/dot/fonts.conf <- trick 1 17:34 <Diziet> jeez 17:35 <Diziet> Should that file be in xfonts-traditional ? 17:35 <mdw> set textfont {MiscFixed6x13 12} <- trick 2 17:35 <mdw> Not sure. 17:35 <mdw> Making use of the fake font once it's there can be... tricky. 17:36 <pm215> truly you are the wisdom of all fonts 17:36 <Diziet> I put that in /etc/fonts/conf.d/90-tradfixed.conf and now "set textfont fixed" works 17:36 <Diziet> And "Fixed" now appears in the list of fonts in the gui font selector. 17:37 <Diziet> Seems perfect to me. 17:38 <mdw> Really!? Wow. It always required hideous bodging for me. :-/ 17:39 <Diziet> And I can select it in gnome-terminal. (Which comes up in black on black by default ...) 17:39 <mdw> That's really strange. 17:39 <Diziet> Is it ? :-) 17:39 <Diziet> May I put your file in my package ? 17:40 <Diziet> Also may I paste this conversation into the bug report ? 17:40 <mdw> By all means. 17:40 <mdw> Ahh. For me, plain `fixed' gives me misc, not trad. 17:41 <Diziet> Did you tell xfonts-traditional to fiddle the "fixed" alias ? 17:41 <mdw> I told it not to, I think. 17:41 <Diziet> Ah well there's your problem :-). 17:42 <Diziet> Anyway including your fontconfig guff is clearly a step in the right direction. 17:43 <mdw> Oh. I tell a lie. 17:43 <mdw> Template: xfonts-traditional/remap-fixed 17:43 <mdw> Value: true 17:43 <Diziet> Looking at your fonts.conf stanza there it seems like it ought to DTRT 17:43 <mdw> And `xterm -fn fixed' is right. OK, now I'm officially confused. 17:46 <Diziet> Looking at that file, I think xfonts-traditional wants only part of it. 17:46 <mdw> That's quite likely.
<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <!-- Hacking for the fixed font. After many half-hearted attempts to make this work properly, I'm finally settling on this approach: define MiscFixed6x13 as a magic name for the right font, and then hack configuration files as necessary to make them use it. --> <selectfont> <acceptfont> <pattern> <patelt name="family"><string>Fixed</string></patelt> <patelt name="width"><int>87</int></patelt> </pattern> </acceptfont> <rejectfont> <pattern> <patelt name="scalable"><bool>false</bool></patelt> </pattern> </rejectfont> </selectfont> <match target="pattern"> <test name="family"><string>MiscFixed6x13</string></test> <test name="slant" compare="more_eq"><int>10</int></test> <!-- edit name="size"><double>12</double></edit --> <edit name="style"><string>Oblique SemiCondensed</string></edit> <edit name="width"><int>87</int></edit> <edit name="family"><string>Fixed</string></edit> <edit name="foundry"><string>Trad</string></edit> <edit name="dpi"><int>75</int></edit> <edit mode="assign" name="pixelsize"><double>13</double></edit> </match> <match target="pattern"> <test name="family"><string>MiscFixed6x13</string></test> <test name="weight" compare="more_eq"><int>150</int></test> <!-- edit name="size"><double>12</double></edit --> <edit name="style"><string>Bold SemiCondensed</string></edit> <edit name="width"><int>87</int></edit> <edit name="family"><string>Fixed</string></edit> <edit name="foundry"><string>Trad</string></edit> <edit name="dpi"><int>75</int></edit> <edit mode="assign" name="pixelsize"><double>13</double></edit> </match> <match target="pattern"> <test name="family"><string>MiscFixed6x13</string></test> <!-- edit name="size"><double>12</double></edit --> <edit name="style"><string>SemiCondensed</string></edit> <edit name="width"><int>87</int></edit> <edit name="family"><string>Fixed</string></edit> <edit name="foundry"><string>Trad</string></edit> <edit name="dpi"><int>75</int></edit> <edit mode="assign" name="pixelsize"><double>13</double></edit> </match> <match target="pattern"> <test name="family"><string>Symbol</string></test> <edit name="foundry"><string>urw</string></edit> </match> <!-- Hacking for the symbol font. This seems to be necessary to get Iceweasel/Firefox to do the right thing with MathML and suchlike. --> <match target="pattern"> <test name="family"><string>symbol</string></test> <edit binding="strong" mode="append" name="family"> <string>Standard Symbols L</string> </edit> </match> <match targets="pattern"> <test name="family"><string>Geneva</string></test> <edit mode="append" name="family"><string>FreeSans</string></edit> </match> <!-- KDE put this here, but it seems worthwhile. Modified so as to force slight hinting rather than medium, because that actually seems to produce more legible characters. --> <match target="font"> <test name="scalable"><bool>true</bool></test> <edit mode="assign" name="rgba"><const>none</const></edit> <edit mode="assign" name="hinting"><bool>true</bool></edit> <edit mode="assign" name="hintstyle"><const>hintslight</const></edit> <edit mode="assign" name="antialias"><bool>true</bool></edit> </match> </fontconfig>