Add text boxing support#30
Conversation
|
E2E validation performed locally with the branch code: PYTHONPATH=src /opt/homebrew/opt/python@3.13/bin/python3.13 -m koubou.cli generate /private/tmp/koubou-text-box-e2e/config.yaml --output jsonGenerated PNG: Verified visually and with PIL pixel inspection:
Pixel inspection result:
|
|
Follow-up after visual E2E review: tightened text box bounds to use actual font bounding boxes instead of full line height, so the text sits visually centered in paragraph and character boxes. New E2E render generated with rounded character boxes: Validated again:
|
|
Adjusted after comparing against the original issue image. The earlier implementation treated
E2E comparison artifact generated locally: Latest validation:
|
|
Final semantic adjustment after comparing with the issue image: Updated modes:
E2E comparison artifact: Validation:
|
|
Added an explicit regression test for centered line-fragment boxing. The E2E comparison config now uses Centered E2E comparison artifact: Additional validation:
|
Summary
Closes #28
Testing
E2E validation
Notes