Jon Schewe created FOP-2946:
-------------------------------

             Summary: 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
         Attachments: rotated-text.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.3.4#803005)

Reply via email to