|
|
发表于 2008-11-25 22:03:23
|
显示全部楼层
- <!--
- The dual-width Asian fonts (spacing=dual) are not rendered correctly,
- apparently FreeType forces all widths to match. Trying to disable the
- width forcing code by setting globaladvance=false alone doesn't help.
- As a brute force workaround, also set spacing=proportional, i.e. handle
- them as proportional fonts:
- -->
- <match target="font" >
- <test target="pattern" name="lang" compare="contains" >
- <string>zh</string>
- <string>ja</string>
- <string>ko</string>
- </test>
- <test name="spacing" compare="eq" >
- <const>dual</const>
- </test>
- <edit name="spacing" mode="assign" >
- <const>proportional</const>
- </edit>
- <edit name="globaladvance" mode="assign" >
- <bool>false</bool>
- </edit>
- </match>
- <!--
- There is a similar problem with dual width bitmap fonts. They don't
- have spacing=dual, therefore they are not handled by the above rule
- and still display as charcell fonts. For example "Efont Biwidth"
- has spacing=mono and "Misc Fixed Wide" has spacing=charcell.
- Force handling of these fonts as proportional fonts as well:
- -->
- <match target="font">
- <test name="lang" compare="contains" >
- <string>zh</string>
- <string>ja</string>
- <string>ko</string>
- </test>
- <test name="outline" compare="eq" >
- <bool>false</bool>
- </test>
- <test name="spacing" compare="eq" >
- <const>mono</const>
- <const>charcell</const>
- </test>
- <edit name="spacing">
- <const>proportional</const>
- </edit>
- <edit name="globaladvance" binding="strong" >
- <bool>false</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>
- </match>
复制代码
opera粘贴不出中文是因为qt4.2的原因,如果可能的话你还是用qt3share版本把。
如果想使用qt4版本的就找9.60 beta build 2436版本,这个版本是qt4 share版本的。没有如上问题。只有i386平台有。
PS:2436版本我觉得是最好的了,漂亮,特别是字体,qt3版本的字体不如qt4的好看。 |
|