Rather detailed hacking to make `Fixed' actually work as a proper name
for the font, which you can actually use in configuration interfaces.
<!-- Hacking for the fixed font.
<!-- 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.
+ Firstly, make sure that Fixed fonts aren't filtered out when building
+ the font cache. Secondly, arrange that requests for Fixed find the
+ Trad version by preference.
-->
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>Fixed</string></patelt>
-->
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>Fixed</string></patelt>
- <patelt name="width"><int>87</int></patelt>
</pattern>
</acceptfont>
<rejectfont>
</pattern>
</acceptfont>
<rejectfont>
</rejectfont>
</selectfont>
<match target="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>
+ <test name="family"><string>Fixed</string></test>
+ <edit name="dpi" mode="prepend_first"><int>75</int></edit>
</match>
<match target="pattern">
</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>
+ <test name="family"><string>Fixed</string></test>
+ <test name="size" compare="more_eq"><double>12</double></test>
+ <test name="size" compare="less_eq"><double>14</double></test>
+ <edit name="foundry" mode="prepend_first"><string>Trad</string></edit>
+ <edit name="size"><double>13</double></edit>
+ <edit name="pixelsize"><double>13</double></edit>
+ <edit name="width"><const>semicondensed</const></edit>
</match>
<match target="pattern">
</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>
+ <test name="family"><string>Fixed</string></test>
+ <test name="pixelsize" compare="more_eq"><double>10</double></test>
+ <test name="pixelsize" compare="less_eq"><double>14</double></test>
+ <edit name="foundry" mode="prepend_first"><string>Trad</string></edit>
+ <edit name="size"><double>13</double></edit>
+ <edit name="pixelsize"><double>13</double></edit>
+ <edit name="width"><const>semicondensed</const></edit>
</match>
<!-- Hacking for the symbol font.
</match>
<!-- Hacking for the symbol font.
[gui]
fontui = -family Sans -size 10
[gui]
fontui = -family Sans -size 10
- fontdiff = -family MiscFixed6x13 -size 10
+ fontdiff = -family Fixed -size 13
if &t_Co > 2 || has("gui_running")
syntax on
if &t_Co > 2 || has("gui_running")
syntax on
- set guifont=MiscFixed6x13\ 12
hi Normal guifg=white guibg=black
set background=dark
endif
hi Normal guifg=white guibg=black
set background=dark
endif
exec "$0" wait nostart
;;
:ask-run)
exec "$0" wait nostart
;;
:ask-run)
- req "Shell command" .cmd.hist xcatch -FMiscFixed6x13 -- sh -c&
+ req "Shell command" .cmd.hist xcatch -F"Fixed 13" -- sh -c&
;;
:ask-command)
req "xinit command" .xinit.hist xatom set XINIT_COMMAND$atomtag&
;;
:ask-command)
req "xinit command" .xinit.hist xatom set XINIT_COMMAND$atomtag&