
- 本栏最新文章
- CSS十大密技 08-16
- 在Photoshop中手绘水墨风格美女 08-15
- Photoshop手绘保时捷911 Carrera S MT 08-15
- 陈天桥20亿冲刺网络迪斯尼 08-14
- Fireworks抠图之枝繁叶茂的树木 08-12
- 简单使用历史画笔快速美化照片 08-08
- Photoshop鼠绘美女剑客插画教程 08-06
- 根本不存在DIV+CSS布局这回事 08-05
- CSS framework:浅谈CSS框架利弊 08-04
- photoshop制作彩色飘带 08-04

- 本栏推荐文章
- 中小企业站点是否有机会盈利? 08-27
- 社交网站页面广告盈利模式遭遇挑战 08-27
- 中秋节网站推广十大方法 08-22
- 李彦宏的百度变形记 08-22
- 看雅虎与口碑是如何优势互补的 08-18
- CSS十大密技 08-16
- 个人网站如何去推广 08-16
- 在Photoshop中手绘水墨风格美女 08-15
- Photoshop手绘保时捷911 Carrera S MT 08-15
- 陈天桥20亿冲刺网络迪斯尼 08-14
debian学习笔记--添加windows字体
简介: 配置完了中文,看到熟悉的文字心情。。。。。。 但是有时看到的文字还是乱码,感觉debian的字体太少了,就想添加字体,想想还是windows的字体比较多,所以现在开始添加windows字体。方法如下:1、挂载w ...
配置完了中文,看到熟悉的文字心情。。。。。。
但是有时看到的文字还是乱码,感觉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,添加完成。
但是有时看到的文字还是乱码,感觉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,添加完成。


