Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 SFont
#1
SFont
Version: 1.0


Introduction
A quick script I wrote that gives the maker access to SFonts. An SFont is an image that replaces font files that contains the characters you want to display. For more information here is the official sfont page http://www.linux-games.com/sfont

Features
  • Quick (faster than <Bitmap>.draw_text)
  • Looks cooler than regular old boring fonts =P
  • Allows for more customization instead of a font you are editing an image file
  • Easy to use
  • Easy to create your own
  • No hassle of worrying that the end user has so and so font


Screenshots
[Image: sfontscn5.png]


Demo
Download Here

Now available... my SFont Creator
Download Here


Instructions
Plug and play just add above main make sure this is the last script above main (reason being if another script modifies draw_text thing this script will flop)
See the header of the script for further instruction


Compatability Fix for RMVX
The fix


FAQ
Note: Permission granted by Trickster to post:
Quote:And if you post what you have now of my stuff then you don't have the latest versions. I'm too lazy/busy to post stuff.
As this is his material, it is deletable upon his request. Due to his current absense, no support is available. Please do not PM or eMail him for support.


Notes
If you've downloaded the demo, please be sure to replace
Code:
if space.ia_a?(Numeric)
with
Code:
if space.is_a?(Numeric)


Compatibility
Compatible with anything


Credits and Thanks
John Croisant for the original code for Rubygame which I used as a base for this script
Adam Bedore for the example sfont image more of his sfont work is given in this link: http://www.zlurp.com/irq/download.html


Terms and Conditions
Hey, I posted this publicly. You can use it. What do you expect? But if you do use it, I do expect you to spell my name correctly in your game. And yes you can use it in commercial games too.
Reply }
#2
This is a pretty sweet script. the only problem is it only seems to replace certain texts such as the Title screen fonts and the menu options... not the entire stuff which I was hoping for to be replaced.
Would be nice to have an option where you can specify which areas should be 'sfont-a-fied' or if you want all of them to be.
Otherwise this is perfecto 'Very cheery


Reply }
#3
@xnadvance
No, it can replace ANY text.
But this script ins't fully plug-and-play, you need to add the code to make the font change manually on each window you want to change.

BTW.: This version is quite laggy on some parts, specially in parts that you need to add the method in the refresh (like window_item or window_skilll)
Reply }




Users browsing this thread: