From f71f71d01336d02aeefe9dbfbfa8d681959d6ac9 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 7 Feb 2022 16:21:20 +0100 Subject: [PATCH] Amend 0789f2f2ae43 Use getFont() which considers fonts_default_family adjustments --- src/Paragraph.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index f178dd5eeb..48b8519cd7 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2539,9 +2539,10 @@ void Paragraph::latex(BufferParams const & bparams, pos_type body_pos = beginOfBody(); unsigned int column = 0; - // If we are inside an non inheritFont() inset, the outerfont is the default font + // If we are inside an non inheritFont() inset, + // the outerfont is the buffer's main font Font const real_outerfont = - inInset().inheritFont() ? outerfont : Font(bparams.documentClass().defaultfont()); + inInset().inheritFont() ? outerfont : Font(bparams.getFont()); if (body_pos > 0) { // the optional argument is kept in curly brackets in