0

In a Windows store app, how can I programmatically get font metrics of the Segoe UI font? (baseline, ascent, and so forth)?

William Jockusch
  • 26,513
  • 49
  • 182
  • 323

1 Answers1

3

Quoting Ch. Petzold from his book about Windows Store Apps:

To do something like this in a generalized way, you’d need access to font metrics, which are available to a Windows 8 application only through DirectX. I’ll show you how to do that in Chapter 15, "Going Native."

EDIT
The book
Source codes -> check example in CSharp\Chapter15\LookAtFontMetrics

SOReader
  • 5,697
  • 5
  • 31
  • 53