Home     Sign in    
A summer of accomplishments!
Spring Happenings
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
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-2018 Simbey.com