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: 
imamonkey
Reel Rookie

Custom font for captions in a custom channel

According to this post

how to display chinese closed captions - Roku Community

it seems like changing fonts for closed caption could be possible if the font is included in the channel. I've included the ttf file and used it to change interface fonts but couldn't figure out how to change closed caption fonts. 

It feels like it should be done with the CaptionStyle attribute of the Video object but I'm not sure how to achieve it since "Text/Font" entry doesn't seem to accept arbitrary Font objects. Any help would be appreciated!

0 Kudos
3 REPLIES 3
philanderson777
Roku Guru

Re: Custom font for captions in a custom channel

have you tried according to 

https://community.roku.com/t5/Roku-Developer-Program/CaptionStyle/m-p/499570#p595085

m.videoplayer = m.top.findNode("video")
m.videoplayer.captionStyle["Background color"] = "Yellow"

 

0 Kudos
imamonkey
Reel Rookie

Re: Custom font for captions in a custom channel

Yes and this changes the background color of the subtitles. However, I wish to change the actual font to something like Arial for instance

0 Kudos
RokuBen
Community Moderator
Community Moderator

Re: Custom font for captions in a custom channel

Sorry, the Roku captions engine does not currently support using fonts other than the ones provided by the system.  You should contact Partner Success about your request.

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.