hi!

i have a question concerning the text alignment under nano-x.
is there a way to change the textalign dynamically to right?

i tried to calculate the x-offset with x-pos - GrGetGCTextSize(),
but the returned width was much longer then the text field!

...

char myString[15];

strcpy(myString, "This is a test\0");

GrText(window, gc, 100, 100, myString, -1, GR_TFASCII);

GR_SIZE retwidth, retheight, retbase;

GrGetGCTextSize(gc, myString, 14, GR_TFANTIALIAS, &retwidth, &retheight,
&retbase);

...

i'm using microwindows 0.90 and freetype 1.4.

can anybody please help me with this problem?

thanks!

friedemann

Reply via email to