关于Yahei Mono等宽编程字体部分字号显示的问题

转自:胡某的网志

之前有位朋友说使用Yahei Mono字体在10号,11号,12号字体下显示的笔画粗细有不一致的问题,经过交流与查找资料,发现是Windows下字体渲染的问题。

建议使用液晶显示器的Windows系统的朋友用GDI++来渲染字体。不明白GDI++的可以Google一下,或pcbeta,极限主题之类的网站查看相关资料,下面我给出几张使用FreeType GDI++渲染的效果图,真的很漂亮:)

 

sina_gdi++

cnbeta_gdi++

gmail_gdi++

上面的三张截图正是本人使用的效果,使用FreeType GDI++ 有开启阴影,非常喜欢,虽然老早就听说GDI++的字体渲染非常不错,但一直没真正使用过…

下面是Yahei mono在10号字体下的显示情况,比ClearType的效果要好看得多,你认为呢?同样11号字体,12号字体的显示都非常完美。
yahei_mono_10px

FreeType GDI++的安装包在下面:
/uploads/2009/08/GDI++Setup.7z
下载后安装时选择“Freetype版”“注册表方式加载”,然后重启电脑就可以了,更完美的效果是把系统自带的宋体替掉,我使用的是碧海潮声的“极限雅黑”字体,效果可以看最前面两张的截图,下载地址请至碧海潮声博客,地址为http://behindchoice.blogbus.com/logs/34753324.html

系统字体替换工具我这里有:
/uploads/2009/08/系统字体替换.7z

还有提示一下,不喜欢字体渲染的朋友,其实可以使用系统自带的“Courier New”字体,然后在“字符集”下拉中选择”西方”以外的任意一个就OK了,然后看看你的英文与中文是不是都很漂亮?

包括:times new roman,中山行书百年纪念版,calibri,Christopherhand,DejaVuSansMono,方正兰亭黑,James Fajardo,Monaco,微软雅黑,仿宋,黑体,楷体,宋体,yahei_mono,仿宋_GB2312,楷体_GB2312,迷你简行楷碑。 文件名列表: bb1550.ttf calibri.ttf calibrib.ttf calibrii.ttf calibriz.ttf comesinhandy.ttf DejaVuSansMono-Bold.ttf DejaVuSansMono-BoldOblique.ttf DejaVuSansMono-Oblique.ttf DejaVuSansMono.ttf DroidSansFallback.ttf James_Fajardo.ttf Monaco.ttf msyh.ttf msyhbd.ttf simfang.ttf simhei.ttf simkai.ttf simsun.ttc times.ttf timesbd.ttf timesbi.ttf timesi.ttf yahei_mono.ttf 仿宋_GB2312.ttf 使用方法.txt 楷体_GB2312.ttf 迷你简行楷碑.TTF 使用方法: ==================================================================================================================== ==================================================================================================================== windows: 将所有的ttf文件拷贝到 系统所在分区的windows\fonts 目录下即可 linux: Install and configure Unicode TrueType fonts in Linux Uncompress the downloaded font archive to a directory and add it to the font path, a list of directories containing fonts: 1. Uncompress the archive # tar xvzf utf8.tar.gz or # tar xvjf arial.tar.bz2 2. Create a directory for new fonts # mkdir /usr/share/fonts/truetype 3. Move the uncompressed font files to the new font directory # mv *.ttf /usr/share/fonts/truetype 4. Navigate to the font directory # cd /usr/share/fonts/truetype 5. Create fonts.scale and fonts.dir # mkfontscale && mkfontdir # fc-cache 6. Add the new font directory to the X11 font path # chkfontpath --add /usr/share/fonts/truetype 7. Restart X font server # /etc/rc.d/init.d/xfs restart You can verify the successful addition of the new path by running chkfontpath command or by listing X font server's /etc/X11/XF86Config file. If you do not have root access, copy the *.ttf to ~/.fonts directory instead. Make X11 fonts available to Java Perform one of the following: 1. Open /etc/profile and add a new environment variable JAVA_FONTS=/usr/share/fonts/truetype export JAVA_FONTS 2. Open font.properties file under jre/lib directory, uncommnent and set to the appropriate font directory appendedfontpath=/usr/share/fonts/truetype
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值