0

Bright script using scene graph. i want to change size of default font without Font node. I used "SmallestBoldSystemFont" font. It appears large font then actual require size.

  <PosterGrid 
  id = "example"   
  basePosterSize="[150,150]"
  itemSpacing="[27,27]"
  caption1NumLines="2"
  caption1Font = "font:SmallestBoldSystemFont"
  numColumns="10"
  numRows="1" />
Raj G
  • 73
  • 8

2 Answers2

3

As you can see in docs caption1Font field accept Font object, so you have to create an object and just set the role for that font:

    <PosterGrid
        id = "example"
        basePosterSize="[150,150]"
        itemSpacing="[27,27]"
        caption1NumLines="2"
        numColumns="10"
        numRows="1">
        <Font role="caption1Font" size="15" uri="font:SmallestBoldSystemFont"/>
    </PosterGrid>
0

Using Font Node. you can change any component Font Like Below.

First Scenario :

Here you can download ttf file from google and add it in your application. Here change Size in Pixel Wise.

<Label>
  <Font role = "font" uri = "pkg:/fonts/font.ttf" size = "24" />
</Label>

Second Scenario:

You Can Change Font write inside a Component Like below. Here Different Size Provide By Roku documentation.

<Label id = "test"
  font = "font:MediumBoldSystemFont" 
  />