StringHeight

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

XLightningStormL
Posts: 394
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

StringHeight

Post by XLightningStormL »

Basically the vertical equivalent to StringWidth,

For example:
TESTSTRING =
"This is my big\n\n"
"extremely high\n\n"
"not really string";

Such a string can only get it's width easily with String Width, If I wanted to have a texture behind it that scaled to it. Only the width can easily be gained from StringWidth, as the height would be dependent on overcomplicated tricks, or manually defined height numbers that would have to be specified manually, and GetHeight() is not enough since it only cares about the actual font's height and not the string. A native method to get a string's height would be superior and more usable for the majority of ZScripters.

Ta-ta, and fare thee well.

Return to “Feature Suggestions [GZDoom]”