Pipan
11-10-2008, 10:53 PM
So, I have a <mx:Text> component. This is "populated" with htmlText from a webservice.
This html-text of course have tags like <p>, <h1> and <strong>
How do I create styles for these tags without destroyin the antialias?
Since I cant use StyleSheet-class on this component and I need to use a Replace-method in the Webservice:
output.Replace("h1", "<font size=15>");
And this freaks up my nice text (blury headers), and I cant use padding on those elements, and therefor have to add ugly <br> - tags before and after headers. Not nice.
Tell me there are better ways of doing this with flex?
I wanna use my project's css-file.
This html-text of course have tags like <p>, <h1> and <strong>
How do I create styles for these tags without destroyin the antialias?
Since I cant use StyleSheet-class on this component and I need to use a Replace-method in the Webservice:
output.Replace("h1", "<font size=15>");
And this freaks up my nice text (blury headers), and I cant use padding on those elements, and therefor have to add ugly <br> - tags before and after headers. Not nice.
Tell me there are better ways of doing this with flex?
I wanna use my project's css-file.