SFML community forums

Help => Graphics => Topic started by: Tenry on August 17, 2010, 09:07:30 pm

Title: How to use custom images for Font Glyphs?
Post by: Tenry on August 17, 2010, 09:07:30 pm
SFML uses the class Glyph to describe a single character a font has.
In the doc I see the attributes Advance, Rectangle and TexCoords, but I don't see any method with that I might add a custom glyph.

Is it possible to add custom glyphs to a custom font instead of loading a vector font like ttf?

I know SFML supports some bitmap font types, but I can't find much information or editors about them and additionaly I don't know whether those are only black-white formats or full color.
Title: How to use custom images for Font Glyphs?
Post by: Laurent on August 17, 2010, 09:11:51 pm
SFML doesn't support bitmap fonts at all, you can only load glyphs from font files.

If you want to display bitmap characters, use images and sprites instead.