Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to use custom images for Font Glyphs?  (Read 1855 times)

0 Members and 1 Guest are viewing this topic.

Tenry

  • Full Member
  • ***
  • Posts: 120
  • Experienced Programmer
    • View Profile
    • Simon-Burchert.com
How to use custom images for Font Glyphs?
« 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.
Please note that my previous display name was "Shy Guy".

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How to use custom images for Font Glyphs?
« Reply #1 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.
Laurent Gomila - SFML developer