[LyX/master] Fix font inside footnote inset

Kornel Benko kornel at lyx.org
Mon Feb 7 10:56:36 UTC 2022


Am Mon, 7 Feb 2022 11:49:10 +0100
schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:

> 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

With this applied, only examples/Modules/Hazard_and_Precautionary_Statements
fails. In all its variants.

The following tests FAILED:
	3116 - export/examples/Modules/Hazard_and_Precautionary_Statements_dvi (Failed)
	3117 - export/examples/Modules/Hazard_and_Precautionary_Statements_dvi3_texF
(Failed) 3119 - export/examples/Modules/Hazard_and_Precautionary_Statements_pdf (Failed)
	3120 - export/examples/Modules/Hazard_and_Precautionary_Statements_pdf2 (Failed)
	3121 - export/examples/Modules/Hazard_and_Precautionary_Statements_pdf3 (Failed)
	3123 - export/examples/Modules/Hazard_and_Precautionary_Statements_pdf5_texF
(Failed) Errors while running CTest

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220207/5be2993d/attachment.asc>


More information about the lyx-devel mailing list