ale*_*ail 6 unity subpixel-rendering 13.04
我使用这个问题的答案来调整 Unity 界面中的子像素字体提示。但是,在 Firefox 、 Chrome 或 evince 中呈现的文本不使用子像素抗锯齿。遗憾的是,这三个应用程序是最需要它的应用程序。
几乎所有其他地方都启用了子像素字体提示。
如何为这些应用程序激活它?
小智 8
Firefox 似乎不读取 GTK 配置,但它确实会尊重您的 ~/.fonts.conf,它基本上包含字体配置,包括子像素顺序。
这是一个 .fonts.conf 示例,它来自 2005 年的博客文章,可能会有所帮助,您最有可能想要更改的是 rgba 值(子像素顺序)以匹配您的 LCD 以及抗锯齿值。
<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig>
<match target="font">
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match> </fontconfig>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6242 次 |
最近记录: |