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

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

Postby ukoenig » Tue Apr 15, 2008 3:05 pm

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]
Last edited by ukoenig on Tue Apr 15, 2008 8:54 pm, edited 3 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Silvio » Tue Apr 15, 2008 5:03 pm

nescapment parameter
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Text orientation

Postby ukoenig » Tue Apr 15, 2008 7:38 pm

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:
Last edited by ukoenig on Wed Apr 16, 2008 1:13 pm, edited 4 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Detlef Hoefner » Tue Apr 15, 2008 10:04 pm

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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Vertical Text

Postby ukoenig » Wed Apr 16, 2008 7:48 am

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:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], karinha, nageswaragunupudi and 96 guests