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

Changing ttml fontsize from the SDK

We have a common ttml for both mobile and ott devices. The fontsize is being set as 16px which is optimal for mobile devices. But 16px is too small for Roku. Is there a way to override this from the App and increase the fontsize before displaying closed captions?

eg:

<style xml:id="defaultSpeaker" xmlns:_="http://www.w3.org/ns/ttml#styling" _:fontSize="16px" _:fontFamily="Arial" _:fontWeight="normal" _:fontStyle="normal" _:color="white" _:backgroundColor="black" _:textAlign="center" _:origin="10% 85%" _:extent="80% 10%"></style>
              <style xml:id="defaultCaption" xmlns:_="http://www.w3.org/ns/ttml#styling" _:fontSize="16px" _:fontFamily="Arial" _:fontWeight="normal" _:fontStyle="normal" _:color="white" _:backgroundColor="black" _:textAlign="center" _:origin="10% 85%" _:extent="80% 10%"></style>
0 Kudos
Community is Temporarily in Read-Only Mode!

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. You will not be able to log in or post new comments or kudos 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 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!