debian学习笔记--添加windows字体

王朝system·作者佚名  2007-08-30
窄屏简体版  字體: |||超大  

配置完了中文,看到熟悉的文字心情。。。。。。

但是有时看到的文字还是乱码,感觉debian的字体太少了,就想添加字体,想想还是windows的字体比较多,所以现在开始添加windows字体。方法如下:

1、挂载windows系统盘。

[root@localhost ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes

255 heads, 63 sectors/track, 9729 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 * 1 1913 15366141 c W95 FAT32 (LBA)

/dev/sda2 1914 9729 62782020 f W95 Ext'd (LBA)

/dev/sda5 1914 2551 5124703+ b W95 FAT32

/dev/sda6 2552 2678 1020096 82 Linux swap / Solaris

/dev/sda7 2679 3570 7164958+ 83 Linux

/dev/sda8 7014 9729 21816238+ b W95 FAT32

/dev/sda9 3571 5100 12289693+ 83 Linux

Partition table entries are not in disk order

以上是我的硬盘分区情况,windows盘为/dev/sda1

在键入如下命令:

[root@localhost ~]# mount /dev/sda1 /mnt/c

2、拷贝windows字体文件到debian系统

windows字体位置:c:\windows\Fonts,把该文件夹拷贝到debian系统的 /use/share/fonts/下,并且重命名为msfonts

3、修改xf86config-4文件

vi /etc/x11/xf86config-4

大家会看见关于字体的字段,内容如下:

Section "Files"

FontPath "unix/:7100" # local font server

# if the local font server has problems, we can fall back on these

FontPath "/usr/lib/X11/fonts/misc"

FontPath "/usr/lib/X11/fonts/cyrillic"

FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"

FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"

FontPath "/usr/lib/X11/fonts/Type1"

FontPath "/usr/lib/X11/fonts/CID"

FontPath "/usr/lib/X11/fonts/Speedo"

FontPath "/usr/lib/X11/fonts/100dpi"

FontPath "/usr/lib/X11/fonts/75dpi"

EndSection

把FontPath "unix/:7100" 这一行 注释掉(加#),

在另起一行添加如下内容:

FontPath "/usr/share/fonts/msfonts"

4、重新启动x,添加完成。

我用了配什么问题,大家可以试一试,有问题大家在讨论讨论。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航