Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gpasq
Visitor

roImageCanvas: limit text to single line?

When drawing text on an roImageCanvas, it doesn't appear to honor the TargetRect height. Is there a way to limit the text to a single line without wrapping, and truncate the text at the targetrect width?
0 Kudos
1 REPLY 1
RokuJoel
Binge Watcher

Re: roImageCanvas: limit text to single line?

You could always truncate the text first before drawing it.

RokuMarkN published a bit of code earlier today on the forum that could be adapted for that purpose fairly easily.

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.