View Issue Details

IDProjectCategoryView StatusLast Update
0006291New Feature RequestsGeneralpublic2018-09-22 18:59
ReporterLordAzamath Assigned To 
Status newResolutionopen 
Summary0006291: Getting GUI label's text height.

It would be great to be able to get GUI label's text height. Something similar to getting font height, but also taking into account newlines and wordwrapping, so label could be exactly as long as it is needed to be.

Current workaround is to keep wordwrap off and multiply font height with newlines' count, but in case of wordwrap it won't work.

Some function like guiLabelGetTextHeight(gui-label) perhaps?

TagsNo tags attached.



2011-07-29 18:27

viewer   ~~0014049

Last edited: 2011-07-30 10:34

i asked about this on the forum and got negative replies about this feature. I simply made own wrap function and with it i can get exact height and width of autimatically wrapped text


2011-07-30 08:34

viewer   ~~0014054

well I made something like that too.. like splitting into lines, then splitting words and calculating when doesn't it fit anymore and inserted newlines there, but it's kind of reinventing the wheel.

Issue History

Date Modified Username Field Change