BH 3.1.0 subtitle font change

Tamer10

Vu+ Newbie
hi
We can choose the color and size from the subtitle settings, how can we change the font, for example with arial.ttf

I couldn't find this setting in any .xml file in the usr/share/enigma2/skin folder
 
First make sure you have the font file in your location
/usr/share/fonts/ on your box

arial.ttf is not a default font. So you must copy the font file your self to that location. Or else you will break your box.
When you are sure the font is in the correct folder. Open the skin.xml file of your choice.
Find this line: <font filename="tiny.ttf" name="Subtitlefont" scale="100" />
Change the tiny.ttf to arial.ttf and save.

Restart Enigma2 (GUI) and your subtile font is changed.
 

Tamer10

Vu+ Newbie
İn setup.xml file There is a choice of size and color, is it possible to choose a font by adding code ?

Code:
<setup key="subtitlesetup" title="Subtitle settings">

            <item level="0" text="Subtitle font color" description="Configure the color of the subtitles.">config.subtitles.subtitle_fontcolor</item>
            <item level="0" text="Subtitle font size" description="Configure the font size of the subtitles.">config.subtitles.subtitle_fontsize</item>
            <item level="0" text="Background color" description="Configure the color of the background of subtitles.">config.subtitles.subtitle_bgcolor</item>
 

AlexWilMac

Moderator
I think Thomas has answered your question: have you tried it? Even if it was possible to add the line when you say, what would be the difference? You should any way change a line!
 

Tamer10

Vu+ Newbie
@Thomas67
@Alexwilmac

I added it to arial.ttf fonts folder
after edit skin.xml
restart enigma2 but not change font

then I tried another font that was already in the fonts folder and it still didn't work.
 
Sorry. You have to find this screen in skin.xml

<subtitles>
<sub name="Subtitle_TTX" font="Regular;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Regular" font="Regular;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Bold" font="Replacement;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Italic" font="Regular;50" shadowColor="#40101010" shadowOffset="3,3" />
</subtitles>

Now change to this


<subtitles>
<sub name="Subtitle_TTX" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Regular" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Bold" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Italic" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
</subtitles>
 

Tamer10

Vu+ Newbie
Thanks,I'll try when I get home tonight

Can we make the font selectable by adding a code between the codes below?

setup.xml
Code:
<setup key="subtitlesetup" title="Subtitle settings">

            <item level="0" text="Subtitle font color" description="Configure the color of the subtitles.">config.subtitles.subtitle_fontcolor</item>
            <item level="0" text="Subtitle font size" description="Configure the font size of the subtitles.">config.subtitles.subtitle_fontsize</item>
            <item level="0" text="Background color" description="Configure the color of the background of subtitles.">config.subtitles.subtitle_bgcolor</item>
 

Shiro

BH-C
Thanks,I'll try when I get home tonight

Can we make the font selectable by adding a code between the codes below?

setup.xml
Code:
<setup key="subtitlesetup" title="Subtitle settings">

            <item level="0" text="Subtitle font color" description="Configure the color of the subtitles.">config.subtitles.subtitle_fontcolor</item>
            <item level="0" text="Subtitle font size" description="Configure the font size of the subtitles.">config.subtitles.subtitle_fontsize</item>
            <item level="0" text="Background color" description="Configure the color of the background of subtitles.">config.subtitles.subtitle_bgcolor</item>

No this line will add only the option in setup but it will never work without the code in subtitles core files.
 

Tamer10

Vu+ Newbie
@Thomas67

edit skin.xml file and attach impact.ttf file to fonts folder,restart vu+,not change sub font

Code:
<fonts>
<font filename="tiny.ttf" name="Regular" scale="100"/>
<font filename="ae_AlMateen.ttf" name="Replacement" scale="100" replacement="1"/>
<font filename="impact.ttf" name="Subtitlefont" scale="100"/>
<font filename="tuxtxt.ttf" name="Console" scale="100"/>

Code:
<subtitles>
<sub name="Subtitle_TTX" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Regular" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Bold" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Italic" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
</subtitles>
 
Are you sure you are editing the correct skin.xml??
What skin are you using ?

But you should make the move to OBH anyway
 
Okey that explains it all :)

I forgot that Army did not use the extra font parameter for subtitles
<font filename="impact.ttf" name="Subtitlefont" scale="100"/>

So open the skin.xml in folder DarkSky-FHD file and add the line to the <font> parameters

Then change to if you have not done it yet
<subtitles>
<sub name="Subtitle_TTX" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Regular" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Bold" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Italic" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
</subtitles>

Now restart and you should be able to play with the subtitle fonts
 

Tamer10

Vu+ Newbie
Okey that explains it all :)

I forgot that Army did not use the extra font parameter for subtitles
<font filename="impact.ttf" name="Subtitlefont" scale="100"/>

So open the skin.xml in folder DarkSky-FHD file and add the line to the <font> parameters

Then change to if you have not done it yet
<subtitles>
<sub name="Subtitle_TTX" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Regular" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Bold" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
<sub name="Subtitle_Italic" font="Subtitlefont;50" shadowColor="#40101010" shadowOffset="3,3" />
</subtitles>

Now restart and you should be able to play with the subtitle fonts

yes it is now,thanks

then i tried openbh image, i didn't like it, back 3.1.0
 

AlexWilMac

Moderator
Yes, it's typical: people try an operative system for 5 minutes and they know all its features, functions, possibilities. In 5 minutes you can see only how it looks.
You have absolutely no idea how much customizations and comfy features you have in the OPEN OBH compared to the "closed" BH.
As I always say, BH was my first love, but life goes on. In case you want to read something (not everything, because since I wrote this article, OBH has improved a lot) you can read this:

Why I prefer OBH (now): just my personal view
 

Tamer10

Vu+ Newbie
Yes, it's typical: people try an operative system for 5 minutes and they know all its features, functions, possibilities. In 5 minutes you can see only how it looks.
You have absolutely no idea how much customizations and comfy features you have in the OPEN OBH compared to the "closed" BH.
As I always say, BH was my first love, but life goes on. In case you want to read something (not everything, because since I wrote this article, OBH has improved a lot) you can read this:

Why I prefer OBH (now): just my personal view

You're right in what you say, but I'll tell you why I removed it obh. I installed jedixtream, although the channels were installed, the iptv channel list did not come, then I tried it with putty, the channel list did not come , I edited the favorite list for the satellite channels, but then it disappeared, the favorite bouquets did not appear in the channel list when I pressed the blue button, I got angry, I removed the obh
 

AlexWilMac

Moderator
Is this jedistream a python2 old plugin? Because the world of enigma2 images has moved on and BH is going to die.
I've been using OBH since its 0.4 release and made it my main image since its 0.6 release (so, at least 5 years?) and never had any "disappearing" of bouquets or anything, not even when it was a sort of beta release. This means it must've been a wrong manoeuvre of you to cause the problem.
Or maybe, too, the not designed for OBH skin you use, which is the most likely explaination. We have plenty of beautiful skins by Matrix10, unique ones no other image have. And skins are not just blankets to put on your image: they are strongly liaised to the image and heavily interact with them.
I'd use the great opportunity of OMB (openmultiboot) to have more time to test it without the need of flashing and reflashing your box.
 
Top