Description
Batik calculates the area behind text (e.g., for feFlood in a filter) by calculating a tight rectangle bound the character glyphs.
Chrome, Firefox and Edge all calculate a somewhat looser rectangle, including the full line height. Their behavior seems correct, as it results in a much more pleasing and intuitive effect when multiple text segments are filtered in one line of text.
Attached files:
- tqbf2-outer.svg - a file demonstrating this problem. This can be loaded directly in any current browser
- tqbf2.pdf - the results in Batik. This differs from the browser results.
Proposed fix:
https://github.com/deg/batik/commit/c0280311b692d5a43529c01a44450ad92fe692a9