]> git.lyx.org Git - lyx.git/commit
Fix font inside footnote inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 3 Dec 2021 11:16:40 +0000 (12:16 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 31 Dec 2021 12:40:53 +0000 (13:40 +0100)
commit0789f2f2ae43742da200a27f10403f4c6a68713d
tree1c2af9fbefa84508d2b961c5a2b454945ad0dc87
parent77670bc9983392e32abb1cec236e5741b4d8c84b
Fix font inside footnote inset

An inset that resets its font (like Footnote) does not care at all
about enclosing font. Therefore the real starting point is the class
default font. This avoid cases where the footnote contents is forced
to \normalsize.

It turns out that the Greyedout note inset, did inherit font but was
declared as not doing it. This commmit changes the definition by
adding \normalfont\normalsize so that no inheritance happens.

Note that actually \normalfont resets everything but the font size.
This does not matter for footnote (which has its own font size) and
greyedout (which is fixed now), but may matter elsewhere. Also, I do
not know what the situation with HTML is.
lib/layouts/stdinsets.inc
src/LaTeXFeatures.cpp
src/OutputParams.h
src/Paragraph.cpp