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.

In LoadImageFont, you specify a font size, but that size doesn't translate to pixels. Additionally, the width and height of a character in a fixed-width font may be different.

The problem is that you can't call TextWidth and TextHeight before Graphics.