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

            Bug ID: 170490
           Summary: Negative font size difference is wrongly written to
                    file
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 205182
  --> https://bugs.documentfoundation.org/attachment.cgi?id=205182&action=edit
Styles with font size difference

Open attached document.
It has a paragraph style "Minus3pt", that has style "Text body" (Body Text) as
parent and a relative font size defined as "-3pt".
It has a character style "minus8pt", that has style "Char18pt" as parent and a
relative font size defined as "-8pt".
That works in the UI of LibreOffice.

But now look into the file markup. You will find style:font-size-rel="65533pt"
and style:font-size-rel="65528pt". It should be style:font-size-rel="-3pt" and
style:font-size-rel="-8pt". Apparently there is signed-unsigned-error in
reading and writing.

Word is not able to handle style:font-size-rel. Thus the error is not visible
in that filter.
The error becomes visible, when you export the file to XHTML.

This property is "CharDiffHeight" in the API with data type float. You see the
wrong values 65533 and 65528 too, when you inspect the document with the
Development Tools.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to