Home
Products
Community
Manuals
Contact
Login or Signup

TGuiFont to TImageFont

BlitzMax Forums/BlitzMax GUI Programming/TGuiFont to TImageFont

Ghost Dancer(Posted 1+ years ago) #1
Is there any way of getting the path of a TGuiFont so it can be loaded as TImageFont or any other way of converting between the two?


Wilkua(Posted 1+ years ago) #2
Well you can use LoadImageFont with a .dfont, .ttf, etc. font file using the absolute paths.

(Assuming windows is installed on the C drive)
Windows: C:\Windows\Fonts\fontname.ttf
Mac: /System/Library/Fonts/fontname.dfont or /Library/Fonts/fontname.dfont


Ghost Dancer(Posted 1+ years ago) #3
Font names are not always the same as the file names, and it is not a certainty that they will be in c:\windows.

No worries though, I have managed to work around this by using font config, once again Brucey's modules have come to the rescue ;-)