mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
Adds tests for BLF font drawing which currently has no tests: - blf.draw into pixel buffer. - blf.draw to a GPU buffer. - 3D text drawing. These are compared with reference images using idiff. - Tests fail if they don't match the images. - Tests fail if they don't match the expected dimensions. BLF bitmap drawing covers: - Combining characters. - Word wrapping. BLF VFont drawing covers: - Combining characters. - Word wrapping. - Colored materials. - Text boxes. - Horizontal & vertical alignment. - Text on a curve. To see the HTML output the Python scripts can be run with `--show-html` which generates a HTML showing the differences. Notes: - This misses tests for mono-spaced drawing as it's not available to Python. - The BLF/GPU code-path is not enabled as part of CTest (only VFont and BLF_buffer API's are included), because the GPU context is needed. These tests might need to use a graphical context like the UI tests do. Ref !157100 |
||
|---|---|---|
| .. | ||
| buffer_renders | ||
| noto_fonts | ||
| vfont_renders | ||
| Ahem.ttf | ||
| Roboto.ttf | ||