views:

37

answers:

1

How do I get the baseline of a font in Silverlight v3. I need to be able to do some simple font metrics so that I can reproduce some online render using an external markup system and make the output looks the same.

Silverlight renders fonts from top,left but the external system uses font baseline.

A: 

As far as I know, it's not possible. Microsoft removed the Baseline property from the FontFamily class and there is no font metrics class. Not sure if this was necessary to support non-Windows UIs; would seem to be a large oversight otherwise.

Ben Hoffstein