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

2 REPLIES 2
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
Reel Rookie

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