How can i draw a text with a angle?

Login to reply to this topic.
Tue, 2004-02-03 04:50
Joined: 2004-01-15
Forum posts: 2
How can i draw a text with a angle?i can't find any param about the angle when use DrawText function.
can some one give me some code?thangs!

Tue, 2004-02-03 13:13
Joined: 2003-10-08
Forum posts: 106
How can i draw a text with a angle?
Hi,
   Symbian only provides for Horizontal and Vertical text drawing. Arbitrary angles are not supported. You will have to write your own text-drawing methods. Best of Luck Smiley

Regards,
Varun

Regards,
Varun

Wed, 2007-11-28 09:58
Joined: 2007-09-21
Forum posts: 7
Re: How can i draw a text with a angle?

For example ? can anybody help ?

Wed, 2007-11-28 10:20
Joined: 2003-12-05
Forum posts: 587
Re: How can i draw a text with a angle?

If the text need not to be editable, you could just draw the text to a memory bitmap and then rotate it.

Wed, 2007-11-28 11:24
Joined: 2004-11-29
Forum posts: 1134
Re: How can i draw a text with a angle?

If the drawing and rotation is done in runtime, I can't see why it couldn't still be editable. (just an extra level of indirection from drawing it straight onto the screen)

Though, using bitmap rotational routines to rotate text is hard to do nicely, without a lot of really bad looking artifacts.

If you do it offline, you can make it look good by doing the rotation in 4x or 9x resolution, with filtering, and then scale down (again with filtering).
This way you minimize and hide the artifacts.

Still possible in runtime, but not with real-time animation performance... but you might not need that.

  • Login to reply to this topic.