Getting the width of a Font Letter
Blitz3D Forums/Blitz3D Beginners Area/Getting the width of a Font Letter
| ||
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) |
| ||
wid = StringWidth("G") should do it. It also works with Wid = StringWidth("Fred Bloggs") |
| ||
Thats it !. Great !! |