StringHeight
Posted: Tue May 13, 2025 4:11 am
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.
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.