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

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
15th January, 2007 at 06:29:54 -

I have made an app with a non standard font and the difficulty i face is getting the font onto other PC's without creating an installer. I cannot use text blitter as i need to use edit boxes. I have created a loader using the file object which copies the font across and the fires up the app as a sub app. the only problem with this is that the app does not pickup the newly copied font until a second run and sometimes not at all. how can i get around this?

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
15th January, 2007 at 06:59:32 -

The only thing I can think of without testing it myself is destributing the app in an installer and having the it install the font at the same time.

 
n/a

Dave S.



Registered
  26/09/2003
Points
  924
15th January, 2007 at 10:48:15 -

Could you not just include the font with the application... not very professional I know but it would only take a few mouse clicks to install.

I had the same problem with my last game but got round it by making snapshots of the text in PSP and then inserting it into the application as a background object.

From what I've read on the click site, self installers aren't that popular although they've never bothered me.



 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
15th January, 2007 at 12:39:40 -

that's the reason i dont want to use an installer. ppl don't like them. anywho gonna try summat diff and see how it goes. possibly write a batch file for it

 
n/a

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!
15th January, 2007 at 13:33:21 -

Put the characters in the Text Blitter object or something.

 
Old member (~2004-2007).

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
15th January, 2007 at 13:39:40 -

Doesn't putting the font in the same folder as the app work?

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
15th January, 2007 at 14:22:45 -

Not sure about that, maybe it does, maybe it doesn't.

If you want to install a font, try these steps:

1.Move the font file to the Fonts directory
2.Add the NAME of the font and its FILENAME to the registry.

They key you want is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

If you wanted to install a font called 'Borslack MT (TrueType)', for example, and it had a filename of 'borslackmt.ttf', you'd add a key like this:


KEY: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

ITEM DATA
Borslack MT (TrueType) borslackmt.ttf


Dunno if it'd recognise the font then, but it's worth a try.

 
191 / 9999 * 7 + 191 * 7

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
15th January, 2007 at 14:54:49 -

@DaVince - I cant use text blitter as it is using inis and arrays to store and retrieve data.

@KM - No it doesn't as this is the current location of the font as i am trying to sort out this problem

@DeadmanDines - I don't really fancy messing about with reg files. I wouldn't know how to go about creating the entry anyway

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
15th January, 2007 at 15:37:57 -

I just did a test and it doesn't seem to be that simple anyway.

 
191 / 9999 * 7 + 191 * 7

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
15th January, 2007 at 17:08:59 -

Include the font with your distribution and tell the user to install it before use. Include it in a ZIP file or something. Sometimes the manual solutions are the least complicated.

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

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
15th January, 2007 at 18:01:05 -

The easiest is to convert the text to active or background objects, otherwise I think you could just use an extension to move the font file in the game's directory to windows's fonts folder.

Image Edited by the Author.

 
n/a

moonbird99



Registered
  03/04/2004
Points
  910
15th January, 2007 at 18:42:52 -

installers are ok - it's only purists who don't like them. If you want that font go for insaller. That way you are guarenteed to get what you want. They can always unistall later can't they.

 
to start press any key ...... where's the ANY KEY??

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
15th January, 2007 at 19:46:45 -

Installers are fine so long as they are required. It seems this is a requirement.

You might need to make the user install the font anyway so they're not benefitting from not having to use your installer.

I think the problem people have is that it creates folders and shortcuts and things when most click game will only be played for a few minutes then deleted. People want a one click delete not to have to wait, and even then things get left behind sometimes.

 
.

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
15th January, 2007 at 20:31:51 -

Nah, just include the font file in the game, and don't use an installer. Then, use the file object to move it to the fonts folder. To get the system folder's name, use The Big Box to get the system name (like "WINDOWS") So, use the file object to move the font file to C:\SYSTEMNAME\fonts\.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
15th January, 2007 at 23:04:25 -

I don't think you can just copy them in. /Fonts/ is one of the directories with a special behaviour, part of which is automatic installation. I doubt it would work properly if you used an extension to simply paste it in.
Pity windows doesn't check for font files the way it does with dlls.

As Andy sort of said, installers are roundly hated but only because they're used so often when they don't need to be. If there's an actually reason to use one it's okay.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click