From e1445dba4508b79f079655232bcead313fce85a3 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 2 Mar 2016 18:06:14 +0100 Subject: [PATCH] Updated How To: Using SpriteFonts (markdown) --- How-To:-Using-SpriteFonts.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/How-To:-Using-SpriteFonts.md b/How-To:-Using-SpriteFonts.md index be0bcfd..9cd65a0 100644 --- a/How-To:-Using-SpriteFonts.md +++ b/How-To:-Using-SpriteFonts.md @@ -1 +1,17 @@ -TODO. \ No newline at end of file +raylib 1.4 supports AngelCode sprite fonts (BMFonts). + +BMFonts can be created using different programs. The better one is the official Bitmap Font Generator from [AngelCode.com](http://www.angelcode.com/products/bmfont/). Just download and install. + +raylib requires the .png file together with the .fnt text file (not binary) placed in the same folder. + +Alternatively, it's possible to use the web tool [Littera](http://kvazars.com/littera/) to generate BMFonts but due to some differences with original software, some exported fonts could not work with raylib. + +The following export options for Littera are recommended: + +* Included glyphs: Presets: **Basic** +* Format: **Text (.fnt)** +* Canvas size: 256 or 512 or 1024 +* Power of 2 enabled +* Pack method: **7** + +Enjoy using SpriteFonts with raylib! \ No newline at end of file