如何在 Wine 中启用字体抗锯齿?

ric*_*lla 25 wine antialiasing font-rendering

某些 Wine 应用程序(例如 Word 2007)中的字体具有严重的别名。如何为 Wine 应用程序打开抗锯齿?

Oli*_*Oli 32

最简单的方法是通过 winetricks

mkdir ~/bin
cd ~/bin
wget http://winetricks.org/winetricks
chmod +x ./winetricks

winetricks fontsmooth-rgb
Run Code Online (Sandbox Code Playgroud)

在较新版本winetricks的命令中使用的是

winetricks settings fontsmooth=rgb
Run Code Online (Sandbox Code Playgroud)

还有其他 LCD 像素订单可用。您可以在其 WineHQ 网站上阅读有关它们以及其他令人印象深刻的 Winetricks 功能列表的信息。

  • winetricks 也可以通过 apt 获得 (6认同)

ccp*_*zza 5

只需为需要它的人添加Oli 的答案的详细信息:winetricks settings fontsmooth=rgb实际上是创建和导入具有以下内容的注册表文件:

REGEDIT4

[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="2"
"FontSmoothingGamma"=dword:00000578
"FontSmoothingOrientation"=dword:00000001
"FontSmoothingType"=dword:00000002
Run Code Online (Sandbox Code Playgroud)

保存后,fontsmoothing.reg您可以使用以下命令导入它:

wine regedit fontsmoothing.reg
Run Code Online (Sandbox Code Playgroud)

  • 为什么不是默认值? (2认同)
  • 截至目前,“fontsmooth”有多种选项,即“bgr”、“disable”、“gray”和“rgb”。默认值为`"FontSmoothing"=2`、`"FontSmoothingGamma"=dword:0x0`、`"FontSmoothingOrientation"=dword:0x1`、`"FontSmoothingType"=dword:0x1`,所以只有`"FontSmoothingGamma"`和` “FontSmoothingType”` 在选项 **fontsmooth=rgb** 中更新 (2认同)