SFML community forums
General => Feature requests => Topic started by: Foaly on July 21, 2015, 11:36:44 am
-
Hi there,
I want to propose a feature that I think sf::Text is missing. Vertical spacing between characters (letter-spacing (https://en.wikipedia.org/wiki/Letter-spacing)).
It kept reappearing in a couple of my projects now, so I thought I suggest it. For example there are some fonts that I used of the web. They looks fine on a regular size, but if I scale them up to a very big or down to a very small size, the spacing between characters just doesn't look right anymore. The whole text looks streched/squeezed and it affects the readability (could also be used as an effect thought). It would be nice if you could counter that.
Besides that it would enable people to do bounchy/streching effects with text.
This is nothing excotic and users know this feature from software like GIMP/Photoshop, Word/LibreOffice or from CSS. It's just something you would expect from a multimedia library handeling text.
I have helped myself with a modified version of sf::Text in the past, so there is a tested code ready to go.
What do you guys think?
-
I think you should show your modified code, together with an example program. :-)
-
That's just an extra offset between glyph quads. Should be really straight-forward to implement.
-
Cool! Yeah that's what I did.
I will clean my code, document it, push it to a separate branch and send a pull request with an example. Maybe I'll have time to do it tonight.
-
Ok. As I promised: Cleaned and documented code in a seperate pull request (https://github.com/SFML/SFML/pull/928). :)
-
Thank you :-)