简体   繁体   English

在哪里可以获得 Dwrite_1.dll 的副本?

[英]Where can I get a copy of Dwrite_1.dll?

On Windows 10, I am trying to write VBA code to list the Unicode code point ranges in a font.在 Windows 10 上,我试图编写 VBA 代码来列出字体中的 Unicode 代码点范围。

I was able to use GetFontUnicodeRanges in gdi32.dll, but it does not handle code points beyond xFFFF.我能够在 gdi32.dll 中使用 GetFontUnicodeRanges,但它不能处理超出 xFFFF 的代码点。

Further research uncovered GetUnicodeRanges (as part of DirectWrite), in Dwrite_1.dll, which should handle all Unicode code points, but that is not on my system (although I have Dwrite.dll which does NOT contain GetFontUnicodeRanges.进一步的研究在 Dwrite_1.dll 中发现了 GetUnicodeRanges(作为 DirectWrite 的一部分),它应该处理所有 Unicode 代码点,但这不在我的系统上(尽管我有不包含 GetFontUnicodeRanges 的 Dwrite.dll。

I searched SO, the internet at large and Microsoft's web sites but could not find that dll.我搜索了 SO、整个互联网和微软的网站,但找不到那个 dll。

Question: Does anyone know how/where I can get a copy of Dwrite_1.dll?问题:有谁知道如何/从哪里可以获得 Dwrite_1.dll 的副本?

There is no DWrite_1.dll.没有 DWrite_1.dll。 You're mixing up the dll with the header file: the GetUnicodeRanges method is implemented in the IDWriteFont1 and IDWriteFontFace1 interfaces, which are supported in the DWrite_1.h header file.您将 dll 与头文件混淆:GetUnicodeRanges 方法在 IDWriteFont1 和 IDWriteFontFace1 接口中实现,这在DWrite_1.h头文件中受支持。

DWrite makes use of COM. DWrite 使用 COM。 You start by calling the DWriteCreateFactory function to get a factory interface — that is, an object that implements the requested factory interface.您首先调用DWriteCreateFactory 函数来获取工厂接口 — 即实现请求的工厂接口的对象。 DWrite has multiple factory interfaces which correspond to different versions --- IDWriteFactory (v1), IDWriteFactory1 (v2), etc., each adding new functionality. DWrite有多个对应不同版本的工厂接口——IDWriteFactory(v1)、IDWriteFactory1(v2)等,每一个都增加了新的功能。

IIRC, VBA makes use of COM, but I've never tried to call into DWrite.dll from VBA. IIRC,VBA 使用 COM,但我从未尝试从 VBA 调用 DWrite.dll。 I'd search for discussions on VBA calling into COM interfaces.我会搜索有关 VBA 调用 COM 接口的讨论。

Do you really need to do this programmatically?您真的需要以编程方式执行此操作吗? There are tools you can use to inspect fonts.您可以使用一些工具来检查字体。 I've long used SIL ViewGlyph ;我长期使用SIL ViewGlyph also check out BabelMap .还可以查看BabelMap

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM