Orientation of Text

I know that this gets asked every now and then, and since 6.3 is now
available I decided to ask again.

Is it possible to orient text other than left to right? Most specifically
I’m looking for a top to bottom or bottom to top. But to be able to
rotate it at any angle would be very nice.

I’ve examined options to PtLabel and did not find anything. For this,
even if it were a draw primitive that would be great.

Hi Rodney

Ultimately I want to rotate each individual letter. However, since you
suggest that it is so easy to do with PgDrawText(), how would I do it?

Rodney Dowdall <rdowdall@qnx.com> wrote:
RD > Hello Bill

RD > We cannot currently rotate text, however, I would like to ask
RD > chlarification on something. Are you looking for something that will
RD > place text like this:

RD > h
RD > e
RD > l
RD > l
RD > o

RD > and this:

RD > h
RD > e
RD > l
RD > l
RD > o

RD > Or do you want the orientation of each individual letter to change ( so
RD > that the h would be tilted, the e would be tilted and so on and so forth
RD > )? The reason I am asking is that one above could be done fairly simply
RD > in a raw widget, but rotating that actual characters might be a little
RD > harder to do.

RD > Thanks,
RD > Rodney


RD > Bill Caroselli wrote:

I know that this gets asked every now and then, and since 6.3 is now
available I decided to ask again.

Is it possible to orient text other than left to right? Most specifically
I’m looking for a top to bottom or bottom to top. But to be able to
rotate it at any angle would be very nice.

I’ve examined options to PtLabel and did not find anything. For this,
even if it were a draw primitive that would be great.


Bill Caroselli – Q-TPS Consulting
1-(708) 308-4956 <== Note: New Number
qtps@earthlink.net

Hello Bill

We cannot currently rotate text, however, I would like to ask
chlarification on something. Are you looking for something that will
place text like this:

h
e
l
l
o

and this:

h
e
l
l
o

Or do you want the orientation of each individual letter to change ( so
that the h would be tilted, the e would be tilted and so on and so forth
)? The reason I am asking is that one above could be done fairly simply
in a raw widget, but rotating that actual characters might be a little
harder to do.

Thanks,
Rodney


Bill Caroselli wrote:

I know that this gets asked every now and then, and since 6.3 is now
available I decided to ask again.

Is it possible to orient text other than left to right? Most specifically
I’m looking for a top to bottom or bottom to top. But to be able to
rotate it at any angle would be very nice.

I’ve examined options to PtLabel and did not find anything. For this,
even if it were a draw primitive that would be great.

Hello Bill

You get your original rectangle for you text by extenting it, then you
calculate the line that runs down the middle of that rectangle. This
line is the midline for the characters. Now rotate the midline by the
angle that you want to use. Now run through each character individually
and calculate it’s personal midpoint. The place where you want to put
the character is where it’s personal midpoint and the midline intersect.
You will have to move the character over by the width of the last
character.

I haven’t tried this, but it should work, however the orientation of the
characters won’t change.

Rodney

Bill Caroselli wrote:

Hi Rodney

Ultimately I want to rotate each individual letter. However, since you
suggest that it is so easy to do with PgDrawText(), how would I do it?

Rodney Dowdall <> rdowdall@qnx.com> > wrote:
RD > Hello Bill

RD > We cannot currently rotate text, however, I would like to ask
RD > chlarification on something. Are you looking for something that will
RD > place text like this:

RD > h
RD > e
RD > l
RD > l
RD > o

RD > and this:

RD > h
RD > e
RD > l
RD > l
RD > o

RD > Or do you want the orientation of each individual letter to change ( so
RD > that the h would be tilted, the e would be tilted and so on and so forth
RD > )? The reason I am asking is that one above could be done fairly simply
RD > in a raw widget, but rotating that actual characters might be a little
RD > harder to do.

RD > Thanks,
RD > Rodney


RD > Bill Caroselli wrote:

I know that this gets asked every now and then, and since 6.3 is now
available I decided to ask again.

Is it possible to orient text other than left to right? Most specifically
I’m looking for a top to bottom or bottom to top. But to be able to
rotate it at any angle would be very nice.

I’ve examined options to PtLabel and did not find anything. For this,
even if it were a draw primitive that would be great.

Rodney Dowdall <rdowdall@qnx.com> wrote:
RD > Hello Bill

RD > You get your original rectangle for you text by extenting it, then you
RD > calculate the line that runs down the middle of that rectangle. This
RD > line is the midline for the characters. Now rotate the midline by the
RD > angle that you want to use. Now run through each character individually
RD > and calculate it’s personal midpoint. The place where you want to put
RD > the character is where it’s personal midpoint and the midline intersect.
RD > You will have to move the character over by the width of the last
RD > character.

RD > I haven’t tried this, but it should work, however the orientation of the
RD > characters won’t change.

RD > Rodney

Thanks, but I think I’ll wait for V 6.4.

Try to find some close “Text Rotate” in QSSL Knolige Base on www.qnx.com.

There is one article about this problem there.


Bill Caroselli <qtps@earthlink.net> ÐÉÛÅÔ ×
ÓÏÏÂÝÅÎÉÉ:cdjpt7$jp5$1@inn.qnx.com

I know that this gets asked every now and then, and since 6.3 is now
available I decided to ask again.

Is it possible to orient text other than left to right? Most specifically
I’m looking for a top to bottom or bottom to top. But to be able to
rotate it at any angle would be very nice.

I’ve examined options to PtLabel and did not find anything. For this,
even if it were a draw primitive that would be great.