How to calculate the height of a FontFamily with Win2D (Line Spacing)?

后端 未结 1 2133
孤独总比滥情好
孤独总比滥情好 2021-02-20 08:07

I would like to know how to calculate the height of a given a font (with its properties, like size, weight, style...) in a Window Universal Application using Win2D.

相关标签:
1条回答
  • 2021-02-20 08:48

    But you are already on the right way. Use e. g. fg as text. The f allocates the upper area, the g the lower one, so you get the total height of a text in the current font of the canvas.

    0 讨论(0)
提交回复
热议问题