本页主题: Setting up Custom TrueType Fonts for X under Debian 打印 | 加为IE收藏 | 复制链接 | 收藏主题 | 上一主题 | 下一主题

galilette
级别: 嘉宾


精华: 30
发帖: 2139
威望: 1382 点
金钱: 0 静电币
支持度: 0 点
在线时间:3012(小时)
注册时间:2002-05-01
最后登录:2019-03-12

 Setting up Custom TrueType Fonts for X under Debian

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
Posted: 2004-07-02 16:11 | [楼 主]
galilette
级别: 嘉宾


精华: 30
发帖: 2139
威望: 1382 点
金钱: 0 静电币
支持度: 0 点
在线时间:3012(小时)
注册时间:2002-05-01
最后登录:2019-03-12

 

preview:
Posted: 2004-07-02 16:13 | 1 楼
debug
级别: 光明使者


精华: 1
发帖: 2076
威望: 198 点
金钱: 658 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2003-08-23
最后登录:2007-04-15

 

怎么中文还是这么糊
Posted: 2004-07-02 16:39 | 2 楼
galilette
级别: 嘉宾


精华: 30
发帖: 2139
威望: 1382 点
金钱: 0 静电币
支持度: 0 点
在线时间:3012(小时)
注册时间:2002-05-01
最后登录:2019-03-12

 

it is because I enabled anti-alias for the laptop LCD screen
Posted: 2004-07-02 16:43 | 3 楼
debug
级别: 光明使者


精华: 1
发帖: 2076
威望: 198 点
金钱: 658 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2003-08-23
最后登录:2007-04-15

 

不用的效果怎么样?
Posted: 2004-07-02 16:56 | 4 楼
galilette
级别: 嘉宾


精华: 30
发帖: 2139
威望: 1382 点
金钱: 0 静电币
支持度: 0 点
在线时间:3012(小时)
注册时间:2002-05-01
最后登录:2019-03-12

 

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)
Posted: 2004-07-02 23:34 | 5 楼
debug
级别: 光明使者


精华: 1
发帖: 2076
威望: 198 点
金钱: 658 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2003-08-23
最后登录:2007-04-15

 

我怎么不开效果差不多
大概我不用lcd的缘故吧
Posted: 2004-07-06 14:45 | 6 楼
galilette
级别: 嘉宾


精华: 30
发帖: 2139
威望: 1382 点
金钱: 0 静电币
支持度: 0 点
在线时间:3012(小时)
注册时间:2002-05-01
最后登录:2019-03-12

 

anti-aliasing对于小字体的作用主要体现在LCD上
Posted: 2004-07-06 16:11 | 7 楼
帖子浏览记录 版块浏览记录
狗狗静电BBS - wwW.DoGGiEhoMe.CoM » 电脑全方位 Computer Guide

沪ICP备05008186号
Powered by PHPWind Styled by MagiColor