小编Eus*_*lla的帖子

如何让 Firefox 遵守我的配置以禁用单个字体的字体提示?

我正在使用带有LXDE 的Debian GNU/Linux 版本 8。关于字体,我将系统配置为使用抗锯齿、子像素渲染和完整提示。但是,我想禁用 Liberation Serif 的提示,但它在 Firefox 中不起作用。Firefox 仍然使用 Liberation Serif 的完整提示。但是,Liberation Serif 在其他程序中正确显示为无提示(我检查了 Gucharmap、Leafpad 和 LibreOffice Writer)。

如何在 Firefox 中禁用所有衬线字体或仅 Liberation Serif 的提示?

我已经使用 LXDE 附带的自定义程序和以下代码中的~/.config/fontconfig/fonts.conf~/.fonts.conf(后者是前者的符号链接)设置了完整提示:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
    </edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family"><string>Liberation Serif</string></test>
    <edit name="hintstyle" mode="assign">
      <const>hintnone</const>
    </edit>
  </match>
</fontconfig>
Run Code Online (Sandbox Code Playgroud)

谢谢。

firefox fonts x11 fontconfig

14
推荐指数
1
解决办法
1611
查看次数

标签 统计

firefox ×1

fontconfig ×1

fonts ×1

x11 ×1