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()

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.

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

–Mark

Thanks a lot…TheEndless