Skip to main content
Known Participant
Mar 7, 2011 9:17 AM UTC
Question

Load External CSS in TextLayoutFramework

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Mar 7, 2011 9:33 AM UTC

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

Translate
Known Participant
Mar 7, 2011 11:00 AM UTC

Thanks A Lot!


Translate