SFML community forums
General => Feature requests => Topic started by: Robert42 on September 17, 2011, 05:58:09 pm
-
I don't know, whether this would fit to the idea of SFML.
An overlaodable CustomFont class we can use with a sf::Text object.
rough idea of usage:
class MyFont : CustomFont
{
sf::Font fnt;
void draw_character(UniCodeeChar char)
{
Texture t = fnt.GetTexture(char);
//handle offset seomehow
// draw green Circle around character
// draw t with red color, and scalred along y axis
// draw t with yellow Color
}
};
To achieve in this case something like this:
(image removed)
A more usefull case for this class could be rendering Text with custom glow or smooth shadow aor any other text effects
-
I don't think that real-time effects on text would be easily possible in SFML, but custom bitmap fonts may be implemented in the future:
http://www.sfml-dev.org/forum/viewtopic.php?t=5334
-
custom bitmap fonts may be implemented in the future:
http://www.sfml-dev.org/forum/viewtopic.php?t=5334
the custom bitmap fonts look like what I need. thx