Home     Sign in    
Articles
2/2013
Minecraft!
8/2011
Subversion!
8/2010
A summer of accomplishments!
6/2010
Spring Happenings
4/2010
My Little Helpers
Archived News
(1) University of Michigan faces imminent lawsuit over Richard Spencer speaking event: Attorney
(2) Where have all the good women gone?
(3) Declining divorce rates reveal the urgent need for legal reform
(4) The End of Car Ownership
(5) Oklahoma 911 caller: Three people broke into my house; I shot two
Photo Archive
Browse by Folder
Browse by Calendar
Apps
Bubbles
JSON Parser
Neural Circuits
SIF Library

SIF Fonts

One day I decided I needed a solution for drawing text into an OpenGL scene.  I also needed fonts, and I happened across the Fancy Bitmap Font Generator.  After generating a bitmap font, I updated my Visual SIF application to cut out the individual pieces of the font and arrange them in a space-efficient layout.

Step 1 - Generate the font
Step 2 - Insert the font as a layer
Step 3 - Split the font by its background color
Step 4 - Auto arrange the layers

The easiest way to load the font is to embed the font as a resource and load it using the new sifLoadFont() API.  You can also load the font using other means and then call the sifCreateFontFromSIF() API.  Both APIs return an object of type ISimbeyInterchangeFileFont.  The DrawTextGL() method will draw textured quads at the current translation and rotation.  As a billboard, this is a great way to display text!

Return to the main SIF page.
© 2001-2017 Simbey.com