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

Author Topic: Bitmap Font  (Read 1622 times)

0 Members and 1 Guest are viewing this topic.

switlle

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Bitmap Font
« 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?

Daddi

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • http://foxdev.de/
    • Email
Re: Bitmap Font
« Reply #1 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

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Bitmap Font
« Reply #2 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.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor