The Daily Click ::. Forums ::. Klik Coding Help ::. Fonts
 

Post Reply  Post Oekaki 
 

Posted By Message

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
16th December, 2007 at 18:34:22 -

Whats a good way of ensuring that a player has all the fonts to play a game? My current project uses 3 different fonts in text objects throughout it;

-Arial
-Small Fonts
-System

I need to somehow make sure that all of these are installed on the computer of the player, otherwise I've noticed TGF will simply change them to be displayed a different font that will obviously not fit (for example, changing small fonts to Times New Roman because thats all the player has)

Is there some way I could install these during runtime if they aren't detected, or package them in the installer?

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

waffleton



Registered
  20/04/2007
Points
  794
16th December, 2007 at 18:45:06 -

First, you could include those font files in the Game´s folder, then make the game copy/move those fonts with the FileObject extension from the Game´s folder into the Fonts folder (C:\Windows\Fonts on windows etc.) (that will install them).

Bleh, too tired to think of a better idea. Sorry.

If that won't work, just include those fonts and tell the player to install them manually, perhaps?
Though I think most people already have those fonts anyway-

Image Edited by the Author.

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
16th December, 2007 at 18:56:20 -

Yeah I was googling each one, and I think Arial and Small Fonts come preinstalled on basically every computer made since 1981. So maybe I don't need to worry about that.

But what exactly is the "System" font in TGF? Is that the default for TGF and will run regardless of OS fonts, since I can't find anything on google or my harddrive about it.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
16th December, 2007 at 19:11:11 -

I'm pretty sure system will just default to the default font or something. I can never get the copying to work to th fonts folder, the operation happens but the fonts just don't appear :\

 
Image
http://bfollington.tumblr.com

Billybobjoe198



Registered
  12/01/2007
Points
  221
16th December, 2007 at 21:19:37 -

Unless you really need it to be text, turn the text into a backdrop.

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
16th December, 2007 at 21:38:51 -

All the text is loaded from .ini files containing the game's data. :-/

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
17th December, 2007 at 02:38:41 -

System, Fixedsys, Times new Roman, Arial, Courier, Courier New, Wingdings... Those are all ancient fonts basically any Windows PC has. And then there are newer fonts that everyonce has anyway, like Verdana, Tahoma, Trebuchet and probably some others.

 
Old member (~2004-2007).

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
17th December, 2007 at 15:50:01 -

Use the Text Blitter object if you don't think a user has a particular font.

 
If wishes were fishes then we'd all smell like ladies' underwear.

nim



Registered
  17/05/2002
Points
  7234
18th December, 2007 at 07:33:49 -

Aside from the Text Blitter solution, you could also try using the ActiveX object to embed a Flash movie inside your frame. Since Flash movies can embed fonts, you can then pass parameters to them (eg. "Hello World") to change the contents of the text fields. This is sometimes used on websites, albeit not for large chunks of body text. I'll make an example if the above makes no sense.

Anyway, with those fonts you listed it should be pretty safe to assume that 99.9% of players will already have them installed.

 
//

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
18th December, 2007 at 07:37:54 -

I uninstalled Arial before to make programs use my default font instead (Lucida Sans <3).
It's very rare for people to uninstall fonts like this, and even if they do, it's safe because Windows will use the default font instead.

 
Service Unavailable

alastair john jack

BANNED

Registered
  01/10/2004
Points
  294

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!VIP MemberMushroomI am an April Fool
18th December, 2007 at 07:56:16 -

Text blitter isn't in TGF, which is annoying for poor pixelthief

 
lol
   

Post Reply



 



Advertisement

Worth A Click