LibFB

From GameBrew
Revision as of 14:34, 28 July 2021 by HydeWing (talk | contribs)
LibFB
File:Libfbsampleds.png
General
Author(s)DragonMinded (Shaun Taylor)
TypePC Utility
Version20 Nov 2007
LicenceMixed
Links
[Media:Libfb.zip Download]
Website
[Media:Libfbdssrc.zip Source]
Advertisements

<htmlet>adsense</htmlet>


LibFB is a set of routines that display wordwrapped variable width fonts using the DS extended rotation buffer mode on both screens.

This library also does not need c++.

Features

  • Clipped and wordwrapped fonts.
  • Automatic cursor display.
  • Normal & compressed custom software sprites.
  • Customizing said functions.
  • Base on rtf or html editor.
  • Can be rendered to an arbitrary buffer to both screens in a managed mode.

User guide

Sample - Sample (.nds and .ds.gba) and source.

Demo: - happycat.nds, happycat.ds.gba and source.

Screenshots

File:Libfbsampleds2.png

Changelog

2007/11/20

  • Added orientation feature to both screens. Fixed some minor bugs.

2007/9/25

  • Added select feature, fixed a cursor bug, some minor speed improvements.

2007/4/27

  • Many optimizations to the sprite and text engine resulting in much faster code.

2007/1/13

  • Fixed the last wordwrapping bug in the text rendering engine and optimized it a bit. Also, separated the code so features not used will not be compiled in for smaller executables. Also, the font tool has been updated to support new characters, and a new fixed width font has been included in the fonts collection. The libfb.h file now includes documentation on the libFB API for any wondering exactly how to use it.

2006/9/16

  • Changed the font functions to support any character from 32-254 on the ascii chart (255 is reserved, anything under 32 is too). Also deleted the setOldFont routine as it was horrible. Also, updated the toolsets.

2006/8/07

  • Changed some functions so that you can pass a font directly instead of setting the font first, added in setOldFont, a few general improvements and such. All fonts included in the font rar are also properly compressed so as to save you space in your executable.

2006/6/21

  • I've forgotten what all I've added and improved in this version, but it includes support for bold, underline and italics. Also, fixes a few small bugs I've found, and improves cursor management.

2006/2/23

  • A few new functions available, vast improvement to font rendering engine that takes care of some wordwrapping issues, adds in managed cursors, and adds in ability to display umlats and accented characters to some extent. Also fixes random crash bugs due to undisplayable characters. New dsfont.exe as well to generate the extended fonts. Check it out as it is a vastly improved version.

2006/1/29

  • Added in several cursor functions and the ability to change the font on the fly. Also in this release is a font creation utility to aide you in getting your favorite fonts in your program. Also refined some functions and added a hollow rectangle drawing function.

2006/1/15/

  • A few new things in this update. First, consolidated a few functions that did not need to have duplicates, such as character width, height, etc... Also added functions that allow you to supply a raw buffer and use the sprite and wrapped text functions on your own 15bit color backgrounds. Also added the ability to draw text or sprites inverted.

2005/10/13

  • Have been sitting on this update for awhile, but decided to release it, seeing as the DS Text editor requires it to run properly. This release includes built in display for pallated sprites. This allows you to save space by compressing your sprites to achieve up to around 80% savings. Also, finally made the tools for converting sprites available online.

2005/8/25

  • MAJOR improvements to libfb including hardware fix for the clear rpg boxes. This is now a quite usable library and you are all encouraged to make use of it in your homebrew programs.

2005/8/12

  • Updated to show off multiple screen capabilities.

2005/8/07

  • Updated arm9.c to not include the framebuffer library and created the necissary library files to link to libfb.

2005/8/05

  • Updated make process to run with new r15 of devkitpro and new libnds. Also runs with just standard make command now.

2005/8/04

  • Updated sources with a dispChar function, and a few more graphics for the font.

2005/8/02

  • First release posted.


Advertising: