I'm looking for a simple HTML Parser and a Layout Engine I can use to process simple html pages and let me do the actual rendering of the components of a page.
What I ideally need is a sort of component, or a piece of code, that digest Html content and call me back to do the actual painting myself, as atomic calls or events, like "DrawImage( imgFileName, Rect )", "DrawText( string, fontName, styles, rect)", "DrawRectangle( Rect, color )", etc. I need this because I want to render some simple html content inside a video surface along with 3d content, I have to use the functions of our 3d engine to output text and images, and I want to get rid of the parsing and layout of the html. Can I use a part of mozilla to do that? Do anyone knows about something else that could be of any help? thanks in advance. hcg.
