查看完整版本: [-- Setting up Custom TrueType Fonts for X under Debian --]

狗狗静电BBS - wwW.DoGGiEhoMe.CoM -> 电脑全方位 Computer Guide -> Setting up Custom TrueType Fonts for X under Debian [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

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

galilette 2004-07-02 16:13
preview:

海马濑人 2004-07-02 16:39
怎么中文还是这么糊

galilette 2004-07-02 16:43
it is because I enabled anti-alias for the laptop LCD screen

海马濑人 2004-07-02 16:56
不用的效果怎么样?

galilette 2004-07-02 23:34
u would see many edges.

there should be some way to partly disable font anti-aliasing for specific fonts. (I did this in SuSE).
In fact, windows xp does not apply ClearType (a kind of anti-alias) to chinese fonts, that's why in windows, chinese characters are not smoothed (and while small, this makes them more readable)

海马濑人 2004-07-06 14:45
我怎么不开效果差不多
大概我不用lcd的缘故吧

galilette 2004-07-06 16:11
anti-aliasing对于小字体的作用主要体现在LCD上


查看完整版本: [-- Setting up Custom TrueType Fonts for X under Debian --] [-- top --]



Powered by PHPWind v6.0 Code © 2003-05 PHPWind
Gzip enabled

You can contact us