easiest way to use custom font?

developer6810developer6810 Member Posts: 139
edited July 2012 in Working with GS (Mac)
What is the easiest and fastest way to use a custom font?

Best Answer

  • shebhntshebhnt Posts: 74
    Accepted Answer
    Well it depends on which aspect you are talking about. For the most part, I just made an image using the font in Photoshop and saved it as a png. For instance the menu screen is one image. (I added a little animation by have various stars "blink").

    In the actual level, the score counters at the top follow what is described in the youtube video I posted. Basically you make 10 separate images for each number using the font, then you create a new actor that follows a rule that looks at your score and depending on what number and in which place it is (tens, hundreds, etc) it changes the image of the actor to that number.

    So basically if you are displaying some text that does not have to change just make an image. If you are doing a score type thing, use the way shown in the video.

Answers

  • lycettebroslycettebros Member, PRO Posts: 1,598
    edited July 2012
    You can't (easily).
    Someone has made a way to use custom fonts as images (tshirtbooth I think) but it is a pretty big undertaking.
  • shebhntshebhnt Member Posts: 74
    Well either save the different things your are doing as images that you can use as sprites for the buttons/text/whatever you are using the font for.

    When it comes to using a custom font for a score it gets a little more tricky but I believe tshirtbooth has a tutorial on it, let me see if I can find it...
  • shebhntshebhnt Member Posts: 74
    Here it is:
  • developer6810developer6810 Member Posts: 139
    @shebhnt

    How did you come about doing it for installing the Commodore 64 for your app, Spaceman Steve?
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    @tshirtbooth method is really easy once you understand what's going on. Just watch the video, and go step by step and it will work. That video is how I learned, and it's pretty much second nature for me now.
  • developer6810developer6810 Member Posts: 139
    @SlickZero

    But doing it that way, you have to have a .png for each letter. What if the font you want does not have .png for each letter?
  • developer6810developer6810 Member Posts: 139
    @shebhnt

    How exactly did you use photoshop to make them? I tried and each text was a different size so the font looked different for each image and messed it up.
  • KiwiLeeKiwiLee Member Posts: 181
    I used Inkscape.

    1. Add each letter individually to the canvas at the size you want.
    2. Select letter A for example and under the 'File' menu select 'export bitmap' and save as a.png etc etc.
    3. Import them into to Gamesalad and follow TSB's tutorial.

  • developer6810developer6810 Member Posts: 139
    @KiwiLee

    What if the font you want puts all the letters on the same .png and does not separate them?
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    I'm not familiar with Inkscape or Gimp, but in Photoshop you make a layer for each number, and then put 0-9 on the individual layers, and you select each layer 1 by 1 and export each number as an individual .png
  • developer6810developer6810 Member Posts: 139
    @SlickZero

    What do you do for letters?
  • developer6810developer6810 Member Posts: 139
    I got it guys. Thanks.
Sign In or Register to comment.