Skip to main content
Known Participant
March 7, 2011
Question

Load External CSS in TextLayoutFramework

  • March 7, 2011
  • 1 reply
  • 752 views

Hi

     I am creating an application using textLayout framework,

I want to use external css for styles but I don't know how to do this, So please let me know how to use external css in textLayout framework

Warm Regards :

This topic has been closed for replies.

1 reply

March 7, 2011

You need to use a CSSFormatResolver class, where you have a stylesheet object having your styles and then assign the instance of this CSSFormatResolver class to the formatResolver property of your Text Flow and then do the processing of each FlowElement accordingly.

Look for TLF samples given on the soureforge link of Text Layout Framework.


Hope that helps,

Eshaan

Known Participant
March 7, 2011

Thanks A Lot!