Is there a way to programmatically determine if a font file has a specific Unicode Glyph?

前端 未结 6 906
花落未央
花落未央 2020-11-27 04:19

I\'m working on a project that generates PDFs that can contain fairly complex math and science formulas. The text is rendered in Times New Roman, which has pretty good Unic

6条回答
  •  粉色の甜心
    2020-11-27 04:57

    This Microsoft KB article may help: http://support.microsoft.com/kb/241020

    It's a bit dated (was originally written for Windows 95), but the general principle may still apply. The sample code is C++, but since it's just calling standard Windows APIs, it'll more than likely work in .NET languages as well with a little elbow grease.

    -Edit- It seems that the old 95-era APIs have been obsoleted by a new API Microsoft calls "Uniscribe", which should be able to do what you need it to.

提交回复
热议问题