
KP-monospaced 글꼴을 글꼴 사양에서 tt 글꼴로 사용하도록 어떻게 설정합니까?
나는 이것을 시도했다:
\documentclass{article}
\usepackage{fontspec}
\setmonofont{KP-monospaced}
\begin{document}
\texttt{120 test}
\end{document}
하지만 작동하지 않습니다
답변1
이것이 올바른 방법인지는 확실하지 않지만 다음은 최소한의 테스트만으로 나에게 적합한 것 같습니다.주의사항
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\makeatletter
\DeclareRobustCommand\ttfamily{%
\not@math@alphabet\ttfamily\mathtt
\fontencoding{T1}\fontfamily\ttdefault\selectfont}
\makeatother
\renewcommand{\ttdefault}{jkptt}
\begin{document}
\texttt{120 test}
\end{document}