Skip to main content
Known Participant
November 3, 2009
Question

span in p not taking to TextLayoutFormat

  • November 3, 2009
  • 1 reply
  • 513 views

Hi,

I have a layout like so:

<p>

   <span class="h1">Hello</span>

   some more text

</p>

I have an IFormatResolver which figures out the style for "p" and for "h1". The style that is returned from IFormatResolver.resolveFormat for <p> works correctly. However, styles for any spans inside of <p> do not have any effect. I can set size, color, fontFamily on <p> - that all works but nothing will take effect when I return a style for <span> in <p>.

Any insight is much appreciated

Matt

This topic has been closed for replies.

1 reply

Inspiring
November 4, 2009

try this:

<p>

   <span id="h1">Hello</span>

   some more text

</p>

and then in your CSS it would look like this:

@namespace tlf "flashx.textLayout.elements.*";


@font-face {
    src: url("/../assets/flash/EducationFonts.swf");
    fontFamily: GillSansBoldDF4;
}


#h1
{
    fontFamily:         GillSansBoldDF4;       
}

Does that help?

Adobe Employee
November 5, 2009

Can you provide a small sample that demonstrates the bug?

Thanks,

Richard