TGuiFont to TImageFont

BlitzMax Forums/MaxGUI Module/TGuiFont to TImageFont

Ghost Dancer(Posted 2010) [#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?


William Drescher(Posted 2010) [#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 2010) [#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 ;-)