Hello, And finally, the solution is to substract TextExtent.YBearing from left-top.Y and TextExtent.XBearing from left-top.X.
I've tested it with different text patterns and seems to work. :-) Thanks a lot, El 17/11/10 15:00, Francisco M. Marzoa escribió: > Hello Ian, > > I've somethings more clear now after reading your code, anyway I want to > clearify my point. I will use the same terminology used in this tutorial: > > http://www.mono-project.com/Mono.Cairo_Tutorial#Text > > As you know and see, when you put sometext in Cairo in a given point by > its coordinates, that point mean to be at the left-bottom of the text > but over the descent, exactly as the baseline (quote: "The reference > point is always on the baseline"). > > But I rather like to use a reference point at the left-top of the text. > > So I need to calculate the baseline reference point based on the > left-top point, that means to increment left-top.Y by the distance from > left-top.Y to baseline.Y. > > At this time I cannot check it yet, but now I think that I must add at > least TextExtent.Height and probably something more. > > I hope you understand. > > Best regards, > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
