aleemaheer
3 years agoChannel Surfer
Use custom fonts in scrollable text component
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
and here I am updating the text in brightscript
I want to bold the question, how can I do this?
Thanks in advance
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.