LinuxSir.cn,穿越时空的Linuxsir!

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

Fedora 字体发虚的解决方法,粗体显示及美化注意事项[Updated,05-06-22]

[复制链接]
发表于 2005-6-16 17:24:01 | 显示全部楼层
Post by findsun
在/etc/fonts/fonts.conf中已经有embolden的设置了. 这个设置有什么问题么?

<!--
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">
                        <int>100</int>
                </test>
                <!-- check to see if the pattern requests bold -->
                <test target="pattern" name="weight" compare="more_eq">
                        <int>200</int>
                </test>
                <!-- set the embolden flag -->
                <edit name="embolden" mode="assign">
                        <bool>true</bool>
                </edit>
        </match>

把里面的200改成180试试
回复 支持 反对

使用道具 举报

发表于 2005-6-16 17:38:40 | 显示全部楼层
呵呵, 改成180果然好了, 太感谢了!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-16 18:08:18 | 显示全部楼层
Post by findsun
呵呵, 改成180果然好了, 太感谢了!!!


我的配置里面原来就是180,是你没修改好而已,所以我叫你用我贴出的 ;)

  1. <!--  
  2. 配置粗体中文显示,要配合freetype-2.1.10,libxft-2.1.7,fontconfig-2.3.X
  3.   -->

  4.      <match target="font">
  5.          <!-- check to see if the font is just regular -->
  6.          <test name="weight" compare="less_eq">
  7.              <int>100</int>
  8.          </test>
  9.          <!-- check to see if the pattern requests bold -->
  10.          <test target="pattern" name="weight" compare="more_eq">
  11.              <int>[color=Blue]180[/color]</int>
  12.          </test>
  13.          <!-- set the embolden flag -->
  14.          <edit name="embolden" mode="assign">
  15.              <bool>true</bool>
  16.          </edit>
  17.      </match>
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-6-16 18:12:39 | 显示全部楼层
楼上的,那我的问题怎么回事呢。帮我解决
回复 支持 反对

使用道具 举报

发表于 2005-6-16 18:34:39 | 显示全部楼层
方法挺好的,回去试试

不过好像中文字体不是很美观吧
回复 支持 反对

使用道具 举报

发表于 2005-6-16 18:53:17 | 显示全部楼层
Post by macarthor
方法挺好的,回去试试

不过好像中文字体不是很美观吧

中文字体很美观,我现在用了new sung我都不想用那些有版权的字体了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-16 19:56:10 | 显示全部楼层
Post by Ouranos
楼上的,那我的问题怎么回事呢。帮我解决


不清楚,小弟不是万能的 估计是freetype的问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-16 20:06:42 | 显示全部楼层
Post by midx
楼主贴张用Bitsteam Vera sans的图看看?
在我这里Bitsteam Vera sans的粗体笔划都挤成一堆了,还有Arial、Verdana去AA的字体破碎得厉害,难看死了。
有人说“字符破碎應該是 bytecode interpreter 沒開? 我只知道 MINGLIU.TTC 會因為這個原因造成字符破碎. 如果已經開了 (debian 預設是開的), 那你可能要到 freetype 的 mailing list 問問看.


小弟这里没什么问题,用 Arial、Verdana,Tahoma字体的话是要打开bytecode,不然很难看.Debian,Ubuntu,Arch,Gentoo.都默认打开了.

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2005-6-16 21:05:44 | 显示全部楼层
Post by zerolin
不清楚,小弟不是万能的 估计是freetype的问题

可能,我用了Debian区花花给的他的字体配置文件也是一样的状况不知道咋搞的。
回复 支持 反对

使用道具 举报

发表于 2005-6-16 21:57:26 | 显示全部楼层
我有个问题
安装fontconfig-2.3.2的时候提示如下

checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


是不是我少装了什么东西?请教
回复 支持 反对

使用道具 举报

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

本版积分规则

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