[
https://issues.apache.org/jira/browse/FOP-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523254#comment-17523254
]
Jon Schewe commented on FOP-2946:
---------------------------------
[[email protected]] thank you for the example. The text indeed shows up
as it should now. I notice that the blocks still have no size though. That
seems odd to me. I can see this by leaving the red and green borders in. I
would have expected the boundaries of the blocks to be around the text.
> Rotated text inside a table cell doesn't get sized properly
> -----------------------------------------------------------
>
> Key: FOP-2946
> URL: https://issues.apache.org/jira/browse/FOP-2946
> Project: FOP
> Issue Type: Bug
> Components: fo/block
> Affects Versions: 2.5
> Environment: >java -version
> openjdk version "1.8.0_252"
> OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
> OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
> >fop -version
> FOP Version 2.5
> Reporter: Jon Schewe
> Priority: Major
> Attachments: out.pdf, rotated-text.fo, test.fo
>
>
> In the attached file I have added the text "Gracious Professionalism" rotated
> 90 degrees spanning 6 rows of the table in the first column. I have added a
> red border to the block so that I can debug the sizing. The table cell is
> properly sized as can be seen by the black border. However the block in side
> the table cell doesn't appear to have any size.
> I can work around this by adding the following to the block tag.
> {code:java}
> inline-progression-dimension="138px" {code}
> However this requires me to be able to guess the amount of space required for
> the text. I've had some luck using {{Font.getWordWidth()}}, however that
> value is usually too small.
> Ideally I would like the block to have the same size as the containing cell
> and then the text be rendered within that area, wrapping if needed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)