|
Android OpenTV Player SDK
4.23.5.1618864129
|
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... | |
subtitle character attributes: color, opacity, font type and scale size
| float getSize | ( | ) |
get the font scale size
| Typeface getTypeface | ( | ) |
get the Typeface that is using.
| void setColor | ( | int | color | ) |
set subtitle character color
| color |
| void setFont | ( | SubtitleFontStyle | font | ) |
set subtitle font family
| font | font family |
| void setOpacity | ( | SubtitleOpacity | opacity | ) |
set subtitle character opacity
| opacity |
| void setSize | ( | float | size | ) |
set font scale size to subtitle renderer.
| size | font scale size. the valid size is from SIZE_VERY_SMALL to SIZE_VERY_LARGE |
| 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.