including a true type font with game

Posted By: JazzDude

including a true type font with game - 05/17/07 17:05

Anybody have a suggestion for including a ttf font that the engine would find?

I'm thinking "automatic", not like asking the user to install it separately.

Do we need a dll for this?
Posted By: Scorpion

Re: including a true type font with game - 05/17/07 18:31

if u have an installer just install it into the font direction, or copy it per dll to it(big.dll)
Posted By: JazzDude

Re: including a true type font with game - 05/17/07 19:34

Thanks, Scorpion,

I knew I could do it with an installer, but I'd like to have it within the game, so could you explain this a little better:

"copy it per dll to it(big.dll) "

...and Triple_X's website doesn't have big.dll on it. Where can I get it?
Posted By: Uhrwerk

Re: including a true type font with game - 05/17/07 20:43

He meant you could store the font inside a gamestudio folder and then copy it to the windows font directory, e.g. C:\Windows\Fonts\. However, you than have to be carefull with the folder. Under XP it is C:\Windows\Fonts\, under Win2k it's C:\Winnt\Fonts\ and under any prior version the path can be abitray as you can select any path when installing the o.s.

But even when the file is copied, it is not necessarily installed. For example when running Word and then copying the font to the font folder Word won't recognize until you restart the game. The same with GameStudio. Before you're able to copy the file the engine needs to be started and at that point the font already won't be found as you don't have the opportunity to copy the file before the font initialization.

I guess the best way to go for you is really an installer application.
Posted By: JazzDude

Re: including a true type font with game - 05/17/07 20:51

Ah, yes...that explains a lot. I hadn't thought about the potential path problems.

Many thanks.
Posted By: alphaindigo

Re: including a true type font with game - 05/29/07 17:39

if you are going for the installer option then you may have to restart the pc so that the font is loaded properly.. i had trouble with this.. takle a look installling true type fonts
© 2024 lite-C Forums