In a Windows store app, how can I programmatically get font metrics of the Segoe UI font? (baseline, ascent, and so forth)?
Asked
Active
Viewed 298 times
1 Answers
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
-
is this still the case in Windows 10? – William Jockusch Nov 25 '16 at 17:35