Hi,
I just wonder if the te_Height returned by TextExtent() is really the size in pixels of a text displayed on a RastPort ?
Considering I have a window of 132 pixels height with a Text whose TextExtent.te_Height is 128.
If I move my text to y = 130, it should be vertically centered, no ?
In the following test, I try to vertically center a text of 128 pixels height in a 132 pixels height window (window height returned by window->Height and by SysMon).
I use a Topaz.font with ta_YSize of 128 (but the same problem occurs with all fonts)
the text height is returned by texteDimension.te_Height from TextExtent structure
So if TextExtent.te_Height is not really the height of a displayed text, is it a way to find the height of a displayed font ?
Thank you by advance
Guillaume
struct TextExtent texteDimension ; TextExtent(window->RPort,bufferHeure, strlen(bufferHeure),&texteDimension);