The SFonts Add-on
#1
The SFonts Add-on
Version: 1.2



Introduction
This script makes it easier to use SFonts for your game by altering the initial default calls that allows you to change the fonts you are using. No longer do you need to use a command like self.contents.sfont = SFont.new('arial_red'). Instead, you perform a call like self.contents.font.name = 'Arial_Red', just as you would any other font!

Of course, there are conditions.....



Script
Script Link
* Script is a text file saved with the .doc extension



Instructions
The instructions are pretty much in the script. That's how I roll. :cheery:



Requirements
Well, it IS an add-on. You'll find it makes (>SFonts<) even easier to use.



Compatibility
An RGSS / RPGMaker XP system. Not likely to work with any complex message system, but could if YOU do some tweaks. Hey, I can't do everything.



Terms and Conditions
Free for use, even in commercial games. What is asked is due credit.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#2
A little...
BUMP
to version 1.1

This new addition patches a bug with Trickster's SFonts system. It effectively prevents bugs that occur if the system attempts to draw text when no text is present.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#3
A little...
BUMP
to version 1.1

This latest bump is one I needed to perform when I discovered that SFONTS relied on spacing based on a font with the matching name. So if I had an Arial font and an Arial SFont, it took spacing between letters from the original, or whatever basic font was in use. HOWEVER..... if you were using only an SFont, there was no spacing value set and all your characters ran into each other (or worse... never spaced out at all).

My recent addition fixes that by attaching some new code to the Bitmap class's text_size method. Now it recognizes SFonts and SFont sizes.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }




Users browsing this thread: 2 Guest(s)