pdf-raku / PDF-Content-raku

Basic PDF content editing and rendering support, including text, images, fonts and general graphics
Artistic License 2.0
2 stars 3 forks source link

Valign center and top are levitating single line values. #16

Closed dwarring closed 12 months ago

dwarring commented 1 year ago

The current behavior of valign seems strange when center or bottom is applied to a single line of text with it rising from the current text position.

dwarring commented 12 months ago

The real problem is the interaction between :valign and :baseline-shift which can both move the first line up and down by about a line. I'm redefining :valign to only affect vertical text flow of multiline text boxes, to remove the overlap.

dwarring commented 12 months ago

Fixed in 0.7.0 release. :valign now only affects multiple line text-boxes.