我使用来自 (http://code.google.com/p/delphichromiumembedded/) 的 Chromium Embedded Framework 的最新 TChromium Delphi 包装器。
字体不会显示抗锯齿。
我怎样才能打开这种行为?
我尝试了这个适用于 Chrome 但不适用于嵌入在 Delphi 应用程序中的 TChromium 的 hack
/* 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>