我目前使用的是 Open Type Linux Libertine 字体。此字体有许多可用选项。在传统的文字处理软件中,选择字体时可以轻松使用这些选项。例如,Linux Libertine G:pnum=1&onum=1
允许获取比例旧式数字。
在 LaTeX 中,我可以使用该fontspec
包并使用下表选择多个选项。
但是,有些选项未在此表中列出。例如:,,,,,dbls
...此字体可用选项的完整列表为dash
circ
hang
thou
这里。
我如何继续访问这些选项?
以下是 MWE:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage[utf8]{inputenc}
\usepackage{libertine}
\usepackage{babel}
\newcommand{\text}{Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing.\par}
\begin{document}
\text
\end{document}
答案1
正如字体描述所说,dbls 是 Graphite 字体的功能。因此,您需要一个新的 lualatex(基于 luahbtex)和 Graphite Renderer:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine G}[Renderer=Graphite,RawFeature=+dbls]
\newcommand{\text}{Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing.\par}
\begin{document}
\text
\end{document}