Loading fonts

Blitz3D Forums/Blitz3D Programming/Loading fonts

Yeah, I don't think installing the font on peoples' machines is a good idea. Besides, I think there's more to installing a font than simply copying it to the fonts folder. Installing probably involves listing the font somewhere in the registry, too. However, blitz may pick-up the font if it's simply present in the fonts folder - I'm not sure.

Anyway, I see you're wanting to load the font at a size relative to the screen res. Maybe you could use bitmap fonts instead by creating one for each screen res needed?

You could name the font image files something like "myfont800x600", "myfont1024x768" etc., and then load the correct one using file$ = "myfont" + GraphicsWidth() + "x" + GraphicsHeight().

Just an idea.