Getting font size before initializing graphics

BlitzMax Forums/BlitzMax Programming/Getting font size before initializing graphics

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Does this look too bad?
Graphics 1,1
Print TextWidth("Hello World")
Endgraphics
Graphics 640,480
DrawText "Hello World!",0,0
Flip
WaitKey()

First time there's a small flash but running again it's too quick to see.