dohyunkim / xetexko

typeset Korean with xe(la)tex
15 stars 1 forks source link

\ding{183} 따위가 한글폰트로 찍히는 문제 #7

Open dohyunkim opened 3 years ago

dohyunkim commented 3 years ago
\documentclass{article}
\usepackage{pifont}
\usepackage{kotex}
\begin{document}
\ding{183}
\end{document}

한글폰트로 찍힐 뿐만 아니라 compresspunctations도 동작한다. 이를 방지하려면 전처리부에 다음을 넣으면 된다.

\AddToHook{cmd/Pifont/before}{\prevfontmarks\nocompresspunctuations}

그런데 이런 문제는 레거시 폰트를 사용하는 패키지의 경우 언제라도 발생할 수 있다. 보다 근본적인 해법은?