I've tried including this in my nodes:
Code: Select all
font="pkg:/fonts/font:Muli-ExtraLight.ttf"
but that doesn't work.
I've read that fonts need to be included in the fonts directory in a package file, following this example: https://sdkdocs.roku.com/display/sdkdoc/Font
Is there something I am doing wrong??
UPDATE:
I've also tried putting this directly in one of my .brs files
Code: Select all
[b]font[/b] = [i]CreateObject[/i]("roSGNode", "Font")
font.uri = "pkg:/fonts/font:Muli-ExtraLight.ttf"
but I get an Error message saying this is an invalid path!
My fonts directory is top-level, as in it's the same level as my components folder. I don't understand why this path would be invalid!!