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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.