Skip to main content
Inspiring
Jan 15, 2009 6:19 PM UTC
Answered

Character/Paragraph formatting question

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 is closed to new replies. Start a new post to keep the conversation going.
tpf70Correct answer
Inspiring
Jan 18, 2009 5:23 PM UTC
I guess this issue was answered in the other thread regarding highlighting

4 replies

Participating Frequently
Feb 21, 2009 1:00 AM UTC
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>
Translate
Participant
May 6, 2009 9:13 AM UTC

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

Translate
Inspiring
May 6, 2009 4:21 PM UTC

Not in the 1.0 release but later.

Translate
tpf70AuthorCorrect answer
Inspiring
Jan 18, 2009 5:23 PM UTC
I guess this issue was answered in the other thread regarding highlighting
Translate