[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
text question
From: |
Pete French |
Subject: |
text question |
Date: |
Mon, 23 Jun 2003 21:21:12 +0100 |
Is there any way to obtain the "baseline" of a piece of attributes
text ? I am trying to improve upon last weeks patch to draw strings
in the correct place. CUrrently it simply offsets by the bounding box. As
someone pointed out, however, this is not quite correct, as it moves all
the text to sit above the point - whereas descenders should go below
the line.
I can get the size of the text using usedRectForTextContainer: - but that
always giuves me an origin of 0,0. How can I find out the offset of the
baseline itno the rect so that I can calulate tghe part of the rectangle
which is above the baseline ?
-bat.
- text question,
Pete French <=