Android OpenTV Player SDK  4.23.3.1610362082
SubtitleText Class Reference

subtitle character attributes: color, opacity, font type and scale size More...

Public Member Functions

void setColor (int color)
 set subtitle character color More...
 
void setOpacity (SubtitleOpacity opacity)
 set subtitle character opacity More...
 
void setFont (SubtitleFontStyle font)
 set subtitle font family More...
 
void setTypeface (Typeface typeface)
 set Typeface to subtitle renderer; This is used when application uses the font type from system settings or customize the font type. More...
 
Typeface getTypeface ()
 get the Typeface that is using. More...
 
void setSize (float size)
 set font scale size to subtitle renderer. More...
 
float getSize ()
 get the font scale size More...
 

Detailed Description

subtitle character attributes: color, opacity, font type and scale size

Member Function Documentation

◆ getSize()

float getSize ( )

get the font scale size

◆ getTypeface()

Typeface getTypeface ( )

get the Typeface that is using.

Returns

◆ setColor()

void setColor ( int  color)

set subtitle character color

Parameters
color

◆ setFont()

void setFont ( SubtitleFontStyle  font)

set subtitle font family

Parameters
fontfont family

◆ setOpacity()

void setOpacity ( SubtitleOpacity  opacity)

set subtitle character opacity

Parameters
opacity

◆ setSize()

void setSize ( float  size)

set font scale size to subtitle renderer.

Parameters
sizefont scale size. the valid size is from SIZE_VERY_SMALL to SIZE_VERY_LARGE

◆ setTypeface()

void setTypeface ( Typeface  typeface)

set Typeface to subtitle renderer; This is used when application uses the font type from system settings or customize the font type.

Note, from system setting, we can't get font family name but Typeface.