- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用来自 (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(并重新启动我的应用程序)后,一切都变成了别名:
要查看未拉伸(stretch)的图像,请右键单击它并在新的浏览器窗口中将其打开。
建议来自https://superuser.com/questions/308135/how-can-i-improve-font-appearance-in-google-chrome
关于delphi - 使 TChromium 渲染抗锯齿,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8616866/
我们正在尝试将内置浏览器组件从 TWebBrowser 更改为 TChromium 。它主要用于显示 Google 和 Bing 的 map 。从 javascript 到 Delphi 的通信是通过
我想跟踪用户在 TChromium 内点击了多少次。我不在乎他是否点击了“空白”/链接/按钮/图像/等。我只想知道他点击了多少次。我希望 TChromium 中有 Onclick 事件,但没有。我如何
我使用TChromium 。我分配了 AWebPageAsString,它是一个带有灰色背景颜色的静态 HTML 页面。 FBrowser := TChromium.Create(pnlHolder)
我使用来自 (http://code.google.com/p/delphichromiumembedded/) 的 Chromium 嵌入式框架的最新 TChromium Delphi 包装器。 字
我的 Delphi 应用程序中有一个 TChromium 控件,在我显示的页面上,有一个最小化应用程序的链接。目前,我通过检测地址更改来检测用户何时单击该链接: procedure TForm1.Ch
已经有一段时间了,我不知道如何隐藏 TChromium 中的滚动条。是否有一个过程/函数或属性? 最佳答案 这应该在文档中完成,因此在加载后调用例如: Chromium1.Browser.MainFr
我有一个来自 Delphi Chromium Embedded (http://code.google.com/p/delphichromiumembedded) 的 TChromium 浏览器。我想
我正在尝试使用 DCEF3 TChromium 作为 TWebbrowser 组件的替代品。我下载了这些软件包并将其安装在我的 IDE (Delphi 2007) 上。 我正在 demos\guicl
我正在使用 TChromium 进行授权。我有变量 Chromium1: TChromium; 。我需要销毁表单隐藏上的 Chrome 并在表单显示上显示。 (因为 chromium 有时会引发异常“
如何使用 Tchromium Delphi 更改组合框的值?版本Tchromimum DCEF3 Лист Account List
我发现了精彩的Delphi Chromium用于在 Delphi 表单中嵌入 Chrome 的项目。经过一些修改后,它在 Delphi7 中运行良好,我可以运行演示应用程序。 但是,当我使用该组件制作
这是我的 last question 的延续。在那个问题中,我展示了一个涉及 TWebBrowser 生成线程的问题,该线程在浏览器销毁后仍然存在。虽然没有人能够提供该问题的解决方案,但有人认为该问题
我正在尝试使用以下代码(在 XE2 下)枚举 DOM 节点。 我从 SO 中给出的答案中借用了大部分内容,但由于某种原因它没有做任何事情。 IOW,ProcessDOM() 永远不会被调用。 而且,我
TChromium 有没有办法在运行脚本后获取输出?例如,如果我在 Chrome 的开发者工具中运行以下脚本: document.getElementsByTagName('input') Chrom
我一直在寻找不同的方法来检查页面何时被 TChromium 组件完全加载 - 目前,没有成功。 我尝试使用延迟加载页面并发送有关完成的信息通过附加变量,但是OnLoadEnd事件是在JS等类似事件之前
我需要将 TChromium 组件静音以创建静音浏览器。主要问题是在 Windows XP 上,当我将浏览器的声音静音时,它会静音整个系统的声音。 有没有办法让 TChromium 组件静音? 最佳答
我是一名优秀的程序员,十分优秀!