Finding a fonts true name.

BlitzPlus Forums/BlitzPlus Programming/Finding a fonts true name.

You can use the RequestFont() function, but if you'd rather do it behind the scenes, I wrote this DLL for you that will output every font name on the system to the system directory. Here's the file and some example code:
; Userlib
; .lib "fontnames.dll"
; ExportFonts%()

Graphics 640, 600, 16, 2
SetBuffer FrontBuffer()

ExportFonts ; Save font names to system directory

File% = ReadFile(SystemProperty("SystemDir") + "\fontnames.txt")
Local x% = 1, y% = 1, tmp$
Repeat 
	Text x, y, ReadLine(File)
	y = y + 16
	If y >= 584 Then y = 1: x = x + 200
Until Eof(File)
DeleteFile SystemProperty("SystemDir") + "\fontnames.txt"
WaitKey()
Only other way I know to do this would be by enumerating the fonts, but those API functions require callbacks which userlibs don't support. Hope a DLL isn't too clunky for you, and good luck with your font project thingy.