Developers

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()
Tags (1)
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)
Tags (1)
0 Kudos
RokuMarkn
Visitor

Re: roScreen and roFontRegistry

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

--Mark
Tags (1)
0 Kudos
jeko0o
Visitor

Re: roScreen and roFontRegistry

Thanks a lot....TheEndless
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!