Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lisakb140
Visitor

Specifying Font on RowLabel crashes channel

I am trying to specify a ttf font for the rowLabelFont field on a RowLabel node in my XML, but for some reason it is crashing my channel, following the advice here: https://forums.roku.com/viewtopic.php?t=97452

This is my node (rowLabelFont is towards the bottom):


<RowList
id="RowList"
itemComponentName="GridScreenItem"
focusBitmapBlendColor="0x494949"
focusFootprintBlendColor="0x494949"
translation="[0,0]"
numRows="3"[
itemSpacing="[15, 5]"
focusXOffset="[150,150]"
rowFocusAnimationStyle="fixedFocusWrap"
itemSize="[1380, 290]"
rowItemSize="[[1080,225]]"
rowHeights="[290]"
rowItemSpacing="[[40, 10],[40, 10]]"
rowLabelOffset="[[140, 18]]"
variableWidthItems="[true]"
showRowLabel="[false, true]"
showRowCounter="[false, true]"
animateToItem="1"
rowLabelFont="BarlowCondensed-Medium">
<Font role="font" uri ="pkg:/fonts/BarlowCondensed-Medium.ttf" size="24"/>
</RowList>


This is the same setup I use for my Label nodes, and this works fine for those.
WHen I deploy and my channel tries to open, it crashes immediately. I can't really see what the problem is here!!
0 Kudos
5 REPLIES 5
squirreltown
Roku Guru

Re: Specifying Font on RowLabel crashes channel

 rowLabelFont="BarlowCondensed-Medium">

Shouldn't this have "pkg:/etc." in front of it?
Kinetics Screensavers
0 Kudos
lisakb140
Visitor

Re: Specifying Font on RowLabel crashes channel

I tried that--what happens then is the text just doesn't render at all.
0 Kudos
squirreltown
Roku Guru

Re: Specifying Font on RowLabel crashes channel

That's a pretty big improvement over crashing immediately.
Kinetics Screensavers
0 Kudos
lisakb140
Visitor

Re: Specifying Font on RowLabel crashes channel

Haha, that is true! It crashes when I put the following inside my RowList node


<Font role="font" uri = "pkg:/fonts/BarlowCondensed-Medium.ttf" size="24"/>
0 Kudos
lisakb140
Visitor

Re: Specifying Font on RowLabel crashes channel

Got it!! I had to create a Font node in my brs and assign it to rowLabelFont there. All good!
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.