Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.5
-
None
-
None
-
Patch
Description
In my project I have to fill text in some fixed size area. This patch enable shrink text to fit block-container feature.
When a block-container is not auto height, and with a fox:shrink-to-fit="true" attribute, If the block overflows It will reduce the font size and line height to fit the block-container.
I'm not very familiar with the fop layout engine, this is a quick hack implementation, hope some one can improve it.
I also committed the modified version in GitHub.
https://github.com/chunlinyao/fop/tree/b1acf564afc9747546db6c386a0ae339e69f39e9