Page 1 of 1

How to place vertical text on a bitmap (no turn 90° or 45°)

Posted: Tue Apr 15, 2008 3:05 pm
by ukoenig
Hello,

I added a new funtion to the visual-tool :
placing text vertical on a bitmap.
To turn the text, is no problem.
But I want just 1 character in 1 line.

Image

It works, but i want the small chars centered in relation to
the big ones.
Sample : bitmap-with = 100
to write < W > left = 30
to write < i > left = 35 ( < i > = centerd to < W >
Is there a font information for the pixel width ?

Regards

Uwe :lol: [/img]

Posted: Tue Apr 15, 2008 5:03 pm
by Silvio
nescapment parameter

Text orientation

Posted: Tue Apr 15, 2008 7:38 pm
by ukoenig
Hello Silvio,

The NESCAPEMENT - parameter
writes text from left to right and turns the textline.

I'm writing text from top to bottom
that cannot be done with this parameter.
I don't turn the text.
Every single character has to be centered to the bitmap-width.
The problem is < l > is smaler like < W >.
So i need the width of every character, before i place it on screen.

I had a look inside the classes and it is working now.
I have to calculate with < textwidth > every single character of the text.
After that, the character has to be centered inside the bitmap.

That is, what i mean :

Image

Regards

Uwe :lol:

Posted: Tue Apr 15, 2008 10:04 pm
by Detlef Hoefner
Uwe,

a nice piece of work.
But imho it's easier to read vertical text when it's turned by 90 degr.

Image

Have a look at a bookshelf to see how often text is written in real vertical direction.

Just my 2 cents,
Detlef

Vertical Text

Posted: Wed Apr 16, 2008 7:48 am
by ukoenig
Hello Detlef,

in the tools i have both options,
so erverybody can choose, what he prefers.
This option is included, because somebody
asked for it.
You can use : Animated gifs, brushes, gradients, colors
Everything works with a preview.


Regards

Uwe :lol: