KOMA 스크립트 "pageheadfoot" 글꼴이 \sffamily를 사용하지 않음

KOMA 스크립트 "pageheadfoot" 글꼴이 \sffamily를 사용하지 않음

나는 몇 달 동안 문서를 타이핑해왔고 scrreprt 클래스를 사용하고 있습니다. 방금 산세리프체였던 헤더 글꼴이 코마 글꼴 "pageheadfoot"이 명령을 받아들이지 않기 때문에 다시 세리프체로 되돌아갔다는 사실을 발견 \sffamily했습니다 \ttfamily. 나는 문제를 이 MWE로 축소했습니다.

% !TeX TS-program = lualatex
% !TeX encoding = UTF-8
% !TeX spellcheck = it_IT

\documentclass{scrbook}

\usepackage{polyglossia}
\setmainlanguage{italian}

\usepackage{scrlayer-scrpage}
\setkomafont{pageheadfoot}{\sffamily \bfseries}
\KOMAoptions
  { headsepline=on }
\ohead
  { \headmark }
\ofoot*
  { \pagemark }

\usepackage{lipsum}

\begin{document}
\pagestyle{scrheadings}
\chapter{Chapter 1}
\section{Section 1}
\lipsum[1-5]
\section{Section 2}
\lipsum[6-9]
\section{Section 3}
\lipsum[10-12]
\end{document}

그러나 출력은 여기에서 볼 수 있는 것과 같습니다.

MWE

\sffamily업데이트 - 나는 안에 넣어서 해결 방법을 찾았습니다 \markboth. \markright하지만 그것이 "깨끗한" 것인지 "속임수"인지는 모르겠습니다.

관련 정보