[LyX/master] Fix font inside footnote inset
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Mon Feb 7 10:49:10 UTC 2022
Le 07/02/2022 à 10:32, Jürgen Spitzmüller a écrit :
> Am Montag, dem 07.02.2022 um 10:23 +0100 schrieb Jürgen Spitzmüller:
>> Some observations: The issue here is that the class has SANS family,
>> but the document sets fonts_default_family == "rmdefault". Hence, in
>> Paragraph::getLayoutFont(), d->layout_->font and outerfont have
>> family
>> INHERIT, but bparams.getFont() has ROMAN, which is what the returned
>> font gets. It should get INHERIT as well, though.
>
> So I suppose the fix is to consider fonts_default_family for the
> real_outerfont in non inheritFont() insets, like the attached.
>
> Does this look correct?
Yes, it makes sense, I forgot about that.
JMarc
More information about the lyx-devel
mailing list