diff --git a/fpdf/fpdf.py b/fpdf/fpdf.py index 525b2e869..9c169b79a 100644 --- a/fpdf/fpdf.py +++ b/fpdf/fpdf.py @@ -2845,6 +2845,7 @@ def _start_local_context( "text_mode", "text_shaping", "underline", + "_font_style", ): setattr(self, key, value) else: