VE - SFonts

victor-engine-script-title.png

sfont-name.png




​



This plugin allows the use of SFonts. SFonts are image files 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 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 colorkey color at the bottom-left pixel and the “skip” color at the top-left pixel.

Download:
Victor Engine - SFonts

Credits:
Author: Victor Sant

Terms of Use
I. LOVE. YOU. 
MY LIFE IS COMPLETE.

I sent you some support on Patreon, thanks for your hard work! 🙂  
I. LOVE. YOU. 


MY LIFE IS COMPLETE.


I sent you some support on Patreon, thanks for your hard work! 🙂
Wow, thanks 😀
I saw your request when I was deciding wich plugin to do next, and since I had no menu related plugin yet i thought "why not?" xD
Very well done.

I prefer these to the default fonts...

Just gotta get them set up for 2 different sets.

1 set is for menus which takes up so many slots for different colors...

The other several slots i'm setting aside for a separate font for text like talking to folks.
Hey Victor, loving the plugin. Is there a way to change the default font in game? Like a plugin command or something. Trying to do a different font for the menu and switch it back for text
No. But remember: the change color commands don't actually change colors, but change the whole font.


You can have Up to 32 fonts graphics (that should include different colors for the same font).
Hi Victor thanks for the plugin, I want to use this as it seem to be the only way of achieving pixelated non blurry font, but I don't know how to make an sfont file properly and can't find any tutorials on it. Please could you make one?
Tutorial? I don't know what I could say on a tutorial that is not already on the plugin help.


The sfont is a sequence of digits, and the top row has a color that serves as separator. It just all about that.
OK thanks, I didn't realize it was so simple, and you just change the digits in the plugin settings to match your setup. It's looking really great in my game now 🙂

Untitled.png
Surprisingly, SFonts doesn't work for me for some reason. It's just doesn't do anything. I have it below VE Basics plugin, sfonts folder placed in \img\ and only use SFont option ON. But nothing happens. I've tried deleting sfonts folder from the img folder, but got no complaints from the plugin.
SOLVED
Hey all, sorry if the question has been asked before, but is there any plans to have that plugin working with MZ?
The blurry fonts with pixel games are a nightmare :'(
Thanks!
I'm going to be honest, I have no idea how to use this plugin. Can someone show me some screenshots of the whole process making a completely custom font. Thanks and sorry haha.
I'm going to be honest, I have no idea how to use this plugin. Can someone show me some screenshots of the whole process making a completely custom font. Thanks and sorry haha.
I'll do my best to assist you! Spoilering cuz it'll be long.

Spoiler: Sfont Guide
So, when you download the js and put it in the folder, there's an extra step.
1642198321091.png

You need to make an sfonts folder within your "img" folder, and this new folder specifically has to be named "sfonts".

Next, actually making the sfont. The plugin comes with some example ones, so I'll be using those to demonstrate how you actually make one.
1642198383310.png

So, open your paint program of choice. You can see the letters there, but there's also those pink lines at the top. Those are just showing the spacing. You just draw them up to wherever you want that character to end. Anything vertically under the pink line will NOT show up printed as a character. This file also needs to be one row.

Also feel free to add a character, remove a character, change a character, or change the characters' orders around. It's flexible, it doesn't need to be exactly the same as the template.

When you're done with the font(s), save to the sfonts folder.

1642198540294.png

Now, open the plugin in the engine. Anywhere were it says "Arial___" (on mine here, it has the names of my fonts), replace it with the font(s) of your choice. These numbers correspond to the system colors. It doesn't need to match the system color that was originally there, it's just the number you'll use to call that color in text codes.

The most important part is this.
1642198741183.png

This string of characters needs to be the ones you made into the font. You'll need them to be in the order that you have them in the actual image, else the characters will get all jumbled up. And if you miss a character, it'll jumble it up as well or the text might not display. Be sure to test in game.

Once you do that and it works... congratulations! You made your sfont! Once you have the order down, you can make a font for any color you want! To use the colors in text, just use the usual text code: \c[n], n being the number of the color you want to use.
There's also a part in the help text that shows you which colors are used for certain texts (like the HP color and MP colors), so set those to whatever you want.
Thank you so much you are a lifesaver
I'll do my best to assist you! Spoilering cuz it'll be long.

Spoiler: Sfont Guide
So, when you download the js and put it in the folder, there's an extra step.
View attachment 212896
You need to make an sfonts folder within your "img" folder, and this new folder specifically has to be named "sfonts".

Next, actually making the sfont. The plugin comes with some example ones, so I'll be using those to demonstrate how you actually make one.
View attachment 212897
So, open your paint program of choice. You can see the letters there, but there's also those pink lines at the top. Those are just showing the spacing. You just draw them up to wherever you want that character to end. Anything vertically under the pink line will NOT show up printed as a character. This file also needs to be one row.

Also feel free to add a character, remove a character, change a character, or change the characters' orders around. It's flexible, it doesn't need to be exactly the same as the template.

When you're done with the font(s), save to the sfonts folder.

View attachment 212898
Now, open the plugin in the engine. Anywhere were it says "Arial___" (on mine here, it has the names of my fonts), replace it with the font(s) of your choice. These numbers correspond to the system colors. It doesn't need to match the system color that was originally there, it's just the number you'll use to call that color in text codes.

The most important part is this.
View attachment 212899
This string of characters needs to be the ones you made into the font. You'll need them to be in the order that you have them in the actual image, else the characters will get all jumbled up. And if you miss a character, it'll jumble it up as well or the text might not display. Be sure to test in game.

Once you do that and it works... congratulations! You made your sfont! Once you have the order down, you can make a font for any color you want! To use the colors in text, just use the usual text code: \c[n], n being the number of the color you want to use.
There's also a part in the help text that shows you which colors are used for certain texts (like the HP color and MP colors), so set those to whatever you want.
Thank you so much you are a lifesaver
Thank you so much you are a lifesaver
No problem! Please let me know if you need any further assistance.
.
.
@magicbatteryacid Based on VE - SFont video




It's possible to change the font color on messages using change \c[x] code.

By default the maker system use the following colors for it's text:
0 - Normal Color
16 - System Color
17 - Crisis Color
18 - Death Color
23 - MP Cost Color
24 - Powerup Color
25 - Powerdown Color
29 - TP Cost Color

Original thread: https://forums.rpgmakerweb.com/threads/ve-sfonts.53721/