Windows store app -- get font metrics?

312 views Asked by At

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

1

There are 1 answers

1
SOReader On BEST ANSWER

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