Get single glyph metrics (.net)
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:
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
精彩评论