How to change font style in Mediaroom PF application?

134 Views Asked by At

In mediaroom PF application how can we change the font. in below code

<mrml:TVLabel ID="value1" runat="server" **FontStyle="reg16"** 
            Foreground="argb(255,235,235,235)" Padding="rect(10,0,0,0)" 
            style="position: absolute; top: 45px; left: 0px; height: 88px; width: 250px;" 
            Text="-" >
1

There are 1 best solutions below

0
On

You can't. All you can do is use the predefined fonts available already on the STB/Simulator. The full list is in the files Styles.xml and Skin.xml.

You can find the definition like this:

  <!-- FONTs in the system -->
  <constant name="TVReg" value="fonts/SegoeAltMRSB.ttf"/>
  <constant name="TVBold" value="fonts/SegoeAltMRB.ttf"/>
  <constant name="TVItalic" value="fonts/SegoeAltMRSBI.ttf"/>
  <constant name="TVBoldItalic" value="fonts/SegoeAltMRBI.ttf"/>
  <constant name="TVHeader" value="fonts/SegoeAltMRB.ttf"/>

And them a lot of styles like that:

<font styleName="Bold16" fontFace="@TVBold" fontSize="16"/>