lisakb140
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2018
02:14 PM
Changing Font on dynamically created Global String
I inherited a Roku project where Titles of sections are created in Brightscript via the following line:
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:
but that throws an error.
I also tried
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??
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??