In a Windows store app, how can I programmatically get font metrics of the Segoe UI font? (baseline, ascent, and so forth)?
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