Forum Discussion

fry19's avatar
fry19
Binge Watcher
2 months ago

Embedded font fails to load / regression

In a similar problem I had a couple years ago with embedded images, my free screensaver BPOD started not displaying the embedded font and instead display another font (which I assume is the default font).

This screenshot shows the correct/embedded font used:

 

This screenshot shows when the embedded font is not used:

 

Similarly to the other problem I had, my screensaver has not been changed or updated in a very long time and has worked flawlessly until this font problem started appearing a few weeks ago.

For the record I am using code like this to use the font:

      <Group id="copyrightGroup">
        <Poster uri="pkg:/images/bg_bottom_screen_720p.png" width="1920" height="1080" loadSync="true"/>
        <ScrollingLabel id="copyright"
               color="0x999999ff"
               scrollSpeed="50"
               horizAlign = "left"
               vertAlign = "bottom"
               text="© pongasoft">
           <Font role = "font" uri = "pkg:/fonts/DINCondensedBold.ttf" size = "36" />
        </ScrollingLabel>
      </Group>

It is just an embedded font.

It seems that it is a regression that was introduced in a Roku update since this has worked for years with no issue.

2 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert

    I just modified Roku's ScrollingLabelExampleto add an embedded font and even located a DINCondensedBold font to try and I don't see the problem on v14.6.5 build 9914.  I can't imagine that it has anything to do with a screensaver, but who knows?  Are you seeing it on different devices?  I could see it being a memory issue, but the font file is pretty small.  I had a strange problem on one particular (older) device that looked to be running out of memory and wasn't displaying all of the text on some screens (and it wasn't even using an embedded font), but a reboot fixed it and I haven't seen it since.

    P.S. - I assume you figured out the other strange problem.  What did it end up being?

  • fry19's avatar
    fry19
    Binge Watcher

    Thank you for giving it a try.

    I apologize for not having been clear enough in my description of the problem. When I mentioned that it was the same as my other problem, what I meant was:

    • there was never any modification in my code and the problem started appearing after a Roku update
    • the problem is random, meaning you start the screensaver and it works (meaning the proper font is displayed) and you start it some other time and it doesn't (meaning the "wrong" font is being displayed)

    The "other" problem was solved when Roku found a problem in their own code

    I really don't do anything fancy besides using <Font role = "font" uri = "pkg:/fonts/DINCondensedBold.ttf" size = "36" /> in my XML...

    Because my code has not been modified and the problem is random (most likely some race condition), I suspect, once again, this is an issue that Roku has introduced in their own code.

    My Roku is using 14.6.4 (and there is no update proposed to me). I have not tested on another device, but because it is random it is hard to reproduce "on demand". Also because the text is there, no users has reported the problem (because it doesn't look like a problem per se for a user).