>   <TextPane>
>     <t:Document>
>       <t:Paragraph>
>         <t:Span font="BOLD">
>           <t:TextNode>Capacity:</t:TextNode>
>         </t:Span>
>         <t:TextNode>something</t:TextNode>
>       </t:Paragraph>
>     </t:Document>
>   </TextPane>

I didn't implement support for styled text, but you should be able to do 
something along these lines. For the value of the "font" attribute, try 
"{bold:true}". That will apply the bold style to the current theme font. If you 
want to be more specific, you can also specify a name and size property, or you 
can use the format defined by java.awt.Font.decode().

FWIW, you could simplify your markup by declaring your Document node as follows:

<Document xmlns="org.apache.pivot.wtk.text">

That way, you don't need to include the "t" prefix on each sub-element.

G


Reply via email to