galilette |
2004-07-02 16:11 |
source: http://www.paulandlesley.org/linux/xfree4_tt.html
since chinese fonts obtainable through debian's apt system (for me, aptitude as the front-end) looks pretty ugly, I choose to install fonts from windows.
1. copy all your desired fonts to a directory. for me, I copy it to ~/var/winfonts, and make a symlink in /usr/local/share/fonts/winfonts with: # ln -s ~[your account]/var/winfonts /usr/local/share/fonts/winfonts ([your account]is your account name)
2. create index files get ttmkfdir through apt: # aptitude install ttmkfdir then, make the font.scale file: # cd /usr/local/share/fonts/winfonts # ttmkfdir -o fonts.scale and the font.dir file: # head -1 fonts.scale > fonts.dir # tail +2 fonts.scale | tac >> fonts.dir # cp fonts.dir fonts.scale
3. setting up the x server open /etc/X11/XF86Config-4 1) u may comment out the lines like this: FontPath "unix/:7101" so that no local server is used to render fonts (the xfree86 4.x do it for you)
2) you should find the "Module" Section of your configuration file and ensure that a line like this appears in it: Load "freetype"
3) Edit the X configuration file and find the "Files" Section. Insert: FontPath "/usr/local/share/fonts/ttfonts"
that's it. restart your X by ctrl+alt+backspace |
|