|
|
发表于 2008-1-16 23:06:26
|
显示全部楼层
Post by Thruth;1806192
KDE 4.0.0 发布
1. 不能开 Anti-Alias,一开界面字体就发虚。
有关此问题可以经由 fonts.conf 调整
将下面文字存成 57-kde4-chinese.conf
丢到 /etc/fonts/conf.d/ 底下 fc-cache 即可
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
KDE 4 seems not support embeddedbitmap, use antialias instead
-->
<match target="font">
<test name="family" compare="contains">
<string>文鼎PL細上海宋Uni</string>
<string>文鼎PL细上海宋Uni</string>
<string>AR PL ShanHeiSun Uni</string>
<string>文鼎PL新宋</string>
<string>AR PL New Sung</string>
<string>文鼎PL新宋 Mono</string>
<string>AR PL New Sung Mono</string>
<string>CMEX標宋</string>
<string>CMEXSong</string>
<string>方正宋体</string>
<string>FZSongTi</string>
<string>さざなみ明朝</string>
<string>Sazanami Mincho</string>
</test>
<test name="pixelsize" compare="more_eq">
<double>11.5</double>
</test>
<test name="pixelsize" compare="less_eq">
<double>16</double>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
Artificial oblique for fonts without an italic or oblique version
-->
<match target="font">
<!-- check to see if the font is roman -->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the pattern requested non-roman -->
<test target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix><double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now -->
<edit name="slant" mode="assign">
<const>oblique</const>
</edit>
<!-- and disable embedded bitmaps for artificial oblique -->
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
<!-- enable antialias for KDE 4 -->
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
Synthetic emboldening for fonts that do not have bold face available
-->
<match target="font">
<!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq">
<const>medium</const>
</test>
<!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!--
set the embolden flag
needed for applications using cairo, e.g. gucharmap, gedit, ...
-->
<edit name="embolden" mode="assign">
<bool>true</bool>
</edit>
<!--
set weight to bold
needed for applications using Xft directly, e.g. Firefox, ...
-->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
<!--
Hinting will be done before Embolden in freetype2,
but in such case, Embolden will get wrong result
on some glyph contours after applying hinting.
Actually, hinting should be done after embolden, but we can't
fix it in current freetype2. So as a workaround, just turn off
hinting if we want to do embolden.
-->
<edit name="hintstyle" mode="assign">
<const>hintnone</const>
</edit>
</match>
</fontconfig>
原文出处:
http://swyear.blogspot.com/2008/01/opensuse-103-kde-40.html |
|