Commit Graph

9 Commits

Author SHA1 Message Date
Yuri Kobets
c33894eab4 fix: std::array is not defined in container_cairo_pango.cpp 2025-03-30 03:34:51 +03:00
Yuri Kobets
23751c1421 Support for text-decoration CSS properties
Supported properties:
* text-decoration (as shorthand for other text-decoration properties)
* text-decoration-color
* text-decoration-line
* text-decoration-style
* text-decoration-thickness

Changes in the container::create_font:
```litehtml::uint_ptr create_font(const font_description& descr, const document* doc, litehtml::font_metrics* fm);```

All font parameters are moved to the ```font_description``` structure.
2025-03-12 23:09:56 +03:00
Yuri Kobets
65128c39b3
Updated inline layout rendering (#389)
* Added subscripts/superscripts baseline shift to the font_metrics
* Improved rendering of inline elements with top and bottom vertical align
* Improved rendering of the line-height property
2025-03-07 17:30:32 +03:00
Yuri Kobets
071ce868ca pango container: fixed font height calculation and draw 2024-10-05 15:22:42 +03:00
Yuri Kobets
1514b1678d Added support for 'ex' and 'ch' units. Improved calculating x-height metric. 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
Yuri Kobets
b5ab35fa12 container_cairo_pango: select font from list of available fonts 2024-04-01 15:59:08 +03:00
Yuri Kobets
6249f6dd89 fixed: container_cairo_pango doesn't use specified fonts 2024-03-31 13:38:50 +03:00
Yuri Kobets
fe84eff36b Change location of containers
Now:
* cairo - contains cairo container
* windows - contains containers for windows
2024-02-24 00:20:45 +03:00