[jira] [Created] (FOP-2724) [PATCH] Shrink text to fit block-container
chunlinyao created FOP-2724:
Summary: [PATCH] Shrink text to fit block-container
URL: https://issues.apache.org/jira/browse/FOP-2724 Project: FOP
Issue Type: New Feature
Affects Versions: trunk
Attachments: block-container_no_shrink.fo, block-container_no_shrink.pdf, block-container_shrink.fo, block-container_shrink.pdf, shrink-to-fit.patch
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.