Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Windows 商店应用程序中,如何以编程方式获取Segoe UI 字体的字体指标?(基线、上升等)?
引用Ch。Petzold 在他关于 Windows 应用商店应用的书中:
要以通用方式执行此类操作,您需要访问字体指标,Windows 8 应用程序只能通过 DirectX 使用这些指标。我将在第 15 章“走向原生”中向您展示如何做到这一点。
编辑 本书 源代码- > CSharp\Chapter15\LookAtFontMetrics 中的检查示例