Audio (342) Datatype (51) Demo (203) Development (593) Document (22) Driver (99) Emulation (146) Game (992) Graphics (494) Library (113) Network (228) Office (65) Utility (912) Video (69)
Total files: 4329
Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
|
Bfont | Description: | a font library for SDL | Download: | bfont.lha (TIPS: Use the right click menu if your browser takes you back here all the time) | Size: | 3Mb | Version: | 1.1.0 | Date: | 05 Oct 2008 | Author: | Diego Billi, AmigaOS 4.x compily by Spot / Up Rough | Submitter: | Spot / Up Rough | Email: | spot/triad se | Category: | development/library/graphics | License: | GPL | Distribute: | yes | Min OS Version: | 4.0 | FileID: | 4127 | | | Comments: | 0 | Snapshots: | 0 | Videos: | 0 | Downloads: | 162 (Current version) | | 162 (Accumulated) | Votes: | 0 (0/0) (30 days/7 days) | |
===========================
| |
| BFont Library v.1.1.0 |
| |
===========================
Author : Diego Billi
e-mail : dbilli()cs.unibo.it>
home-page: http://www.cs.unibo.it/~dbilli
License : GPL or LGPL (at your choice)
Example:
1. Type "make"
2. Type "Test <font1.png> <font2.png>"
3. Type "oldTest <font1.png> <font2.png>" to see BFont old style
example.
Usage:
1. Load font information with LoadFont() function. See the 'Test'
example for details.
2. Now you can use the font in you SDL program.
Please, take a look at BFont.h to get info about the funtions.
Documentation:
1. Full documentation at:
http://www.cs.unibo.it/~dbilli/bfont/manual/BFontManual.html
FileFormat:
The font image file is the same used by SFont and DFont.
This mini-help is copied by "SFont README":
The font file can be any type image file supported by SDL_image
library.
The characters start with ASCII symbol #33. They are seperated by
pink(255,0,255) lines at the top of the image. The space between
these lines is the width of the caracter. Just take a look at the
font, and you'll be able to understand what I tried to explain here.
The easiest way to create a new font is to use the GIMP's Logo
function. Use the following string as text (ASCII 33-127 with
escape sequences and spaces between the letters):
! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? () A B C D E F
G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _ ` a b c d e f g h i j k l m n
o p q r s t u v w x y z { | } ~
Special thanks:
- Karl Bartel <karlb()gmx.net>
This library is base on his work and his SFont library.
- Dave Leimbach <leimbacd()bellsouth.net>
Some of his SFont library is include in my code.
|