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) It’s not just you: New data shows more than half of young people in America don’t have a romantic partner
(2) Young men giving up on marriage, because ‘Women aren’t women anymore’
(3) Tinder and OkCupid have given up on finding you a soul mate. Their ads even admit it.
(4) University of Michigan faces imminent lawsuit over Richard Spencer speaking event: Attorney
(5) Where have all the good women gone?
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-2019 Simbey.com