Use the same algorithm for rendering box cells and font based cells

Should make things easier to change in tandem in future.
This commit is contained in:
Kovid Goyal
2025-02-19 15:39:12 +05:30
parent 0c7dd7edb2
commit 2907999131
2 changed files with 42 additions and 45 deletions

View File

@@ -321,6 +321,7 @@ class Rendering(FontBaseTest):
block_test(full_block)
block_test(full_block, full_block, full_block, full_block, scale=2)
block_test(full_block, empty_block, empty_block, empty_block, scale=2, subscale_n=1, subscale_d=2)
block_test(empty_block, full_block, empty_block, empty_block, scale=2, subscale_n=1, subscale_d=2, horizontal_align=1)
block_test(full_block, full_block, empty_block, empty_block, scale=2, subscale_n=1, subscale_d=2, text='██')
block_test(empty_block, empty_block, full_block, empty_block, scale=2, subscale_n=1, subscale_d=2, vertical_align=1)
block_test(quarter_block, scale=1, subscale_n=1, subscale_d=2)