Get single glyph metrics (.net)

ぐ巨炮叔叔 提交于 2019-12-05 20:33:41

问题


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

This picture describe what variables I need to find:


回答1:


You can start with the FontFamily class.

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




回答2:


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


来源:https://stackoverflow.com/questions/5995293/get-single-glyph-metrics-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!