How can I change the subtitle color and font for the Skin?

sspol

Vu+ User
hi to all

New images Black Hole in the film that I'm playing through USB flash srt To change the font and color tell you exactly where it is possible to manipulate my skin?
Of course I change the font and color of the plug-in subtitle should be possible
but I will change font and color srt that is playing from usb
 
Be aware! Backup the original files before editing!


For color:
/usr/share/enigma2/skin.xml:

Code:
<subtitles>
<sub name="Subtitle_TTX" font="titles;34" foregroundColor="#e8f00c" shadowColor="#000000" shadowOffset="3,3" />
<sub name="Subtitle_Regular" font="titles;34" foregroundColor="#e8f00c" shadowColor="#000000" shadowOffset="3,3" />
<sub name="Subtitle_Bold" font="titles;34" foregroundColor="#e8f00c" shadowColor="#000000" shadowOffset="3,3" />
<sub name="Subtitle_Italic" font="titles;34" foregroundColor="#e8f00c" shadowColor="#000000" shadowOffset="3,3" />
</subtitles>

#e8f00c means yellow. Change whatever color you want. For more:
http://www.colorhexa.com/color-names


For the font:
My default skin font was "TiresiasScreen Font". Never mind the font name. It is titles.ttf in the folder "/usr/share/fonts"
Choose your font and rename it as "titles.ttf" and send it to "/usr/share/fonts"

I hope I could help you.
 
For the font:
My default skin font was "TiresiasScreen Font". Never mind the font name. It is titles.ttf in the folder "/usr/share/fonts"
Choose your font and rename it as "titles.ttf" and send it to "/usr/share/fonts"
Nice hint!

However you should know that fonts can be freely added or reassigned within the skin.xml using the tag <fonts>
For example you can add your font to the standard ones already included in BH:

<fonts>
<font filename="nmsbd.ttf" name="Regular" scale="100"/>
<font filename="ae_AlMateen.ttf" name="Replacement" scale="100" replacement="1"/>
<font filename="tuxtxt.ttf" name="Console" scale="100"/>
<font filename="titles.ttf" name="titles" scale="136"/>
<font filename="my-new-font.ttf" name="the-name-you-like-to-be-used-in-skin" scale="100"/>
</fonts>


Put the new TTF font file in /usr/share/fonts

Now you can use "the-name-you-like-to-be-used-in-skin" wherever you like within the skin.xml file, and so you don't have to rename or replace original BH font files (that is not advisable).

The scale parameter (in percentage) can be used to increase or reduce the relative size of the font.
 
Back
Top