Results 40 comments of Yuri Kobets

Look at `el_text::parse_styles`, the el_text::m_size.height is set into font font_metrics::height. Used the font selected with CSS.

Yes, it is possible. Look at ``createFromString`` function: ``` C++ static litehtml::document::ptr createFromString(const tchar_t* str, litehtml::document_container* objPainter, litehtml::context* ctx, litehtml::css* user_styles = 0); ``` You can use both `user_styles` and...

Have you scaled the default font size in `document_container::get_default_font_size`? Although I'm not sure about this, but this is the only place where 16px is appears by default.

Please can you provide example html/css to show problem?

The 4th number in color is alpha channel. As you say it means "zero opacity" or 100% transparency. You can just ignore colors with zero opacity. Draw process is similar...

I guess you tell about your implementation of document draw. As I see this process, and you can see it litebrowser: 1. Before painting rendered document you should create buffer...

> But my original point was that every call to draw_background from el_image has a colour with zero opacity. Yes, but `background_paint` struct has two fields: `image` and `color`. You...

Could you attach the email source or html?

Tried to open the file you've sent me by email in the lite browser. I don't see overlapping text. I'll try to investigate liteHTML Claws Mail plugin sources.

Looks all right here. This is the definition of function render: `int litehtml::html_tag::render( int x, int y, int max_width, bool second_pass )` 3rd parameter is boolean and indicates the second...