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: 
aleemaheer
Channel Surfer

Use custom fonts in scrollable text component

Jump to solution

I am using scrollable text component in xml to display the long text. In my text there are questions and answers, I want to display the question in bold format and answer in normal form.
Here is my xml component displaying dummy text

image.png

 

and here I am updating the text in brightscript
image.png

 

I want to bold the question, how can I do this?
Thanks in advance

0 Kudos
1 Solution

Accepted Solutions
joetesta
Roku Guru

Re: Use custom fonts in scrollable text component

Jump to solution

In the old days you'd need to create separate components to have distinct font styles, but now you should be able to use MultiStyleLabel

https://developer.roku.com/docs/references/scenegraph/label-nodes/multi-style-label.md

 

oh actually scrollableText doesn't support MultiStyleLabel (yet?) think you'd need to do something a bit more customized to do this.

aspiring

View solution in original post

6 REPLIES 6
joetesta
Roku Guru

Re: Use custom fonts in scrollable text component

Jump to solution

In the old days you'd need to create separate components to have distinct font styles, but now you should be able to use MultiStyleLabel

https://developer.roku.com/docs/references/scenegraph/label-nodes/multi-style-label.md

 

oh actually scrollableText doesn't support MultiStyleLabel (yet?) think you'd need to do something a bit more customized to do this.

aspiring
Rookai
Binge Watcher

Re: Use custom fonts in scrollable text component

Jump to solution

Has anybody found a complete solution for both scrolling and being able to use MultiStyleLabel?

0 Kudos
Rookai
Binge Watcher

Re: Use custom fonts in scrollable text component

Jump to solution

@joetesta I am wondering if you had any luck on this issue. Thank you.

0 Kudos
joetesta
Roku Guru

Re: Use custom fonts in scrollable text component

Jump to solution

Hi - as far as I know, this still isn't supported and you'd need to create a custom component to accomplish this.

aspiring
Rookai
Binge Watcher

Re: Use custom fonts in scrollable text component

Jump to solution

Thank you for your response. I will have to be creative, I guess!

 

Best,

R

0 Kudos
5188920598
Newbie

Re: Use custom fonts in scrollable text component

Jump to solution

Figures

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.