The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Scripting Question Changing the size of a font

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old 2 Days Ago (12:31 PM).
Thiazzy's Avatar
Thiazzy Thiazzy is offline
     
    Join Date: May 2013
    Gender: Male
    Posts: 8
    Hi everyone,

    I added a new font to my game but its size is too big ( I'm using it for everything). I looked into the SpriteWindow script but I can't find where I can adjust the size of the font.

    If someone would be willing to help me,

    Thanks!
    Reply With Quote
      #2    
    Old 2 Days Ago (1:21 PM). Edited 2 Days Ago by Damien.aspiring.fandev.
    Damien.aspiring.fandev's Avatar
    Damien.aspiring.fandev Damien.aspiring.fandev is offline
    🎺🎺🎺🎺🎺🎺 📯📯📯📯
       
      Join Date: Apr 2017
      Location: Here : http://i.imgur.com/icQr63J.png
      Age: 19
      Gender: Male
      Nature: Jolly
      Posts: 954
      Quote:
      Originally Posted by T hiazzy
      Hi everyone,

      I added a new font to my game but its size is too big ( I'm using it for everything). I looked into the SpriteWindow script but I can't find where I can adjust the size of the font.

      If someone would be willing to help me,

      Thanks!
      ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
      Alas, I know that feel bretheren...
      I was trying to deal with the fonts myself because I wish to have new fonts added,
      but they lack gender symbols and they have the regular dollar symbol instead of
      the Pokédollar, and thus I was hoping to edit them but kinda gave up for now,
      for I couldn't find many font editors : this one is very poor, that one is pretty much
      unusable, the other one won't start up...
      Still, if it's just the size thy concern, maybe one of the NPCs has something useful in regard,
      allow me to check . . .
      * miniremo noises * 💻
      Ah-ha, tombo-er, I mean, Bingo!

      Text formatting guy from \PN's house may have the solution!
      If only the size concerns you, that is. Part of the dialogue reads as follows:
      Quote:
      <fn=Arial>Arial text,</fn> <fs=25>size 25 text,</fs>
      <fs=40>size 40 text,</fs> <o=128>half-transparent
      text.</o>
      I truly do, hope this helped... somewhat... somehow...
      We do, hope to see content from you soon!
      By the way, consider the Humanist 521 BT and Humanist 521 BT Condensed fonts, they're used in the TCG and are quite worthy, albeit missing XX, XY and Pokédollar symbols!
      ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
      __________________

      I am but a tearful clown. Though I smile, I cry inside.
      -Clown Lee. Jubilife TV station(Diamond&Pearl)/various pokémon centers through Sinnoh(Platinum)
      Want some gen5 apricorn balls?
      Reply With Quote
        #3    
      Old 2 Days Ago (1:48 PM).
      Thiazzy's Avatar
      Thiazzy Thiazzy is offline
         
        Join Date: May 2013
        Gender: Male
        Posts: 8
        Thanks for the quick answer,

        I want to change all the font in the game, isn't there is a way of just setting a var such as the font name (FontName = "blabla")?
        Because putting tags between every dialogue of my game feel pretty tiring and boring (if I do understand how it works).
        Reply With Quote
          #4    
        Old 2 Days Ago (2:52 PM). Edited 2 Days Ago by Damien.aspiring.fandev.
        Damien.aspiring.fandev's Avatar
        Damien.aspiring.fandev Damien.aspiring.fandev is offline
        🎺🎺🎺🎺🎺🎺 📯📯📯📯
           
          Join Date: Apr 2017
          Location: Here : http://i.imgur.com/icQr63J.png
          Age: 19
          Gender: Male
          Nature: Jolly
          Posts: 954
          Quote:
          Originally Posted by Thiazzy View Post
          Thanks for the quick answer,

          I want to change all the font in the game, isn't there is a way of just setting a var such as the font name (FontName = "blabla")?
          Because putting tags between every dialogue of my game feel pretty tiring and boring (if I do understand how it works).
          ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
          As far as I'm aware, the only other way to deal with such issue would be editing the font itself,
          but again, I'm stuck with the same problem, and I do, hope I'm totally wrong about it...
          A couple font editors I found would be Fontforge and Birdfont, both free to use, but the
          first one is pretty much unusable due to its counterintuitive interface, whereas the second just...
          won't even start (well, on my computer anyway).
          I'm putting the links to the editors' downloads upstairs,
          but I don't recommend them really...
          turns out there are a few other free font editors...
          what was wrong with me when I was researching?
          ...
          Uh, look, I'm truly sorry, it's getting late here and I ought be under the blankets...
          If you seek to edit fonts (or decide to have a try at making your very own),
          aside Fontforge and Birdfont, you might be interested in Glyphr Studio, BitfontMaker2,
          gdbfed(who the heck came up with this name? xD), Raster font editor and Type light.
          Will check tomorrow what those editors are like.
          There's also an online tool, MyScriptFont, meant for turning handwriting into fonts apparently(just sharing this ;) ).
          Okay, gotta save that MIDI and go to bed before tomorrow...
          *yawn*... 'notte!
          ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
          __________________

          I am but a tearful clown. Though I smile, I cry inside.
          -Clown Lee. Jubilife TV station(Diamond&Pearl)/various pokémon centers through Sinnoh(Platinum)
          Want some gen5 apricorn balls?
          Reply With Quote
            #5    
          Old 2 Days Ago (3:07 PM). Edited 2 Days Ago by Thiazzy.
          Thiazzy's Avatar
          Thiazzy Thiazzy is offline
             
            Join Date: May 2013
            Gender: Male
            Posts: 8
            Thanks you for the advices,

            I'm gonna try to find a way to do it by myself.

            If someone has a solution, feel free to post it here!

            edit: Problem Resolved! I found it under the SpriteWindow script at the method "def pbSetSystemFont(bitmap)".
            Spoiler:
            # Sets a bitmap's font to the system font.
            def pbSetSystemFont(bitmap)
            fontname=MessageConfig.pbGetSystemFontName
            bitmap.font.name=fontname
            if fontname=="Pokemon FireLeaf" || fontname=="Power Red and Green"
            bitmap.font.size=29
            elsif fontname=="Pokemon Emerald Small" || fontname=="Power Green Small"
            bitmap.font.size=25
            else
            bitmap.font.size=20
            end
            end

            If your using a custom font, just change its size in the last bitmap.font.size!
            Reply With Quote
            Reply

            Quick Reply

            Join the conversation!

            Create an account to post a reply in this thread, participate in other discussions, and more!

            Create a PokéCommunity Account
            Thread Tools

            Posting Rules
            You may not post new threads
            You may not post replies
            You may not post attachments
            You may not edit your posts

            BB code is On
            Smilies are On
            [IMG] code is On
            HTML code is Off

            Forum Jump


            All times are GMT -8. The time now is 11:38 PM.