LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: czm

fontconfig 2.4.1

[复制链接]
发表于 2006-9-19 16:19:43 | 显示全部楼层
谁贴一个好用的local。conf阿, 我现在改完之后,fcitx中的中文发虚,kde的还可以,gtk程序不支持antialias,尽管我已经打开了这个选项。
回复 支持 反对

使用道具 举报

发表于 2006-9-19 17:03:52 | 显示全部楼层
Post by younker
谁贴一个好用的local。conf阿, 我现在改完之后,fcitx中的中文发虚,kde的还可以,gtk程序不支持antialias,尽管我已经打开了这个选项。


嘿,看来不同的人遇到不同的问题啊.

我现在yahei这样不内嵌点阵的字体都没问题了.

现在uming等字体的点阵打不开.
回复 支持 反对

使用道具 举报

发表于 2006-9-19 18:16:36 | 显示全部楼层
Post by younker
谁贴一个好用的local。conf阿, 我现在改完之后,fcitx中的中文发虚,kde的还可以,gtk程序不支持antialias,尽管我已经打开了这个选项。

我使用的是simsun和tahoma,字体还算正常。浏览器里都选择“宋体”。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-9-19 19:01:42 | 显示全部楼层
偶有机会,一定要收集一下这些设置,,忽忽。。大家使劲贴吧。:)。别吝啬哦。。嘿嘿。。
回复 支持 反对

使用道具 举报

发表于 2006-9-20 14:01:44 | 显示全部楼层
现在QT的程序都不能用点阵.

郁闷.

说是Xft,谁能提供一个补丁吗?
回复 支持 反对

使用道具 举报

