SFML community forums

Help => Graphics => Topic started by: switlle on January 11, 2014, 10:44:38 pm

Title: Bitmap Font
Post by: switlle on January 11, 2014, 10:44:38 pm
Does SFML contains bitmap font classes? Or maybe any other third-party code.

I want to draw custom stylized text. Usualy for this tasks I used to use bitmap fonts.
But I can't find any sample that can realize this.

Do you now anything that can help me?
Title: Re: Bitmap Font
Post by: Daddi on January 11, 2014, 10:49:44 pm
Maybe I don't understand what you want to do, but whats wrong with the "simple" font system SFML provides? You can use it to load and render you own fonts. (eg. from http://www.dafont.com/bitmap.php)

A nice wrapper for this is the following RichText "Plugin":
http://en.sfml-dev.org/forums/index.php?topic=10764.0
Title: Re: Bitmap Font
Post by: zsbzsb on January 11, 2014, 11:15:24 pm
Bitmap fonts are glyphs that are pre-rendered to a texture (for example in photoshop with bevel/emboss) and then the textures are aligned to form strings on the screen.

No SFML does not provide any way to use bitmap fonts, but you can of course easily write your own class to do this.