用于处理字体文件的 C# 库 - TTF (TrueType), 其他 [英] C# lib for processing font files - TTF (TrueType), others
问题描述
任何已知的 C# 库或项目可以理解 TTF 文件格式?我见过的大多数问题都试图进行自定义渲染,但我对字体编辑器类型的应用程序更感兴趣.
Any known C# library or project out there that can understand the TTF file format? Most questions Ive seen regarding this are attempting to do custom rendering, but I'm more interested in a font editor type of application.
推荐答案
不知道你到底想做什么,但 WPF 有一个很酷的 GlyphTypeface 类,非常抽象且非常独立.
Don't know what you want to do exactly, but WPF has a cool GlyphTypeface Class that is quite abstract and quite independent.
您可以这样开始:
GlyphTypeface ttf = new GlyphTypeface(new Uri(@"c:windowsfontsverdana.ttf"));
还有 GlyphRun 类 和 GlyphRunDrawing 类.
否则,如果您正在寻找大图、开源,您还可以查看 FreeType 项目,可在此处获得:http://freetype.org/
Otherwise, if you're looking for the big picture, open-source, you can also check the FreeType Project, available here: http://freetype.org/
这篇关于用于处理字体文件的 C# 库 - TTF (TrueType), 其他的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!