I am trying to figure out how to find the precise coordinates of the bounding rectangle of a Glyphs object. In Silverlight, I am trying to display a rectangle around a Glyphs object. The XAML is from a XPS generated with Microsoft XPS Document Writer
OriginY does not seem to be the top nor bottom of text rectangle. OriginX however is OK. If I draw a horizontal line at the OriginY it seems that it's right at the bottom of the letters like 'a','b','c' which is fine but not for a character like 'y'. For character 'y' the line is crossing it in the middle.
There is no RenderTransform specified so that's not the problem.
For instance, I generated a XPS from a Word document with no margins. Looking in the generated XPS i see that OriginY for the Glyphs has a non zero value.
Can anybody give a hint about how that coordinate is generated?
Thanks.
EditadoIlmslbquarta-feira, 13 de maio de 2009 11:08