I would like to know how to calculate the height of a given FontFamily
in a Window Universal Application.
In UWP, the FontFamily
object has a LineSpacing
property that makes it possible to calculate the max height to allocate all the glyphs of the font, but it's not available for UWP applications.
NOTICE: About the "duplicate claim", using a TextBlock to measure the height isn't an option for me. Apart from being an ugly trick, it uses a UI object to do it. In my case, I cannot do that because I'm making a GUI Framework myself. It would have no sense to rely on object inside the UWP framework itself.