Your Digital Media Has Never Looked So Good

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

Specifying Font on RowLabel crashes channel

Thu Oct 11, 2018 8:59 am

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!!
 
User avatar
squirreltown
Posts: 836
Joined: Sun Apr 21, 2013 2:20 pm

Re: Specifying Font on RowLabel crashes channel

Thu Oct 11, 2018 10:22 am

 rowLabelFont="BarlowCondensed-Medium">

Shouldn't this have "pkg:/etc." in front of it?
Kinetics Screensavers
 
lisakb140
Topic Author
Posts: 28
Joined: Tue Aug 14, 2018 8:18 am

Re: Specifying Font on RowLabel crashes channel

Thu Oct 11, 2018 10:25 am

I tried that--what happens then is the text just doesn't render at all.
 
User avatar
squirreltown
Posts: 836
Joined: Sun Apr 21, 2013 2:20 pm

Re: Specifying Font on RowLabel crashes channel

Thu Oct 11, 2018 10:29 am

That's a pretty big improvement over crashing immediately.
Kinetics Screensavers
 
lisakb140
Topic Author
Posts: 28
Joined: Tue Aug 14, 2018 8:18 am

Re: Specifying Font on RowLabel crashes channel

Thu Oct 11, 2018 10:34 am

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"/>
 
lisakb140
Topic Author
Posts: 28
Joined: Tue Aug 14, 2018 8:18 am

Re: Specifying Font on RowLabel crashes channel

Thu Oct 11, 2018 11:02 am

Got it!! I had to create a Font node in my brs and assign it to rowLabelFont there. All good!

Who is online

Users browsing this forum: No registered users and 1 guest