Getting the width of a Font Letter

Blitz3D Forums/Blitz3D Beginners Area/Getting the width of a Font Letter

PaulJG(Posted 2004) [#1]
Any ideas on how I can do this ?

I'm working on the assumption that not all characters have equal amount of space between them. ie a 'm' is bigger than a 'i'

What ways you guys can recommend that I find out the width for each character in a font. ?

The idea is, once I have this info I can display the font correctly in 3d as surfaces. (with the correct spacing between them)


TeraBit(Posted 2004) [#2]
wid = StringWidth("G") should do it.

It also works with

Wid = StringWidth("Fred Bloggs")


PaulJG(Posted 2004) [#3]
Thats it !. Great !!