Skip to main content
Inspiring
January 15, 2009
Answered

Character/Paragraph formatting question

  • January 15, 2009
  • 2 replies
  • 1079 views
I have looked through the specs for CharacterFormat and ParagrahFormat and I cannot find the concept of changing the background color of a FlowElement.

I have gone through the adornment code samples and understand that I can create grahic objects at specific locations, but I consider this a very poor replacement for actual styling.

If anyone has some thoughts or suggestions I would appreciate it.
Thanks,
Tim
This topic has been closed for replies.
Correct answer tpf70
I guess this issue was answered in the other thread regarding highlighting

2 replies

Adobe Employee
February 21, 2009
We recently added support for backgroundColor, backgroundAlpha. It is currently only implemented for spans in build 370. Here’s a TLF markup snippet showing usage.

<?xml version="1.0" encoding="utf-8"?>
<TextFlow lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns=" http://ns.adobe.com/textLayout/2008">
<p>
<span backgroundColor="16777011" fontSize="48">Testing </span><span backgroundColor="16777011" fontSize="48" backgroundAlpha="0.4">background</span><span backgroundColor="16777011" fontSize="48"> color.</span>
</p>
</TextFlow>
Participant
May 6, 2009

Is it intended to add backgroundcolor to divs and pars as well?

Adobe Employee
May 6, 2009

Not in the 1.0 release but later.

tpf70AuthorCorrect answer
Inspiring
January 18, 2009
I guess this issue was answered in the other thread regarding highlighting