从...windows\FONTS\下把windows的字体拷贝到/usr/share/fonts/TTF/下
进入...windows\FONTS\目录
可以用命令:sudo cp *.ttc *.ttf /usr/share/fonts/TTF/ (这里的TTF目录要自己先创建)
进入/usr/share/fonts/TTF/
运行
sudo mkfontdir
sudo mkfontscale
再把/usr/share/fonts/TTF/ 目录加到/etc/X11/xorg.conf中就好。
如下为加入位置:
Section "Files"
Fontpath "/usr/share/fonts/X11/misc"
Fontpath "/usr/share/fonts/X11/cyrillic"
Fontpath "/usr/share/fonts/X11/100dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/75dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/Type1"
Fontpath "/usr/share/fonts/X11/100dpi"
Fontpath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
Fontpath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
Fontpath "/usr/share/fonts/TTF/"
EndSection
运行fc-cache -fv 生成font-cache
fc-list 看扫描到的字体
xlsfonts列出所有安装的字体。
sudo a+r *.ttc
sudo a+r *.ttf 取得读权限
然后重启,再设定字体时就可以看到windows的字体了。
转一种字体安装的简单方法
- nuaaghost
- 帖子: 35
- 注册时间: 2007-03-17 13:22
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