SFML community forums

Help => Graphics => Topic started by: codinglexernewbie on July 11, 2022, 11:35:22 am

Title: is it possible to set individual glyphs size in sfml?
Post by: codinglexernewbie on July 11, 2022, 11:35:22 am
for example i have a glyph:'Σ' and i want to make it 30 by 50, how do i do that?
so in a string : aΣ3 where the character height is 40, i want the Σ to be 30
Title: Re: is it possible to set individual glyphs size in sfml?
Post by: eXpl0it3r on July 11, 2022, 11:55:28 am
It's not possible to size characters differently within on sf::Text instance.

Things you can do is use multiple sf::Text instances and calculate the positioning manually.
Or implement your own text rendering class (quite a bit of effort), which can handle such cases.