https://bugs.documentfoundation.org/show_bug.cgi?id=120525

            Bug ID: 120525
           Summary: percent linespacing <100% bug with fonts with big
                    descent
           Product: LibreOffice
           Version: 5.4.5.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 145624
  --> https://bugs.documentfoundation.org/attachment.cgi?id=145624&action=edit
font with big descent

If font have "big" descent values, setting linespacing percent has no effect
until a certain value.
to reproduce :
- use the attached font (descent=646 ascent=963)
- write some text, and try to set linespacing to 90% => no change
- changes can be seen for percents < 80%

This doesn't happen with version <5.4.
git Bisecting show that the regression start with this commit :
https://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-6-0&id=81827ab543d27af82dd7b432f860bf1c473508dc

I don't understand all the mechanisms behind the code, but the culprit is
clearly in this line : if ( !nAscent || nAscent > nNewAscent )

As I'm not familiar at all with libreoffice code, I have done a "minimal"
patch, just to avoid the regression and so the bug #114628 stay fixed by just
applying the new code path for the first line and revert back to the old code
path for the others.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to