[Libreoffice-bugs] [Bug 137272] New: Superscripted font is cut off and line spacing increased when smaller block quoted text has footnote or endnote in it, due to use of one font size for all footnotes in document.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Oct 5 18:49:31 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=137272
Bug ID: 137272
Summary: Superscripted font is cut off and line spacing
increased when smaller block quoted text has footnote
or endnote in it, due to use of one font size for all
footnotes in document.
Product: LibreOffice
Version: 7.0.1.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: thuck777 at yahoo.com
Description:
Superscripted font is cut off and line spacing increased when smaller block
quoted text has footnote or endnote in it, due to use of one font size for all
footnotes in document.
While I realize this may be caused by a limitation of the .odt format itself,
given that it may not support saving different anchor text font sizes for
footnotes against different main document text sizes, there IS a way to program
a workaround, and that should be done. Simply look at the size of the
surrounding text (to the anchor text of the footnote) and if that surrounding
text is a smaller point size than the default text (e.g., of a document's main
body), then calculate the size and position of the superscript for the anchor
text (i.e., footnote or endnote indicator) to be proportionally smaller.
For example, if my main document text, in the Default style, is 11 points, and
that is the size used as the basis for calculating the footnote anchor text
size and position when it is superscripted in the main document, things are
fine. But as soon as my main document has a block quote of text that is say 9
points in its style, then when I place a footnote in that block quote or at the
end of it, LibreOffice 7.x calculates the size of the anchor text for that note
based upon the 11 point size of the anchor text style, and NOT based upon the
proper 9 point size of the actual document text being footnoted. Consequently,
the size of the anchor text in or at the end of the block quote ends up being
TOO LARGE and its position TOO HIGH, so that a) the top of the anchor
text-styled note number may be cut off AND the line spacing of the block quote
line containing the footnote is thrown off and made too large, messing up the
appearance of the document. That looks very poor and can be rectified with
slightly better programming that takes into account the point size of
surrounding document text (e.g., 9 points instead of the default 11 points).
The above has been a problem with Apache OpenOffice and LibreOffice from the
start, and has been a carried-over issue from the IBM Lotus Symphony days as
well. Given the LibreOffice strives to be a more polished product and even
compete to an extent against paid suites (e.g., Microsoft Office) this SHOULD
and CAN be fixed, regardless of any possible .odt file format limitation.
Steps to Reproduce:
1. Create a document with a default text size of 11, for example. Create a
paragraph using that default. Set the anchor text style for footnotes to use
the same font at the same 11 point size, as its basis for calculating the
superscript size and position of the note anchor text
2. Create a block quote with the same font but using a 9 point text size, and
place a paragraph of text in the document using that block quote. Then place a
footnote in or at the end of that block quote.
3. Having done step 2, you will notice that the line of text in the block quote
containing the footnote anchor text is a) misaligned with line spacing that is
too large for the block quote (e.g., when the latter is single spaced text) and
b) the footnote anchor text (e.g., "1" for the first footnote) will likely be
cut off at the top, showing only a portion of the "1", and that is because the
size of the anchor text and its superscripted placement are both being
calculated on the basis of the anchor text style for footnotes using an 11
point text size rather than the 9 point text size of the surrounding document.
Actual Results:
The footnote (or endnote if that's what's used) anchor text is too large and
cut off at the top when the footnote (or endnote) is placed in or at the end of
the block quote in the document.
Expected Results:
The anchor text for the footnote in the smaller-point block quote (which is 9
points rather than the 11 points of the default style) should be smaller and a
bit lower than corresponding anchor text for a footnote placed in the text
based upon the default style having an 11 point size. In other words, even a
note anchor placed in a block quote having a somewhat smaller point size than
the point size of the main document's text should NOT be cut off or cause the
line of text in which it's placed to have line spacing that is too large and
obviously different from the rest of the lines in the block quote.
Reproducible: Always
User Profile Reset: No
Additional Info:
No other information.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201005/fbc65796/attachment.htm>
More information about the Libreoffice-bugs
mailing list