Forum Discussion

lisakb140's avatar
lisakb140
Visitor
7 years ago

Changing Font on dynamically created Global String

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



 row = [i]createObject[/i]("RoSGNode","VideoNode")
row.Title = UCase("EPISODES AVAILABLE")


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?? 
No RepliesBe the first to reply