nanogui: text align right
Subject:
text align right
From:
"Friedemann Leitenberger" ####@####.####
Date:
13 Dec 2007 13:57:58 +0000
Message-Id: <19adad510712130557v2b82ae79p7d0dee7ef776ae14@mail.gmail.com>
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