3

(http://code.google.com/p/delphichromiumembedded/)のChromiumEmbeddedFrameworkの最新のTChromiumDelphiラッパーを使用しています。

フォントはアンチエイリアス表示されません。

この動作をオンにするにはどうすればよいですか?

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>
4

1 に答える 1

3

どうやら、これは実際にはChromeの問題ではないことが明らかになりました。Chromeは適切に動作し、Windowsではシステム|コントロールパネル|ディスプレイ|外観|効果|を尊重します 「次の方法を使用して、画面フォントのエッジを滑らかにします」。

クリアタイプに切り替えた(そしてアプリを再起動した)直後に、すべてがエイリアス化されました:

ClearTypeがオンになる前と後

画像が引き伸ばされていないことを確認するには、画像を右クリックして新しいブラウザウィンドウで開きます。

提案はhttps://superuser.com/questions/308135/how-can-i-improve-font-appearance-in-google-chromeから来ました

于 2011-12-28T13:12:58.730 に答える