g.drawFittedText
-
I've added a wrapper for JUCE's drawFittedText function so that we don't have to use labels when we want to display tidy text within a panel, we can now do it directly in a paint routine.
-
@d-healey Yezzz! I've been longing for this :)
Did it not work a long time ago? -
@ulrik said in g.drawFittedText:
Did it not work a long time ago?
This function was never available in HISE as far as I know.
-
@d-healey what I mean is when using
text and a lot of it"\n"more text in another line....
-
@ulrik That's what I tried at first but it doesn't work, also you have to put the spaces in manually and it won't auto adjust for different size areas.
HiseSnippet 900.3ocsUEtaaaCDlxIpH1csXEXO.D9Wx.oF1acsCnXXIwIYwXModyYECXEnfghVhHTjpjmRpQQA1yXeR5aP2QIaK4M2hAiU8CAc22cje732cZh0vENmwRBZe47bAI3qBmNWCoiRYRMY7wjfNgf3M.Hb.4n44LmSDSBB14m83As2kT97ge5Hlho4hZWDxKLRt3YxLIT6cxA+hToNkEKtTl0H5GcvXtQOxnLEHW1Ib.ImwulkHtf4CqUHI3NmDKAicJvPxPB18HS77oola0Uw+BoSdkR3MFRlhKTk6SMpXOi8dIiRkp3IKOyNBtJSpq.6TUA9lvykwxU9qqDecI.sNil0ifVqSucVidCaRuAMn2FnTPCJsaEkdP3TtUlC0Hd9b2vwZPXmwvxdSpTEKo08aENxfQng9YrqEmZQiUYD83AC1mhu58zNcvRuCn96Y5OR6NUDSK.Ztv5xkbICjNZgNVPMYZ7SoCDTMCJbuz9RMUXsFK0IA5MFUQt+3mQYbdgioAYQFMFOrVQ1qKD86tZutgYoSXZgZHtiKYYh.FYxxMZzHpaEbWO+p9ruS.SvKC32LEfTKhlUn4fzniR504scZmzeFpsNTohfToyuZQcuJoRS0sGtNs8w37ah2Uin7m7lwkzO1xt8PkLQKhuDAi7QrOcYFOyvYpiLXQwEMn29ztJwLvyz206oKIE0nuv.hmqiJIWm20g9OglMaiX9xg0nTB6Fg8MN1OWhQ5hrqD18whrpPrJPTMstDM7SKQa1AwqtcZDnQOVKgmmKzep9JxhqT7qee7wLf400K7gwgRKP5oPvwhavgDUp71gGKbWCl7xX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