I am using an open source .ttf font in an app that I developed and tested with an older series roku (e.g. Roku HD)
I am drawing text to a double buffered roScreen. Some of the rendered text is in my special font, other text is in the default system font.
On the older Roku, both fonts (and other simple graphics) work great.
However, when I run it on a newer roku (e.g. Roku 2 XS) the app runs without generating any errors (I see it executing with the expected "print" output on the telnet console), but it does not display anything in my special font. Text is rendered properly in the default font.
I understand that there are some model specific differences that need to be handled in code, but have been unable to identify anything specific for my circumstance.
I am creating the screen and font related objects as indicated here:
screen=CreateObject("roScreen", true, 1280, 720)
frg = CreateObject("roFontRegistry")
frg.Register("pkg:/fonts/Myspecialfont.ttf")
fonts = frg.GetFamilies()
font = frg.GetFont(fonts[0], 75, false, false)
I am drawing the text with commands like this:
screen.DrawText(myrow, ox, oy + (x * 75), color, font)
screen.Finish()
screen.Swapbuffers()
Any help would be appreciated.