![]() | Logo by invent (anonymous IP: 216.73.216.126,2408) | |||||||||||||
| ||||||||||||||
Audio (347) Datatype (51) Demo (204) Development (609) Document (24) Driver (98) Emulation (153) Game (1027) Graphics (510) Library (119) Network (236) Office (67) Utility (939) Video (72) Total files: 4456 Full index file Recent index file
Amigans.net Aminet IntuitionBase Hyperion Entertainment A-Eon Amiga Future
Support the site
|
===========================
| |
| 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.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright © 2004-2025 by Björn Hagström All Rights Reserved |