pioneerspacesim/pioneer — pull request #1276 by robn (2012-05-31 12:27:25+00:00)
Title: More font metrics

This is what #1273 should have been. Here we properly calculate font baseline-to-baseline height and descender height. They need to have the current font scaling applied.

From there, we no longer need a distinct concept of line spacing since its always just the line height, so that's been removed. MeasureString adds the descender height once again, otherwise the last (or only) line gets chopped vertically at the baseline. The rest of the changes are just adjusting the various bits of text layout to use the new values "correctly".

This is still not "right". We need a concept of line height, but this is different depending on if you're doing single or multiline layout. Text layout needs to be done better/differently, which is something I'm addressing in new-ui. For now it seems reasonable to just hack around it for master.