发表于 2006-9-20 14:02:59 | 显示全部楼层
贴张图片的了.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-9-20 14:10:23 | 显示全部楼层
我的qt有点阵
用的就是china overlay里的libXft
我想起作用的就是这几行了
这是我的~/.fonts.conf里的
  1.         <match target="font" >
  2.                 <edit name="antialias" >
  3.                         <bool>true</bool>
  4.                 </edit>
  5.         </match>
  6.         <match target="font" >
  7.                 <test compare="eq" name="family" >
  8.                         <string>SimSun</string>
  9.                         <string>NSimSun</string>
  10.                         <string>AR PL New Sung</string>
  11.                         <string>MingLiU</string>
  12.                         <string>PMingLiU</string>
  13.                 </test>
  14.                 <test compare="less_eq" name="pixelsize" >
  15.                         <double>18</double>
  16.                 </test>
  17.                 <edit name="antialias" >
  18.                         <bool>false</bool>
  19.                 </edit>
  20.                 <edit name="autohint" >
  21.                         <bool>false</bool>
  22.                 </edit>
  23.         </match>
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-9-20 16:00:54 | 显示全部楼层
用我的试试看,用了很久了,没什么问题。



  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>

  4. <match target="font" >
  5.   <test compare="contains" name="lang" qual="any">
  6.    <string>zh-cn</string>
  7.    <string>zh-tw</string>
  8.    <string>ja</string>
  9.    <string>ko</string>
  10.   </test>
  11.   <edit name="spacing" >
  12.    <const>proportional</const>
  13.   </edit>
  14.   <edit name="globaladvance" >
  15.    <bool>false</bool>
  16.   </edit>
  17. </match>


  18. <alias>
  19.   <family>serif</family>
  20.   <prefer>
  21.    <family>Bitstream Vera Serif</family>
  22.    <family>Times New Roman</family>
  23.    <family>SimSun</family>
  24.    <family>SimSun-18030</family>
  25.    <family>AR PL New Sung</family>
  26.   </prefer>
  27. </alias>
  28. <alias>
  29.   <family>sans-serif</family>
  30.   <prefer>
  31.    <family>Bitstream Vera Sans</family>
  32.    <family>Verdana</family>
  33.    <family>Tahoma</family>
  34.    <family>Arial</family>
  35.    <family>SimSun</family>
  36.    <family>SimSun-18030</family>
  37.    <family>AR PL New Sung</family>
  38.   </prefer>
  39. </alias>
  40. <alias>
  41.   <family>monospace</family>
  42.   <prefer>
  43.    <family>Bitstream Vera Sans Mono</family>
  44.    <family>Courier New</family>
  45.    <family>NSimSun</family>
  46.    <family>NSimSun-18030</family>
  47.    <family>AR PL New Sung</family>
  48.   </prefer>
  49. </alias>
  50. <match target="font" >
  51. <!-- check to see if the font is just regular -->  
  52.   <test compare="less_eq" name="weight" >
  53.    <int>100</int>
  54.   </test>
  55. <!-- check to see if the pattern requests bold -->  
  56.   <test compare="more_eq" target="pattern" name="weight" >
  57.    <int>180</int>
  58.   </test>
  59. <!-- set the embolden flag -->  
  60.   <edit mode="assign" name="embolden" >
  61.    <bool>true</bool>
  62.   </edit>
  63. </match>


  64. <match target="font" >
  65.   <edit mode="assign" name="rgba" >
  66.    <const>rgb</const>
  67.   </edit>
  68. </match>
  69. <match target="font" >
  70.   <edit mode="assign" name="hinting" >
  71.    <bool>true</bool>
  72.   </edit>
  73. </match>
  74. <match target="font" >
  75.   <edit mode="assign" name="hintstyle" >
  76.    <const>hintmedium</const>
  77.   </edit>
  78. </match>
  79. <match target="font" >
  80.   <edit mode="assign" name="antialias" >
  81.    <bool>true</bool>
  82.   </edit>
  83. </match>

  84. <match target="font" >
  85.   <test compare="contains" name="lang" qual="any">
  86.    <string>zh-cn</string>
  87.    <string>zh-tw</string>
  88.    <string>ja</string>
  89.    <string>ko</string>
  90.   </test>
  91.   <test compare="more_eq" name="pixelsize" >
  92.    <double>11</double>
  93.   </test>
  94.   <test compare="less_eq" name="pixelsize" >
  95.    <double>18</double>
  96.   </test>
  97.   <edit name="antialias" >
  98.    <bool>false</bool>
  99.   </edit>
  100. </match>

  101. </fontconfig>

复制代码
回复 支持 反对

使用道具 举报

发表于 2006-9-20 16:26:15 | 显示全部楼层
把禁止AA的写到~/.fonts.conf里面就好了.
  1. $ cat /etc/fonts/conf.d/20-zh-bmp.conf
  2. <?xml version="1.0"?>
  3. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  4. <!-- conf.d/sub-pixel.conf -->
  5. <fontconfig>
  6. <!--
  7.         The Bitstream Vera fonts have GASP entries suggesting that hinting be
  8.         disabled below 8 ppem, but FreeType ignores those, preferring to use
  9.         the data found in the instructed hints.  The initial Vera release
  10.         didn't include the right instructions in the 'prep' table. Fix this
  11.         by disabling hinting manually at smaller sizes (< 8ppem)
  12. -->
  13.         <match target="font">
  14.                 <test name="family">
  15.                         <string>AR PL ShanHeiSun Uni</string>
  16.                 </test>
  17.                 <test name="pixelsize" compare="less_eq">
  18.                         <double>18</double>
  19.                 </test>
  20.                 <edit name="antialias" >
  21.                         <bool>false</bool>
  22.                 </edit>
  23.                 <edit name="autohint" >
  24.                         <bool>false</bool>
  25.                 </edit>
  26.         </match>
  27. </fontconfig>
复制代码
这样就不可以.


把~/.fonts.conf删了就又可以了.
回复 支持 反对

使用道具 举报

发表于 2006-9-20 16:55:24 | 显示全部楼层
我的gtk程序现在没有antialias了,尽管我打开了,kde下面表现正常。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表