Font offset problem

I am placing text in a position say for example Canvas.top 100 and left 100

The left part of the text appears in the correct place ( I have drawn a polygon with start position of the same points as the text) but the top of the text there appears to be a gap before the top of the text and i expected it to be tight againt the two marker lines i have drawn.

If I change the text from Arial to Verdana this offset seems to grow. Does text have a gap at the top, is there a fix.

Many thanks

Richard

[527 byte] By [rgny] at [2008-2-26]
# 1
There is a gap and the way I dealt with it was to move the canvas.top to be negative. You can also use the ActualHeight to figure out how tall the text is.
BryantLikes at 2007-9-7 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Designer Issues...
# 2


Some fonts have larger accents and desents which cause the "gap" at the top to appear larger.

-mark
Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-7 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Designer Issues...