Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 10

how to use focusedTextFont in XML?

I have a button and I'd like to use a custom font included in the pkg:/ folder.  How can it be done without having to set the font object via brightscript?
I tried creating a node called "focusedTextFont" but it doesn't like that.  So I tried setting a node called "Font" (that birightscript would then have to set as the focusedTextFont) and it doesn't like a <font> node as a child on the button, nor by itself. 
I supposed it will work if the field is set to a system font, but is there any example of how to make it work with a custom included font?

BRIGHTSCRIPT: ERROR: roSGNode: No such field RenderableNode::font
0 Kudos