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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.