Author Topic: Check if font exists?  (Read 534 times)

Is there a way to check if the computer running BL has a specific font loaded on it?

Bump. For example, how could I check if the computer had the font "Calibri" installed on it?

How would you check if a font exists?
Hmm thats a hard que-NOT!

All that you have to do is look around in your blockland folder really was it that hard?

How would you check if a font exists?
Hmm thats a hard que-NOT!

All that you have to do is look around in your blockland folder really was it that hard?
If its so simple why didnt you give him the answer?

Anyway, I am certain return to blockland uses a function called getWinFonts(), not sure better double check, and im certain it is windows only.

How would you check if a font exists?
Hmm thats a hard que-NOT!

All that you have to do is look around in your blockland folder really was it that hard?

He is asking if the computer running BL has it, and finding it out through code.

Is there a way to check if the computer running BL has a specific font loaded on it?

How would you check if a font exists?
Hmm thats a hard que-NOT!

All that you have to do is look around in your blockland folder really was it that hard?
Perhaps you should stick to topic where you know what you're doing.



As far as checking for things outside of the Blockland directory, it would require an engine function.
I'd check with something like Pah's post. It might have what you need. Though it also seems possible to include a font within an add-on and use it.

I did a little more research in torque guides and stuff like that, and it's possible, but it's a locked function, so I can't use it. Anyway, I just picked a web-safe font (Century Gothic) that should work on almost every computer, so I don't really need this anymore.