Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: zgw 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 ?
-
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.
-
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
-
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.
-
yes . main script is the last one, and it is pretty short
but there isnt a fontface in there...
there is the whole script:
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.
-
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
-
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
-
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.