We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我想介绍另一个用于处理字体的纯 C# 库。
这里https://github.com/LayoutFarm/Typography
纯C#
支持。 NET >=20
访问一般字形数据,
并访问高级排版数据。
(例如 GDEF、GSUB、GPOS)等。
下图显示了一些屏幕快照,
然后比较 lib 的渲染字形 'B'
(左):来自没有提示的 lib 的字形
(中):具有清晰类型的 Windows GDI(来自记事本)
(右):来自带有 True 的 lib 的字形提示
快照 2:
我正在开发自动提示和网格拟合。
测试一下,并随意评论、分叉、讨论。
快照 3:子像素渲染
I want to introduce another pure C# lib for processing font.
Here https://github.com/LayoutFarm/Typography
Pure C#
support .NET >=20
access general glyph data,
and access advanced typography data.
(such as GDEF,GSUB,GPOS) etc.
The below image shows some screen snapshot,
compare then lib's rendering glyph 'B'
(left) : glyph from the lib without Hinting
(middle) : Windows's GDI with clear type (from notepad)
(right): glyph from the lib with True Hinting
snap 2:
I'm developing auto-hint, and grid fitting.
test it out, and feel free to comment, fork, discuss.
snap 3: subpixel rendering
不知道你到底想做什么,但 WPF 有一个很酷的 GlyphTypeface 类 这是相当抽象且相当独立的。
您可以这样开始:
还有 GlyphRun 类和GlyphRunDrawing 类。
否则,如果您正在寻找开源的大局,您还可以查看 FreeType 项目,可在此处找到:http://freetype.org/
Don't know what you want to do exactly, but WPF has a cool GlyphTypeface Class that is quite abstract and quite independent.
This is how you can start with:
There are also the GlyphRun Class and the GlyphRunDrawing Class.
Otherwise, if you're looking for the big picture, open-source, you can also check the FreeType Project, available here: http://freetype.org/
有一个 FreeType 的 .net 包装器:https://github.com/Robmaister/SharpFont
这里 也可在 nuget 上使用:
There is a .net wrapper for FreeType available here: https://github.com/Robmaister/SharpFont
It's also available on nuget: