Your Digital Media Has Never Looked So Good

Topic Author
Posts: 30
Joined: Tue Aug 14, 2018 8:18 am

Changing Font on dynamically created Global String

Wed Oct 10, 2018 2:14 pm

I inherited a Roku project where Titles of sections are created in Brightscript via the following line:

 row = [i]createObject[/i]("RoSGNode","VideoNode")

Those titles need to be in a specific font, and I'm not sure how to do that, as I'm not sure what (if any) attributes are available on Title.

I tried changing it this way:
font = createObject("roSGNode", "Font")
font.uri = "pkg:/fonts/font.tff"
row.Title.font = font

but that throws an error.

I also tried 

font = createObject("roSGNode", "Font")
row.Title.font.uri = "pkg:/fonts/font.tff"

to no avail.

because 'row' is a VideoNode, I'm wondering if I should be targeting that, instead of row.Title?

Does anyone know how to change this font, if that is even possible?? 

Who is online

Users browsing this forum: No registered users and 8 guests