Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Help about fonts
« previous next »
  • Print
Pages: [1]

Author Topic: Help about fonts  (Read 2798 times)

Offline zgw

  • Member
  • Initiate
  • *
  • Posts: 4
Help about fonts
« on: January 23, 2008, 06:17:39 PM »
Hey everyone,

i ask if there is one who knows how can i  add a multi language font, in fact any font at all to my program at RPG maker XP ?
Logged

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #1 on: January 23, 2008, 08:06:35 PM »
Ok, adding a font to rmxp should be pretty easy, the only thing is that you want to make sure that you select a default computer font, otherwise other people playing the game won't be able to see the font unless they had it installed on their computer. If you want a differant font, make sure you include it with your project, and make sure you include instructions saying how to install it.

My memory isn't that great, and I haven't used rmxp in a while. Anyway, you need to go to the scripts, and I think its either the menu script or the system script (forgot exactly what it was called) and in that script it'll have a font in quotations. You need to replace that font with the new font.


I think most fonts such as arial include support for multiple languages. So all you would need to do is type it in another language.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

Offline zgw

  • Member
  • Initiate
  • *
  • Posts: 4
(No subject)
« Reply #2 on: January 24, 2008, 11:04:19 AM »
yes supposably its arial font,
i should just find in the script where there's anything for loading the font, and change the name of the font in there?...

i looked in the game script and menu and couldnt find it,
if anyone knows specificly where its at?
ill keep looking
thank you for the reply
Logged

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #3 on: January 24, 2008, 06:32:41 PM »
Oh, my bad. I just installed rmxp quick to look at the scripts. Anyway, it'll be in the 'main' script. If you didn't add any scripts, main should be the last script. The script itself will be pretty short. At the top of the script, there should be a

$fontface = "Arial"

replace arial with your desired font.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

Offline zgw

  • Member
  • Initiate
  • *
  • Posts: 4
(No subject)
« Reply #4 on: January 25, 2008, 09:45:24 AM »
yes . main script is the last one, and it is pretty short
but there isnt a fontface in there...

there is the whole script:

 
Quote
begin
  # Prepare for transition
  Graphics.freeze
  # Make scene object (title screen)
  $scene = Scene_Title.new
  # Call main method as long as $scene is effective
  while $scene != nil
    $scene.main
  end
  # Fade out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Supplement Errno::ENOENT exception
  # If unable to open file, display message and end
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end


please help me find it, its very important.
Logged

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #5 on: January 25, 2008, 12:57:57 PM »
Hmm, you must have a differant script than me then, this is mine.

begin
  $fontface = "Arial"
  $fontsize = 24
  Graphics.freeze
  $scene = Scene_Title.new
  while $scene != nil
    $scene.main
  end
  Graphics.transition(20)
rescue Errno::ENOENT
  filename = $!.message.sub("No such file or directory - ", "")
  print("File #{filename} was not found.")
end

Try adding in the font commands at the top and see if that works for you
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

Offline zgw

  • Member
  • Initiate
  • *
  • Posts: 4
(No subject)
« Reply #6 on: January 29, 2008, 05:35:09 PM »
ah...
i see that it is the default font... thank u for support

Another question....
how can i change the font to be right from left instead of left to right
Logged

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #7 on: February 03, 2008, 04:22:26 AM »
I have no idea on how to change it to go from left to right. I'm not even sure that rmxp has that programmed into it's system. I would guess that you're best chance for that would be to download a message script with that feature built into it. Otherwise, you may have to rewrite a lot of things to add an option like that.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Help about fonts
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum