Default Font

BlitzMax Forums/BlitzMax Beginners Area/Default Font

Czar Flavius(Posted 2010) [#1]
What is the name of the default font used with DrawText? I'm loading new fonts but I kind of like the default font and want to use it too.


Dabhand(Posted 2010) [#2]
Could you not simply do:-

SetImageFont someFont
DrawText "Blah",0,0
SetImageFont Null
DrawText "De blah",0,20


?

Dabz

Last edited 2010


Czar Flavius(Posted 2010) [#3]
I could if I knew I could do that!


Jesse(Posted 2010) [#4]
or
GetImageFont()

it helps to glance over the max2d command set.


Czar Flavius(Posted 2010) [#5]
I can't use that to change its size though.


Jesse(Posted 2010) [#6]
right because they are loaded as images. the default font can only be used as the original size. of course, unless you scale them.

Last edited 2010


Czar Flavius(Posted 2010) [#7]
I have found it anyway:
BlitzMax\mod\brl.mod\max2d.mod\blitz.fon


Jesse(Posted 2010) [#8]
good luck with it. LOL
I hope you know it's not a real font and is not loaded as such.


Jesse(Posted 2010) [#9]
actually I think that the default font is loaded as raw bites and converted into pixmaps I think the file is "font.bin"


it's called blitzfont.bin

Last edited 2010