gpt4 book ai didi

delphi - 使 TChromium 渲染抗锯齿

转载 作者:行者123 更新时间:2023-12-03 15:55:08 25 4
gpt4 key购买 nike

我使用来自 (http://code.google.com/p/delphichromiumembedded/) 的 Chromium 嵌入式框架的最新 TChromium Delphi 包装器。

字体不会以抗锯齿方式显示。

如何开启此行为?

我尝试了这个 hack,它适用于 Chrome,但不适用于嵌入在 Delphi 应用程序中的 TChromium

/* hack for anti-alising in Chrome
url : https://github.com/h5bp/html5-boilerplate/issues/598
url : http://bashelton.com/2011/03/force-font-smoothing-in-chrome-on-windows-hack/
*/
.body {
-webkit-text-stroke: 1px transparent;
text-shadow: 0px 0px 1px #D4D0C8;
}

我的 .manifest 文件是:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Company.Application.1.0"
type="win32"
/>
<description>MTG Studio</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

最佳答案

很明显,这并不是真正的 Chrome 问题。 Chrome 表现正常,在 Windows 上它遵循系统|控制面板|显示|外观|效果| “使用以下方法平滑屏幕字体的边缘”。

在我切换到 Clear Type(并重新启动我的应用程序)后,一切都变成了别名:

Before and After ClearType being switched on

要查看未拉伸(stretch)的图像,请右键单击它并在新的浏览器窗口中将其打开。

建议来自https://superuser.com/questions/308135/how-can-i-improve-font-appearance-in-google-chrome

关于delphi - 使 TChromium 渲染抗锯齿,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8616866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com