我使用的是(http://code.google.com/p/delphichromiumembedded/)最新的Chromium嵌入式框架的TChromium Delphi包装器。
字体不会进行抗锯齿显示。
我怎样才能打开这个行为?
我尝试了这个技巧,它适用于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>发布于 2011-12-28 21:12:59
很明显,这并不是Chrome的问题。Chrome运行正常,在Windows上它遵循系统|控制面板|显示|外观|效果|“使用以下方法平滑屏幕字体的边缘”。
在我切换到Clear Type (并重新启动我的应用程序)后,它立即变成了别名:

要查看未拉伸的图像,请右手单击它,然后在新的浏览器窗口中打开它。
这个建议来自https://superuser.com/questions/308135/how-can-i-improve-font-appearance-in-google-chrome
https://stackoverflow.com/questions/8616866
复制相似问题