Sub-Pixel Font Positioning on UNIX mini-HOWTO
http://jmason.org/howto/subpixel.html
TrueType Fonts on Debian XFree86 4.x Systems, Paul D. Smith
paul@paulandlesley.org
http://www.paulandlesley.org/linux/xfree4_tt.html#PACKAGED-FONTS
407 apt-get install fttools
408 apt-get install gsfonts-x11
409 apt-get install sharefont
410 apt-get install type1inst
411 apt-get install x-ttcidfont-conf
412 apt-get install xfonts-scalable
413 apt-get install xfs
462 apt-get install msttcorefonts
484 apt-get install ttmkfdir
cd /usr/share/fonts/truetype/msttcorefonts
ttmkfdir -o fonts.scale
mkfontdir -e /usr/share/fonts/X11/encodings
xterm -fa "Andale Mono" -fs 12
xterm -fa "Courier New" -fs 12
xterm -fa VeraMono -fs 9 -sb -sl 1000
"less /etc/fonts/fonts.conf" and search for "Monospace faces" to find
suitable monospace faces...
restart firefox --> edit --> preferences --> general --> fonts/colours
^^^^^^^
--> monospace list --- LOTS more including "Andale Mono"
and "Courier New"
"Old-fashioned" bitmap fonts are missing from gnome-terminal, etc. This is how to get them back:
-- gnome-terminal rely on fontconfig to get their fonts (contrast older
X11 apps which don't);
-- utils: fc-cache, fc-list
-- config: /etc/fonts/fonts.conf # ...master --- don't edit
local.conf # ...overrides some stuff in fonts.conf
/conf.d/* # ...examples
== as root : ==
-- using the examples conf.d/yes-bitmaps.conf and conf.d/sub-pixel.conf,
construct a local.conf allowing bitmaps, allowing sub-pixel and accepting
"fixed" fonts:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>Fixed</string></patelt>
<patelt name="family"><string>fixed</string></patelt>
<patelt name="family"><string>MiscFixed</string></patelt>
</pattern>
</acceptfont>
</selectfont>
<!-- conf.d/yes-bitmaps.conf -->
<!-- Accept bitmap fonts -->
<selectfont>
<acceptfont>
<pattern>
<patelt name="scalable"><bool>false</bool></patelt>
</pattern>
</acceptfont>
</selectfont>
<!-- conf.d/sub-pixel.conf -->
<!-- Enable sub-pixel rendering -->
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
</fontconfig>
-- regenerate the cache
fc-cache -fv
-- check:
fc-list ":spacing=mono:scalable=false" family pixelsize
should now sow LucidaTypewriter and Courier
fc-list ":" family pixelsize | grep Fixed
should how our old friends, such as
Fixed:pixelsize=10
Fixed:pixelsize=12
Fixed:pixelsize=13
-- shutdown all gnome-terminals and start a new one (or login as a different
user and start one)
-- you should now be able to choose the pixmap fonts
-- IF YOU DON'T DO THIS LAST STEP YOU WILL NOT SEE THE "NEW" FONTS
Update:
prompt> fc-list ":" family pixelsize | grep -i fixed
MiscFixed:pixelsize=20
MiscFixed:pixelsize=18
.
.
MiscFixed:pixelsize=7