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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值