How would I got about restricting the height/width of text based on the derma the text is contained in?
For example lets say I have
surface.CreateFont
and I set the size of this font to 32
then I tried to call that custom font later in a
draw.SimpleText
and I didn't want the text to be cutoff by a small derma.
How would I make it so that the text acts like smart text? So if the text is going to be cut off by the Derma the text resizes itself in order to not be cutoff by the Derma?
Panel/SetWrap or Panel/SizeToContents?
If you mean you want to resize the font so the size isn't 32 but something like 16, it's a bit more tricky. You could try using cam.PushModelMatrix (see the examples)
That's what I was looking for thank you! I'll see if I can't get it to work
Sorry, you need to Log In to post a reply to this thread.