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: 
squirreltown
Roku Guru

bitmap text

I need to draw several paragraphs of text into a bitmap. Is there any sort of text wrapping (chr(10) didnt work) for this or does each and every friggin line need to be separated and drawn separately? (I'm making a scrolling page of text)
Thanks
Kinetics Screensavers
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: bitmap text

ifDraw2D.DrawText draws only a single line. I previously posted this code to split a string into lines. After that you would just print each line in the returned array, incrementing the y position by the font's OneLineHeight for each line.

--Mark
0 Kudos
squirreltown
Roku Guru

Re: bitmap text

Thank you Mark, I was not able to find that when I searched, but i remember reading it.
Kinetics Screensavers
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.