"EnTerr" wrote:
Ha - WTH is type "font", i wonder?!
"RokuKC" wrote:"EnTerr" wrote:
Ha - WTH is type "font", i wonder?!
Possibly https://sdkdocs.roku.com/display/sdkdoc/Font will help.
"EnTerr" wrote:
I am afraid not - can you elaborate how does one assign an XML element (which "Font" is) to an XML attribute (which "rowLabelFont" is)?
"RokuKC" wrote:
Your leopard-tracking skills are getting rusty. :roll: 😉
label = CreateObject("roSGNode", "Label")
font = CreateObject("roSGNode", "Font")
font.uri = "pkg:/fonts/sf.otf"
font.size = 20
label.font = font
<label id=title text="Just some title" />
You can declare a Font in a Label like this:
<Label> <Font id="IdYourFont" role="font" uri="pkg:/.../fonts/YourFont.ttf" size="40" /> </Label>
And use it in a RowList like this:
<RowList [...] rowLabelFont="dictionary:IdYourFont" />