Commit Graph

12 Commits

Author SHA1 Message Date
stasoid
def2684c1b fix VS warning 2024-05-20 00:40:31 +03:00
stasoid
28bbe74ec9 test_container: support TTF fonts 2024-05-20 00:40:31 +03:00
stasoid
218eb74ae8 make m and w more bold in terminus-16px-bold.yaff
They didn't look bold enough. There is no space, so I made m/w wider. This makes terminus-16px-bold.yaff a variable-width font, which may be confusing because normal weight variant is monospace. I also used this variable-width opportunity to improve NMW glyphs.

Rendering of css-box-justify-content.htm changed because width of nbsp is computed correctly now.
2024-05-20 00:40:31 +03:00
stasoid
6c4e6ef10a test_container: add terminus-16px-bold.yaff 2024-05-20 00:40:31 +03:00
stasoid
430d5a127f render_test: add ability to run standalone (without gtest) 2024-05-11 13:21:22 +03:00
stasoid
78ad19a0fd test_container: support nbsp 2024-05-04 23:31:55 +03:00
stasoid
1f812472a2 fix clang warnings 2024-04-11 13:27:30 +05:00
stasoid
3226d74add Add standard-compliant css parser 2024-04-09 10:12:46 +05:00
Yuri Kobets
d4453f5d4e Refactoring for zero warnings
Added compiler options: -Werror -Wall -Wextra -Wpedantic
2024-02-01 01:32:13 +03:00
stasoid
65645f9ac4 test_container: add more font sizes 2023-02-18 07:37:53 +06:00
stasoid
e8c0e3627a readfile: C -> C++ 2022-12-11 08:31:20 +06:00
stasoid
778a6e2c63 Add render tests
Render tests are .htm files in litehtml/test directory.
Tests starting with "-" are disabled.

Correct rendering is in corresponding .htm.png file.
To generate .png file, run ctest from litehtml/build. The test will fail
and create xxx.htm-FAILED.png file. Rename it to xxx.htm.png

One ASCII raster font with 3 sizes is supported, see litehtml/containers/test/fonts. This should be enough for tests.
Border painting is supported, only solid borders.
Backgrounds, images and list markers are not supported.
2022-12-11 04:20:48 +06:00