设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
Gentoo Linux
›
如何在设置中文缺省字体?
返回列表
查看:
975
|
回复:
7
如何在设置中文缺省字体?
[复制链接]
GaryWuGang
GaryWuGang
当前离线
积分
39
IP卡
狗仔卡
发表于 2006-8-9 22:55:10
|
显示全部楼层
|
阅读模式
在使用雅黑和wbq。想让雅黑成为中文缺省字体。
请问如何设置?
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
shpchp
shpchp
当前离线
积分
960
IP卡
狗仔卡
发表于 2006-8-9 23:59:53
|
显示全部楼层
编辑/etc/fonts/fonts.conf,把雅黑的字体提前。
回复
支持
反对
使用道具
举报
显身卡
ldh168
ldh168
当前离线
积分
834
IP卡
狗仔卡
发表于 2006-8-10 16:53:14
|
显示全部楼层
有例文吗???
回复
支持
反对
使用道具
举报
显身卡
quhw
quhw
当前离线
积分
178
IP卡
狗仔卡
发表于 2006-8-10 18:21:28
|
显示全部楼层
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<test compare="contains" name="lang" qual="any">
<string>zh-cn</string>
<string>zh-tw</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="spacing" >
<const>proportional</const>
</edit>
<edit name="globaladvance" >
<bool>false</bool>
</edit>
</match>
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>Times New Roman</family>
<family>SimSun</family>
<family>SimSun-18030</family>
<family>AR PL New Sung</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>Verdana</family>
<family>Tahoma</family>
<family>Arial</family>
<family>SimSun</family>
<family>SimSun-18030</family>
<family>AR PL New Sung</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Courier New</family>
<family>NSimSun</family>
<family>NSimSun-18030</family>
<family>AR PL New Sung</family>
</prefer>
</alias>
<match target="font" >
<!-- check to see if the font is just regular -->
<test compare="less_eq" name="weight" >
<int>100</int>
</test>
<!-- check to see if the pattern requests bold -->
<test compare="more_eq" target="pattern" name="weight" >
<int>180</int>
</test>
<!-- set the embolden flag -->
<edit mode="assign" name="embolden" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintmedium</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<test compare="contains" name="lang" qual="any">
<string>zh-cn</string>
<string>zh-tw</string>
<string>ja</string>
<string>ko</string>
</test>
<test compare="more_eq" name="pixelsize" >
<double>11</double>
</test>
<test compare="less_eq" name="pixelsize" >
<double>18</double>
</test>
<edit name="antialias" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
复制代码
回复
支持
反对
使用道具
举报
显身卡
Zer4tul
Zer4tul
当前离线
积分
1070
IP卡
狗仔卡
发表于 2006-8-10 18:32:05
|
显示全部楼层
发现雅黑的一个bug,“教”的码错了,搞成了“亚”呵呵
回复
支持
反对
使用道具
举报
显身卡
GaryWuGang
GaryWuGang
当前离线
积分
39
IP卡
狗仔卡
楼主
|
发表于 2006-8-11 17:56:08
|
显示全部楼层
是呀。。。。
回复
支持
反对
使用道具
举报
显身卡
Freesnake
Freesnake
当前离线
积分
1798
IP卡
狗仔卡
发表于 2006-8-11 19:07:30
|
显示全部楼层
现在的fonts.conf格式变了……
回复
支持
反对
使用道具
举报
显身卡
VirusCamp
VirusCamp
当前离线
积分
762
IP卡
狗仔卡
发表于 2006-8-11 19:55:12
|
显示全部楼层
Post by
Freesnake
现在的fonts.conf格式变了……
怎么变了呢? 不还是 xml 的吗?只能改变几个小的定义吧?大部分的内容是不会动的。
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
开源软件专题讨论
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表