why*_*yer 3 fonts antialiasing
我已经尝试过的方法:
字体 -> 抗锯齿 -> 无
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="rgba" mode="assign">
<const>none</const>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
</fontconfig>
Run Code Online (Sandbox Code Playgroud)
Xft/Hinting 1
Xft/HintStyle "hintslight"
Xft/Antialias 0
Xft/RGBA "rgb"
Run Code Online (Sandbox Code Playgroud)
然后运行xsettingsd
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.antialias: 0
Xft.rgba: rgb
Run Code Online (Sandbox Code Playgroud)
然后运行xrdb -merge ~/.Xresources
(从这里获取这些:https://wiki.archlinux.org/index.php/Font_configuration#In Correct_hinting_in_GTK_applications )
但仍有一些应用程序具有抗锯齿功能,例如 VLC、Telegram、Viber。我如何在那里禁用它?
更新。一个特例是 Evince 文档查看器。当它渲染 PDF 时,它会使用一些其他设置,而不是渲染 gui 时的设置(菜单、窗口等)。
我在 Linux Mint 19.2 中遇到了同样的问题,VLC 和 Chromium 不尊重 Cinnamon 桌面设置的抗锯齿或任何我浪费了大量时间的用户空间配置选项。我最终确实找到了全新安装 Mint 19.3 的解决方案。
关键是这个配置文件:
/etc/fonts/conf.d/10-antialias.conf
当您在文本编辑器中打开它时,您会看到以下内容:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use the Antialiasing -->
<match target="pattern">
<edit name="antialias" mode="append"><bool>true</bool></edit>
</match>
</fontconfig>
我假设这个文件也存在于 Ubuntu 中,因为 Mint 是基于 Ubuntu 的。
要禁用抗锯齿功能,我们只需将 true 一词更改为 false 即可。您需要 su 权限才能编辑此文件,因此您无法以通常的方式在文本编辑器中执行此操作。相反,请执行以下操作:
打开终端并导航到 /etc/fonts/conf.d
然后输入 sudo nano 10-antialias.conf 在 Nano 文本编辑器中打开该文件
在线上<edit name="antialias" mode="append"><bool>true</bool></edit>
将单词 true 更改为 false
按 ctrl o 保存更改,然后按 ctrl x 退出 nano,然后关闭终端
您可能需要注销并重新登录或重新启动才能使更改生效。
现在应该在 VLC 和 Chromium 中禁用抗锯齿功能。我不了解 Viber 和 Telegram,因为我不使用这些应用程序。
此配置设置似乎也在 Mint 19.3 中禁用了系统范围内的抗锯齿功能。我尝试使用 Cinnamon 桌面设置重新打开抗锯齿功能,只是为了看看会发生什么,但抗锯齿功能仍然处于关闭状态,因此我得出的结论是,该配置文件的工作级别比 Cinnamon 桌面设置更深。它也适用于 Firefox,但它也不尊重 Cinnamon 桌面抗锯齿设置。我通常通过在地址栏中输入 about:config 并将 gfx.text.disableAA 设置为 true 来禁用 Firefox 中的抗锯齿功能,但一旦按上述方式修改 10-antialias.conf 文件,就不再需要这样做了。
| 归档时间: |
|
| 查看次数: |
2755 次 |
| 最近记录: |