I need to measure or somehow determine the maximum height for a given font.
I also need to determine where the baseline of the font is.
The Graphics.MeasureString function seems to only determine the bounding box of a particular string (which is useful, but not what I need right now).
Specifically, I’m looking for ONLY the vertical size of the font in pixels. However, it needs to vertically accommodate all possible strings.
Is this something that is possible to programatically determine?
You are looking for the Height property of your font, which is “the line spacing, in pixels, of this font”. The position of the baseline (above the top of the next line of text) is given by the GetCellDescent method of the font family, but it is in “design units”, which has to be converted to pixels (here is how). There is an interesting article on MSDN about obtaining font metrics.