Last Update: 2011.12.19
Script Download
SFonts Examples Download
This script allows the use of SFonts. SFonts is a image file that replaces the normal font.
What are SFonts? (from http://rubygame.org/docs/)
SFont is a type of bitmapped font, which is loaded from an image file with a meaningful top row of pixels, and the font itself below that. The top row provides information about what parts of the lower area contains font data, and which parts are empty. The image file should contain all of the glyphs on one row, with the “skip” color at the top-left pixel.
Requires the Victor Engine – Basic Module
On the SFont, the first pixel on the top left corner is considered the “skip color”, so, anywhere that this color appears on the first row the part will be skiped, so use it to define the limit from each character. At first it might be hard to get how it work.
If the constant ALL_SFONT is true, all fonts in all windows will be replaced with SFonts, if false, you will need to add them manually in the code (not recomended for begginers).
The method “text_color(n)” from Window_Base can be used to change the SFont, where n is the SFont index on the SFONT_NAMES hash.
(Remember that indexes starts at 0, not at 1)
Text on independent bitmaps (outside windows) will need to be changed manually on the code.
The system colors can be changed on the Window_Base class, on the following methods. Replace the number in text_color(x) with the index of the SFont on the SFONT_NAMES array.
def normal_color; text_color(0); end; def system_color; text_color(16); end; def crisis_color; text_color(17); end; def knockout_color; text_color(18); end; def mp_cost_color; text_color(23); end; def power_up_color; text_color(24); end; def power_down_color; text_color(25); end; def tp_cost_color; text_color(29); end;
If you don’t feel like changing the default scripts, just create a new script on the Materials section for the class Window_Base, add these medthods, and change the numeric values according to the ones set on SFONT_NAMES hash.



















Thanks for the script, it’s very useful, but i’m having a issue with portuguese characters (like ç or ã). Do you know where I can find portuguese SFonts?
you can’t find, you have to make it by yourself, then add these characters to the list on the script setting.