Fonts

Non-platform specific questions.

Fonts

Postby Turon » Thu Sep 01, 2011 1:54 pm

Now if you go to the text editor and click new font, it will ask you
"Fonts from Image file" or "True Type Fonts"
now I have used the True Type fonts but I have never been able to load Image file fonts, made for Some of the GE games

How do you load a Image file font and make your own?
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Fonts

Postby Game A Gogo » Thu Sep 01, 2011 3:39 pm

Here's an example of a full character set font: Image
All letters must be the same height, and on the same line. You can also have font containing only numbers if you want.

Now that you have your font set up, it's time to load it. You'll get a dialog like this: Image
Firstly, load your image.
Now if you look at the first image, it starts with a blank character, this character is your space.
So in the initial font char just press space. (You would put 0 if you have numbers only font)
Now in the numbers of font char, You simply put how many characters there are in the font. In the font I gave you, there should be 92 characters.
The character sample is there to make sure all the characters are cutted correctly, make sure you can see whole characters and not fragmented ones.
If that's the case, try changing the number of font char.

Hopefully this cleared it out :)

EDIT: forgot to mention it... but the letters should ALWAYS be in the same order, this order: http://www.asciitable.com/ but you can start and stop from where-ever you want.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Fonts

Postby Jagmaster » Fri Sep 02, 2011 12:48 am

A quick question, is it required to have equal spacing between letters? I've tried doing this before, and I had all the letters evenly spaced out like in an animation, but it got messed up in GE. I know I didn't have them spaced right, but are there any definite rules on how much space to put between the letters?
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Fonts

Postby skydereign » Fri Sep 02, 2011 4:23 am

The amount of space between letters needs to be constant. It uses the same system as the animations system. So, it takes the image and breaks it into even sized images (number decided by the range of letters). You could have a font with each letter being 1000 pixels wide, while you could have one with only 2 pixels wide.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Fonts

Postby Jagmaster » Fri Sep 02, 2011 2:28 pm

Oh, I get it! The apostrophe needs to have the same distance between the other letters as say, the letter M!
Hahahaha! Font victory is within my grasp! :P
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest