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: 
jeko0o
Visitor

roScreen and roFontRegistry

Hi all ... I wonder if I can help ... I'm trying to combine objects and roFontRegistry roScreen ... I wonder if anyone knows how to format text (size, font, etc.) ... to Then leave the code that works for me but using the default font.


screen = createobject( "roScreen", false, 1280, 720 )

fontreg = createobject("rofontregistry")
font = fontreg.getdefaultfont()
tststr="jonh connor"
screen.DrawText(tststr,400, 400, &hFFFFFFFF, font)
screen.Finish()
0 Kudos
3 REPLIES 3
TheEndless
Channel Surfer

Re: roScreen and roFontRegistry

Take a look at the GetFont() method in the "BrightScript Language Reference" PDF that's included with the downloadable SDK. The online wiki version of the documentation doesn't appear to have the newer roFontRegistry methods documented.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
RokuMarkn
Visitor

Re: roScreen and roFontRegistry

Thanks for pointing that out. I'm updating the ifFontRegistry docs.

--Mark
0 Kudos
jeko0o
Visitor

Re: roScreen and roFontRegistry

Thanks a lot....TheEndless
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.