123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|314|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Font list

Mon, 24 Jul 2023, 04:42
spinal

Font list


I'm doing a font maker to go with my watch project, but having a couple of issues. I'm trying to get a list of all fonts installed on my computer. I do this by reading the registry and creating a text file with a list of fonts. Then I go through the list and grab the first characters up to "(".
But when I go through the list, I get occasional 'failed to load font' or MAV errors.

Is ther a better way thamy this?



-=-=-
Check out my excellent homepage!
Mon, 24 Jul 2023, 04:50
Jayenkai
On Blitz2D/3D, the filename has to be the same as "font name" , so if it's "Fizzy Bubbles", the filename has to be "Fizzy Bubbles.ttf"

* I think.. It was some weird complication like that.

-=-=-
''Load, Next List!''
Mon, 24 Jul 2023, 07:14
spinal
I can grab the file name from my list, but, I can't find out where it might be installed. When I read the installed fonts from registry, I get about 3 times the amount of fonts that are in the windows/fonts folder.

-=-=-
Check out my excellent homepage!
Mon, 24 Jul 2023, 07:49
spinal
OK, I tried a little something to verify the font before adding to the list. Simply attempt to load it, apparently if the font system fails to load for whatever reason or returns 0.
However, some fonts seem to not load, but don't return 0, it does say in the blitz docs that symbol type fonts just don't work, so maybe the ARE loaded, but can't be set?
either way, no errors.


Here is fully functioning blitz3d code to list all(?) of the font's installed in windows.




does blitz have any way to sort strings alphabetically?

-=-=-
Check out my excellent homepage!