首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使TChromium渲染抗锯齿

使TChromium渲染抗锯齿
EN

Stack Overflow用户
提问于 2011-12-23 21:52:58
回答 1查看 989关注 0票数 3

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

字体不会进行抗锯齿显示。

我怎样才能打开这个行为?

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

代码语言:javascript
复制
/* 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文件是:

代码语言:javascript
复制
<?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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8616866

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档