- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在 IE10 以上的几乎所有方面我都更喜欢谷歌浏览器,但我讨厌的一件事是字体在 IE10 中看起来好多了。这在使用小型数学字体时尤其明显。它们在 IE10 中看起来像 pdf 质量。
稍微查找了一下,发现这是因为IE10在windows 7/8中使用DirectWrite进行字体渲染。我在搜索 chrome 将来是否会支持这个,我找到了这个信息:
An update for everyone that's watching this one:
Our Windows font rendering is actively being worked on. Basic support for DirectWrite is now in Skia (to update from comment #13). At the same time, GDI was very deeply embedded in the Windows WebKit port and is still being rooted out. We hope to have something within a milestone or two that developers can start playing with. How fast it goes to stable is, as always, all about how fast we can root out and burn down any regressions.
We'll update the thread here when it's available behind a runtime flag for y'all to try out.
The following revision refers to this bug: http://src.chromium.org/viewvc/blink?view=rev&rev=159071 Changed paths: M http://src.chromium.org/viewvc/blink/trunk/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp?r1=159071&r2=159070&pathrev=159071 M http://src.chromium.org/viewvc/blink/trunk/Source/core/page/RuntimeEnabledFeatures.in?r1=159071&r2=159070&pathrev=159071
Add runtime flag for using DirectWrite on windows
Add runtime enabled feature for using the DirectWrite skia backend on
windows.
BUG=25541 R=bungeman@chromium.org, eseidel@chromium.org
Review URL: https://codereview.chromium.org/26335002
我什至不知道运行时标志是什么,但在我看来这可能以某种方式在 chrome 中启用 directwrite。这是真的 ?或者我应该再等一段时间才能在 chrome 中使用 directwrite 字体渲染?
最佳答案
遗憾的是还没有(截至 2013 年 10 月 31 日,没有任何 Chromium channel 支持开箱即用的此功能)。
如果你看最新的RuntimeEnabledFeatures.in , DirectWrite
没有分配任何 status
。根据Blink document ,用户无法通过 about:flags
启用功能,除非分配了 status=experimental
。
但希望很快,这样 Windows 用户可能会更好地使用网络字体:)
2013 年 11 月 16 日更新:使用 latest issue 25541 comment ,看来我们非常接近能够在 Canary 中启用 DirectWrite。
2014-01-04 更新:Canary 版本现在有一个 command line switch可以启用 DirectWrite 字体渲染,但需要禁用沙盒模式(对于日常浏览来说不安全)。还有一些与之相关的字体渲染问题。希望他们能尽快修复它们并将此功能添加到 about:flags
。
2014-05-09 更新:最新的 Canary 版本 (m36) 现在在沙盒模式下正确支持 DirectWrite(通过 issue 333029 实现),这意味着开发人员可以直接启用 DW,方法是转到about:flags#enable-direct-write
。至于消费者,谷歌的目标发布时间为 m37。 .
2014-08-09 更新:Chrome 37 beta enables DirectWrite by default ,希望 Chrome 37 正式版也默认拥有它。
2014-08-31 更新:Chrome 37 稳定版有 DirectWrite enabled by default !请注意,用户仍然可以在 about:flags
中关闭它(其中一些人改用 MacType)。
关于windows - 是否可以在 chrome 中启用 directwrite?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19635723/
我想将 DirectWrite 用于混合颜色文本格式(准确地说是语法突出显示),但似乎无法在 Layout 或 Typography 选项中找到方法。唯一的选择是在渲染文本时传递一个画笔,这对我不起作
我正在考虑将 DirectWrite 用于将在 DirectX 11 版本和 OpenGL 3.1+ 版本中推出的项目。 据了解,DirectWrite 使用位于 Direct3D 10.1 之上的
我正在尝试将我必须绘制的文本居中对齐。我用 ID2D1RenderTarget::DrawTextLayout method .问题是,如果我将文本水平对齐方式设置为 DWRITE_TEXT_ALIG
我使用 CreateTextLayout 和 CreateTextFormat 通过 DirectWrite (C++) 绘制文本,文本是混合的希伯来语/英语,有没有办法使用不同的字体/字体拉丁字符和
我的目标: 我想获取 IDWriteTextFormat 字体的高度,这样我就可以计算出在特定高度的 IDWriteTextLayout 中可以容纳多少行文本。 我的问题: 现在我正在使用这段代码来计
我正在使用 DirectWrite 将一些文本呈现到窗口中。使用不同的字体大小时,除了定位外,一切似乎都有效:我希望 2 个文本的字体大小为 v1 和 v2,并且都带有 (x, y) = (0, 0)
DirectWrite ScriptAnalysis包含一个 UINT16 数字,它是编写系统脚本的从零开始的索引表示。 我怎么知道脚本的名字?例如,在英语中该数字等于 49,而在俄语中该数字等于 2
CreateTextFormat 的文档没有提到字体回退选择,但如果选择了默认(NULL = 系统)集合,那么 DirectWrite 清楚地实现了字体回退。例如,如果我将 Gabriola 字体中未
使用 HitTestTextPosition样式 API 来自 IDWriteTextLayout我没有设法正确处理“ti”、“ffi”或其他带有 Calibri 等字体的连字中的文本位置。它总是在连
我已经知道亚像素定位会导致DirectWrite text rendering to be blurry compared to GDI。 但是,我的问题更为根本:为什么不能使用DirectWrite
使用 DirectWrite 和 Direct2D1,我试图模仿 Illustrator CS6 对区域文本框所做的渲染。 CS6 有一个选项,其中基线可以放置在距离区域文本框顶部的距离等于字体的“e
DirectWrite 通过 IDWriteTextAnalysisSink::SetLineBreakpoints() 提供换行信息。但是,我还需要根据 Unicode Annex #29: Uni
ID2D1RenderTarget::DrawGlyphRun 采用以下参数: D2D1_POINT_2F baselineOrigin, __in CONST DWRITE_GLYPH_RUN *g
我正在使用 Embarcadero RAD Studio XE7 编译器(C++ Builder),我正在尝试提供的 Direct2D API。我的目的是创建提供与 GDI 完全相同的渲染的应用程序,
我正在尝试了解 DirectWrite API,这样我就可以获得一个灵活的解决方案来解决从任何文化中呈现文本的问题,并有可能使用它来将富文本编辑合并到一个比“固定的”编辑/显示文本的方式。 PadWr
我使用 IDWriteTextAnalysisSink/AnalyzeScript 在 DirectWrite (C++) 中显示混合的 LTR(英语)和 RTL(希伯来语)文本,并根据以下公式计算文
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
我只是在使用 C++ 中的 DirectWrite 工作,这似乎解决了我在不同渲染目标(屏幕和打印机)中具有相同布局的需求。 我仔细检查了 HelloWorld 示例 ( http://msdn.mi
我需要将使用 GDI 和 GDI+ 的现有 C++ 代码中的一些文本到位图渲染例程转换为使用 DirectWrite(需要 CFF 支持和 OTF 功能支持)。 我是 DirectWrite 的新手。
在 IE10 以上的几乎所有方面我都更喜欢谷歌浏览器,但我讨厌的一件事是字体在 IE10 中看起来好多了。这在使用小型数学字体时尤其明显。它们在 IE10 中看起来像 pdf 质量。 稍微查找了一下,
我是一名优秀的程序员,十分优秀!