FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to place vertical text on a bitmap (no turn 90° or 45°)
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
How to place vertical text on a bitmap (no turn 90° or 45°)
Posted: Tue Apr 15, 2008 03: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.



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 :-) [/img]
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.
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
How to place vertical text on a bitmap (no turn 90° or 45°)
Posted: Tue Apr 15, 2008 05:03 PM

nescapment parameter

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Text orientation
Posted: Tue Apr 15, 2008 07: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 :



Regards

Uwe :-)
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.
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
How to place vertical text on a bitmap (no turn 90° or 45°)
Posted: 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.



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

Just my 2 cents,
Detlef
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Vertical Text
Posted: Wed Apr 16, 2008 07: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.

Continue the discussion