1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BH 3.1.0 subtitle font change

Discussion in 'Black Hole General' started by Tamer10, Mar 9, 2022.

  1. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    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
     
  2. Thomas67

    Thomas67 Vip

    Messages:
    805
    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.
     
    Alexwilmac and Newworld like this.
  3. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    İ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>
     
  4. AlexWilMac

    AlexWilMac Moderator

    Messages:
    6,989
    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!
     
  5. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    @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.
     
  6. Thomas67

    Thomas67 Vip

    Messages:
    805
    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>
     
  7. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    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>
     
  8. Shiro

    Shiro BH-C

    Messages:
    1,835
    No this line will add only the option in setup but it will never work without the code in subtitles core files.
     
  9. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    @Shiro


    Can we write the necessary codes for both files?
     
  10. Shiro

    Shiro BH-C

    Messages:
    1,835
    No i suggested to migrate to Obh.
     
    Thomas67 likes this.
  11. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    @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>
     
  12. Thomas67

    Thomas67 Vip

    Messages:
    805
    Are you sure you are editing the correct skin.xml??
    What skin are you using ?

    But you should make the move to OBH anyway
     
  13. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    DarkSky-FHD

    First code not have in darksky skin.xml file,so I edited the file in the root directory skin.xml
     
  14. Thomas67

    Thomas67 Vip

    Messages:
    805
    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
     
  15. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    yes it is now,thanks

    then i tried openbh image, i didn't like it, back 3.1.0
     
    Thomas67 likes this.
  16. AlexWilMac

    AlexWilMac Moderator

    Messages:
    6,989
    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
     
  17. Tamer10

    Tamer10 Vu+ Newbie

    Messages:
    10
    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
     
  18. AlexWilMac

    AlexWilMac Moderator

    Messages:
    6,989
    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.