TimedText TextOutline?

Mar 23, 2011 at 5:24 PM

Hello,

Is the Text Outline property supported?

I've set p6:textOutline="black 2px 2px" in the .dfxp but it still shows without any outlining?

Thanks in advance!

 

Coordinator
Mar 24, 2011 at 12:46 AM
Edited Mar 24, 2011 at 12:46 AM

chrisjones, unfortunately, textOutline is not currently supported.

Here is the list of TTML styling attributes that are supported vs not supported:

Supported:

BackgroundColor
Color
Display
DisplayAlign
Extent
FontFamily
FontSize
FontStyle
FontWeight
LineHeight
Opacity
Origin
Overflow
Padding
ShowBackground
TextAlign
Visibility
WrapOption

Not supported:

Direction
TextDecoration
TextOutline
UnicodeBiki
WritingMode
ZIndex

Tim Greenfield

Mar 24, 2011 at 10:25 AM

Ok, Thanks for responding, Tim.

Do you know if there are any plans to support it? without outlining it makes it really hard to read captions.

Even though SL doesn't support text outlining natively I had good results using a second TextBlock with a DropShadowEffect.

Sep 5, 2012 at 4:50 PM

Hello Tim,

It seems that the writingMode is supported in the latest version of the framework. But, for some reason, I can't get the same result with my captions as I see on the w3.org:

http://www.w3.org/TR/ttaf1-dfxp/#style-attribute-writingMode

 

My xml is below (captions still goes from left to right, but horizontally):

<tt xml:lang="" xmlns="http://www.w3.org/ns/ttml">
  <head>
    <metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata">
      <ttm:title>Timed Text TTML Example</ttm:title>
      <ttm:copyright>The Authors (c) 2006</ttm:copyright>
    </metadata>
    <styling xmlns:tts="http://www.w3.org/ns/ttml#styling" />
    <layout xmlns:tts="http://www.w3.org/ns/ttml#styling">
      <region xml:id="r1">
          <style tts:extent="50px 570px"/>
          <style tts:origin="0px 0px"/>
          <style tts:padding="10px 3px"/>
          <style tts:backgroundColor="black"/>
          <style tts:color="white"/>
          <style tts:writingMode="tblr"/>
      </region>
    </layout> 
  </head>
<body region="subtitleArea">
  <div>
    <p region="r1" begin="0.76s" end="3.45s">It seems a paradox, does it not,</p>
    <p region="r1" begin="5.0s" end="10.0s">that the image formed on<br/>the Retina should be inverted?</p>
    <p region="r1" begin="10.0s" end="16.0s">It is puzzling, why is it<br/>we do not see things upside-down?</p>
    <p region="r1" begin="17.2s" end="23.0s">You have never heard the Theory,<br/>then, that the Brain also is inverted?</p>

  </div>    
</body>
</tt>

Is there something I'm doing wrong?

Sep 13, 2012 at 1:13 PM

I guess no news here, huh? :(

Sep 13, 2012 at 2:10 PM

I did a quick look through SMF source and a test, and indeed it should be supported but really isn't: I had a big vertical CC area with big horizontal text inside.

Have you tried setting the style on the caption presenter "by hand"?

Sep 14, 2012 at 8:58 PM

I'm not sure how this can be done, to be honest. By using RotateTransform you can rotate text, but it's not the same result as it can be seen here http://www.w3.org/TR/ttaf1-dfxp/#style-attribute-writingMode. One could use wrapping and tight captions area, but, it won`t work with multiple line captions.

 

Not sure what to do here.

Sep 17, 2012 at 8:52 AM

Ah, you're right, there's no easy setting to make text display in the 4 variations.

I guess you'd have to "render" it yourself, which is a painful thing to do...