9

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:

Glyph metrics

Community
  • 1
  • 1
leavelllusion
  • 329
  • 5
  • 11

2 Answers2

3

You can start with the FontFamily class.

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

Sam Axe
  • 33,313
  • 9
  • 55
  • 89
1

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)

Alexey Ivanov
  • 11,541
  • 4
  • 39
  • 68
dgrace
  • 11
  • 2
  • Yes, with IDWriteFontFace::GetGlyphIndices GetMetrics, GetGlyphMetrics, and IDWriteFontFace1::GetCaretMetrics, using the DWRITE_FONT_METRICS::ascent/descent/xHeight/capHeight, DWRITE_GLYPH_METRICS::width, DWRITE_CARET_METRICS::slopeRise/slopeRun. – Dwayne Robinson Sep 20 '14 at 10:46