It really depends on your use case. In the sample application I referred to in that thread, I used a bold label with a slightly larger font as a heading, along with a combination of labels (all of which use the same font) to render an address. The approach I suggested works well for this case, which is conceptually similar to using an <h1> tag followed by a <p> tag in HTML.
If you need to mix text styles within a paragraph (like a <span>), this approach probably won't work as well. That's where something like Flying Saucer might be more useful. On May 13, 2010, at 10:59 AM, JohnRodey wrote: > > Greg, > > I noticed a similar thread here: > http://apache-pivot-users.399431.n3.nabble.com/skin-vs-renderer-td784306.html#a784306 > > In this thread are you basically suggesting that instead of treating my text > in the textarea as one solid block I could treat all text up to bolded text > as a single label, then the bolded text as a single label, and the remaining > text as a single label? > > If so, Will the output look decent if it is paragraph form? > > Also what are the implications if it is a very long paragraph with many > bolded words? Is that going to eat the JVM memory much faster? > > Thanks > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/Adding-font-properties-to-a-TextArea-tp444141p815030.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
