2 Replies Latest reply on Aug 18, 2009 10:31 PM by asagohan

    Finding the exact left edge of text

    asagohan

      Hi. I am trying to get a rectangle to surround my SimpleText by making the rectangles height and width the same as the text height and width. It does a pretty good job if the first letter is "W" or a similar wide letter, but if the first letter is "h" or "I" etc., the border of the rectangle has a gap between the left edge of the text and the side of the rectangle. This is very pronounced when thte font gets bigger. I am guessing each character takes up a the same area of space which is why there is a gap between the edge of the letter and the rectangle. Is there a way to find exactly where the left edge of the text is? Have a look at the attachement to see what I am on about.