<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 4, 2015 at 2:01 PM, Stefan D <span dir="ltr"><<a href="mailto:raptorjr08@gmail.com" target="_blank">raptorjr08@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Thank you for your help, but I am feeling really stupid. I can't get anything to work.<br><br></div>Since i don't know what font to use that have the Swedish characters I thought I should first get my semi transparent background.<br><br></div>Found an exampel from another theme that first did this:<br><shape name="grey_background" from="provider"><br>          <type>box</type><br>          <fill color="#000000" alpha="128" /><br></shape><br><br></div>Using mythfrontend -v vbi:debug I found out this:<br></div>The file used is  Location: /home/stefan/.mythtv/themes/Mythbuntu/osd_subtitle.xml<br></div>And the subtitle type used is:<br>GetFont(family=teletext, prefix=teletext, orig pixelSize=20, new pixelSize=20 zoom=100) = face=Liberation Sans pixelsize=20 color=#ffffff italics=0 weight=50 underline=0 shadow=0 shadowoffset=(0,0) shadowcolor=#000000 shadowalpha=255 outline=0 outlinecolor=#000000 outlinesize=0 outlinealpha=255<br></div></div></div></div></blockquote><div><br></div><div>OK, this would be the problem.  There's a big "Note" in <a href="https://www.mythtv.org/wiki/Osd_subtitle.xml" target="_blank">https://www.mythtv.org/wiki/Osd_subtitle.xml</a> that for the "teletext" family, the only part of osd_subtitle.xml currently used is the font name.  This restriction (or more accurately, why it's not yet implemented) is for a few reasons:</div><div><br></div><div>1. The teletext commands are pretty specific about setting foreground and background colors (and whether the background is transparent), making it hard to devise a way to selectively control some of the attributes.</div><div><br></div><div>2. Teletext has this interactive feature that other subtitle families lack.</div><div><br></div><div>3. Teletext has non-textual "mosaics" which are like low-res graphics.</div><div><br></div><div>That said, if the only customization you want (other than font choice) is to change the transparency level of subtitles marked as non-transparent, that would be much easier to fit into the existing model.  To hack it in the source code by hand, look in teletextscreen.cpp in TeletextScreen::SetBackgroundColor() for this line:</div><div>    m_bgColor.setAlpha((ttcolor & kTTColorTransparent) ? 0x00 : 0xff);<br></div><div>and change the 0xff value to 128 or whatever you like.</div><div><br></div><div>Going forward, it seems like background alpha, text shadow, and text outline may be properties that would make total sense to draw overrides from osd_subtitle.xml.  Maybe other properties as well.</div><div><br></div><div>Jim</div></div></div></div>