Text size in pixels ?

Blitz3D Forums/Blitz3D Programming/Text size in pixels ?

Stickman(Posted 2003) [#1]
How can you determin the length and height of a text with or with out the use of Fonts?

What I want to do is outline a selected text with blitzes rect comand and at current Im just gestimating it size according to the type of Font used and the amount of caracters within the Text itself, but this dosnt hold true as for an Upper case (M) will take more space then an Lower case (i).

Any Ideas.


Rottbott(Posted 2003) [#2]
StringWidth() ?


GeordieB(Posted 2003) [#3]
and StringHeight() :P


EOF(Posted 2003) [#4]
StringHeight() has been replaced by FontHeight()


Stickman(Posted 2003) [#5]
Wow
Didn't know about those commands ,Cool.

Thanks,

3D Canvas DX8 to B3D file Converter V 1.04

V 1.04
This update includes,
(1) RootGroup Animation support.
(2) Multisurface Boned animations
(3) New File Directory (load and save any where on your HD)
(4) Rename B3D file.
(5) Variable (playback) animspeed of B3D mesh.
and a few other misc. fixes.

Its still Not the do all .X to .B3D file converter (and probably never will be)
But it still should be very useful for us 3D Canvas users.

Get It Here



Thanks....


ford escort(Posted 2003) [#6]
stringheight/stringwidth and fontheight/fontwidth don't have the same usage as fontheight/fontwidth don't take care of the characters width used in the srting and just return the global character width/height used in the font.

i is narrower than W.

stringwidth return the exact lenght of the string writen