That is not example code.
Read:
Fontwidth returns the width, in pixels, of the currently selected font (using SetFont). This command returns the width of the WIDEST character of the font
So unless you post some code that has Setfont in it, it is not example code of Fontwidth existing or not. Also with any graphics command, (yes this is a graphics command), its better to have called/created the Graphic (ie 800,600)
Maybe it doesnt exist, maybe it does. But people will just assume you have forgotten to set a Font.
Does this work
Read:
Fontwidth returns the width, in pixels, of the currently selected font (using SetFont). This command returns the width of the WIDEST character of the font
So unless you post some code that has Setfont in it, it is not example code of Fontwidth existing or not. Also with any graphics command, (yes this is a graphics command), its better to have called/created the Graphic (ie 800,600)
Maybe it doesnt exist, maybe it does. But people will just assume you have forgotten to set a Font.
Does this work
; FontWidth()/FontHeight example ; enable graphics mode Graphics 800,600,16 ; Set global on font variable Global fntArial ;Load fonts to a file handle variables fntArial=LoadFont("Arial",13,False,False,False) ; set the font and print sizes SetFont fntArial Text 400,0,"The font width of the widest character is:"+ FontWidth(),True,False Text 400,30,"The height of the font is:"+ FontHeight(),True,False ; Standard 'wait for ESC' from user While Not KeyHit(1) Wend ; Clear all the fonts from memory! FreeFont fntArial