开发者

Get single glyph metrics (.net)

开发者 https://www.devze.com 2023-03-05 13:11 出处:网络
How can I get full information about single glyph from choosen font (for example Arial -> symbol "A")

How can I get full information about single glyph from choosen font (for example Arial -> symbol "A")

This picture descri开发者_StackOverflow中文版be what variables I need to find:

Get single glyph metrics (.net)


You can start with the FontFamily class.

and this CP article http://www.codeproject.com/KB/GDI-plus/ExtendedGraphicsII.aspx


I don't think FontFamily will give any information about a particular glyph, but the DirectWrite interface might work: (I haven't used it yet)

  • Glyphs and Glyph Runs
  • IDWriteFontFace::GetGlyphIndices
  • IDWriteFontFace::GetDesignGlyphMetrics
0

精彩评论

暂无评论...
验证码 换一张
取 消