문제 Libertine 약간 굵은 글씨와 안감 숫자

문제 Libertine 약간 굵은 글씨와 안감 숫자

Libertine 글꼴의 세미 볼드 버전을 사용할 수 있었으면 좋겠습니다.

기본적으로 저는 Elzevirian 숫자를 사용하며 문제 없이 Elzevirian 숫자를 세미 볼드체로 사용할 수 있습니다.

어떤 경우에는 안감 번호를 약간 굵은 글씨로 사용해야 할 때도 있습니다.

그러나 세미 볼드체로 표시되어야 하는 안감 번호는 실제로는 보통 무게입니다.

여기에 이미지 설명을 입력하세요

MWE는 다음과 같습니다.

\documentclass{article}

\RequirePackage[oldstyle,proportional]{libertine}
\DeclareRobustCommand\textsb[1]{{\libertineSB#1}}

\begin{document}
\LARGE

\noindent
Some "default" text with old style nums : 1234567890\\
\textsb{Some semi-bold text with old style nums : 1234567890}\\
\textbf{Some bold text with old style nums : 1234567890}\\

\noindent
Some text with lining nums : \liningnums{1234567890}\\
\textsb{Some semi-bold text with lining nums : \liningnums{1234567890}}\\
\textbf{Some bold text with lining nums : \liningnums{1234567890}}\\
\end{document}

이 문제를 해결하는 방법을 알고 있나요?

감사합니다.

답변1

에서는 작동하지만 (Lua|Xe)LaTeX에서는 작동 하지 않습니다 . 를 수행할 때 필요한 기능을 추가하는 대신 글꼴 모음을 재설정하는 pdflatex버그로 인해 입니다 .libertine.sty\liningnums

\documentclass{article}
\usepackage{iftex}

\usepackage[oldstyle,proportional]{libertine}

\DeclareTextFontCommand\textsb{\libertineSB}

\iftutex % XeLaTeX or LuaLaTeX
  \RenewDocumentCommand{\liningnums}{m}{%
    {\addfontfeatures{Numbers=Lining}#1}%
  }
\fi

\begin{document}

\noindent
Some "default" text with old style nums: 1234567890\\
\textsb{Some semi-bold text with old style nums: 1234567890}\\
\textbf{Some bold text with old style nums: 1234567890}

\noindent
Some text with lining nums: \liningnums{1234567890}\\
\textsb{Some semi-bold text with lining nums: \liningnums{1234567890}}\\
\textbf{Some bold text with lining nums: \liningnums{1234567890}}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보