Commit Graph

6 Commits

Author SHA1 Message Date
Yuri Kobets
2d34cb9f09 fixed: elements with 'position:fixed' have issue with draw
* document_container::get_client_rect was renamed to get_viewport.
* updated draw_buffer class to handle fixed elements on scroll
2025-04-11 02:53:37 +03:00
Yuri Kobets
33f12ff153 render2png: Apply render settings from <file>.cfg file
The following settings can be applied:
width - force width to draw
height - force height to draw
bestfit - (true or false) Use false to disable "best fit" feature
2024-10-05 15:22:42 +03:00
Yuri Kobets
1e9d0be84b render2png: added url decode 2024-10-05 15:22:42 +03:00
Yuri Kobets
3dc2792560 render2png: fixed crash if content width/height is zero 2024-10-05 15:22:42 +03:00
Yuri Kobets
b889fa39e2 render2png: pass clip rect to the doc->draw 2024-10-05 15:22:42 +03:00
Yuri Kobets
78f08f3080 Tests update
1. Using container_cairo_pango for running tests.
2. Added Dockerfile to create docker container for building litehtml
   tests
3. Added script run_render_tests.sh to build litehtml tests in the
   docker container
4. Added render2png target (cmake -DLITEHTML_BUILD_RENDER2PNG). This
   utility allow to render html file into a png file.
5. Tests building are off by default.
   Use "cmake -DLITEHTML_BUILD_TESTING=ON" command to buid tests
6. Added container_cairo_pango::get_font_options. Overwrite this method
   to control fonts rendering.
2024-09-10 02:20:02 +03:00