OS4 DepotLogo by invent 
(anonymous IP:,2216) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Development » Utility » sfontmkr.lha


Description: make PNG fonts w/ alpha channel for use with SFont
Download: sfontmkr.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 288kb
Version: 0.0.4
Date: 17 Apr 2007
Author: Mike Oliphant, AmigaOS 4.0 compile by Spot / Up Rough
Submitter: Spot / Up Rough
Email: spot/triad se
Homepage: http://nostatic.org
Category: development/utility
License: GPL
Distribute: yes
Min OS Version: 4.0
FileID: 2717
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 195  (Current version)
195  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 

sfontmaker is a modification of Diego Billi's BFontMaker to allow for
makeing PNG fonts with an alpha channel for use with Karl Bartel's SFont
library. You can get SFont here:


All kudos for sfontmaker really should go to Diego, since the modifications
I made are really fairly basic. I have included Diego's original README.txt
as README.BFontMaker.


 USAGE: sfontmaker [options] <infile> <outfile.png>

Where <infile> is a source font image file in any format
the SDL_image library understands, and <outfile.png> is the
name of the resulting PNG file.

Availible options: 
 -s <int> --show-string <int>  Displays the string of characters that the font
                               file must contain and exits. It add <int> spaces
                               between characters.
 -o <int> --offset <int>       Sums some more <int> pink pixels at both sides.
                               Use when the font has shadows, so it doesnt have
                               too much space between letters.
 -l <int> --left-offset <int>  Sums some more <int> pink pixels at the left side
                               of each letter.
 -r <int> --right-offset <int> Sums some more <int> pink pixels at the left side
                               of each letter.

 -h       --help               Displays usage information.


You somtimes need to touch up the output. Sometimes letters get too close
together and the separation between them gets missed by the program. Load
the image into your favorite image editor. Note the pink lines at the
top. If you see two letters without any pink between them, place a pink dot
(make sure to use the same color) at the point of the separation between


Thanks to Juan Pedro Bolívar Puente for adding argument parsing code and
the extra offset options.


You may redistribute this code under the terms of the GPL or LGPL (at your

Mike Oliphant  (http://nostatic.org)

Copyright © 2004-2024 by Björn Hagström All Rights Reserved