
我的一位客戶要求我將我使用的模板切換為字體noto
以匹配他們的一些其他材料。我變了
\usepackage{libertine}
到
\usepackage{noto}
但\textsc{}
不會產生預期的輸出:
微量元素:
\documentclass{article}
\usepackage{libertine}
\begin{document}
Example \textsc{Here}
\end{document}
MNWE(最小的不工作範例):
\documentclass{article}
\usepackage{noto}
\begin{document}
Example \textsc{Here}
\end{document}
產生警告:
LaTeX Font Warning: Font shape `OT1/NotoSerif-TLF/m/sc' undefined
(Font) using `OT1/NotoSerif-TLF/m/n' instead on input line 4.
我想我明白警告告訴我什麼(NotoSerif-TLF 字體中不存在“sc”樣式),但我不明白如何修復它,或者它是否是包字體中的noto
錯誤文件本身。如何noto
在我的專案中使用這些字體並保留\textsc
功能?
答案1
TeX Live 提供的 Noto 字體是舊版。
我從那裡下載了整個家庭https://github.com/googlei18n/noto-fonts大集合有小大寫字母:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Noto Serif}
\begin{document}
Example \textsc{Here}
\end{document}
但是,您需要 XeLaTeX 或 LuaLaTeX 才能使用完整版本。沒有pdflatex
可用的封裝版本支援小型大寫字母。
更新
2018-02-19 發布的版本noto.sty
擴展了對最新 Noto 字體的支援。更新後,小型大寫字母也適用於pdflatex
.