您的位置:首页 > 运维架构 > Linux

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

2007-09-03 02:41 351 查看
  配置完了中文,看到熟悉的文字心情。。。。。。
       但是有时看到的文字还是乱码,感觉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,添加完成。

我用了配什么问题,大家可以试一试,有问题大家在讨论讨论。 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息