loadfont question
Blitz3D Forums/Blitz3D Beginners Area/loadfont question
| ||
hi, i noticed sometimes the loadfont don't load all fonts...Global ft = LoadFont("ziggy_zoe.ttf",22) SetFont ft can i load a font file without have that font installed on windows? i place the font file in the directory of the game... |
| ||
You can try adding the path to the file, to force it to use the file in your gamedir. I think if you just load the font like above, it searches for the font in windows. |
| ||
Some fonts wont load. I can't remember exactly, but it only loads a certain type of fonts. Maybe you could look at JuicyFonts? It converts existing fonts into bitmap fonts, and it comes with code to use it in your program. |
| ||
I dont think there's any specific criteria for which fonts don't load, though as a general rule of thumb, the less 'weird-looking' - more mundane ones tend to load okay. I know also that it's good to keep the files in the same directory as the .exe As for wehther they need to be installed in Windows Font Folder, I don't think this actually makes a difference either way. |
| ||
For instance, read this thread: http://www.blitzbasic.com/Community/posts.php?topic=51493 Or check the posts in this search: http://www.google.com/search?q=blitz3d+setfont+ttf+site:blitzbasic.com |
| ||
thanks!!! |