Created attachment 161249 [details] bug.odt Character style (in this case 'OrgSuperscript' style) applied to a footnote definition is NOT honored. But ... the same character style applied to a footnote reference is honored correctly. If you note carefully, the size of the character style is honored, but not it's position. In a sense, the character style is getting applied in only partially. See attached bug.odt, and the screenshot of the rendering. Version: 6.4.4.2 Build ID: 1:6.4.4-1 CPU threads: 4; OS: Linux 5.6; UI render: default; VCL: gtk3; Locale: en-IN (en_IN); UI-Language: en-US Calc: threaded ~$ uname -a Linux debian 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) x86_64 GNU/Linux ~$ dpkg -l | grep writer ii libreoffice-writer 1:6.4.4-1 amd64 office productivity suite -- word processor ii libxml-writer-perl 0.625-1 all Perl module for writing XML documents ~$
Created attachment 161251 [details] Screenshot of how bug.odt is rendered on my machine
> Character style (in this case 'OrgSuperscript' style) applied to a footnote definition is NOT honored. Expected Behaviour: First, OrgFootnoteAnchor gets applied. Then OrgSuperscript is applied. I expect to see a superscript-ed anchor at the site of note definition.
This is not a bug. The configuration of footnotes (Tools->Footnotes and Endnotes) defines that footnote anchors use OrdFootnoteAnchor character style. You insert the footnote anchor, and apply character style OrgSuperscript *over the text including the anchor*. So the end result is this (in the absence of direct formatting, which would add to complexity): first, character formatting from paragraph is evaluated (taking e.g. font name and size); then character style of the text run is applied over that - overriding position ("Superscript") and relative font size; and lastly, the anchor field is processed, applying OrdFootnoteAnchor over the previous property set - which applies the only property present in the style: "Normal position", which replaces "Superscript" from OrgSuperscript. This is the intended and correct behaviour; if you need to customize your footnotes/endnotes, you need to use the mentioned dialog and set the style there.
> So the end result is this (in the absence of direct formatting, which would add to complexity): first, character formatting from paragraph is evaluated (taking e.g. font name and size); then character style of the text run is applied over that - overriding position ("Superscript") and relative font size; and lastly, the anchor field is processed, applying OrdFootnoteAnchor over the previous property set - which applies the only property present in the style: "Normal position", which replaces "Superscript" from OrgSuperscript. That was quick. Thanks for explaining how the styles are applied.