在 ConTeXt 中使用 PragmataPro 字体

在 ConTeXt 中使用 PragmataPro 字体

我正在尝试使用美丽的实用软件ConTeXt 文档中的字体。我的字体设置如下。

\definefontfamily [mainface] [serif] [Baskerville]
\definefontfamily [mainface] [sans]  [Open Sans]
\definefontfamily [mainface] [mono]  [Pragmata Pro]
\definefontfamily [mainface] [math]  [Pragmata Pro]

\setupbodyfont[mainface,12pt]

但是,以下数学代码片段无法渲染;它失败了

答案1

我没有您的专有字体。这是一个使用 DejaVu Sans 进行数学运算的最小示例。主要数学字体仍然是 Latin Modern Math,但字母、希腊文、数学运算符和双击数字当然是通过后备从 DejaVu 中获取的。

\definefontfamily [mainface] [rm] [DejaVu Serif]
\definefontfamily [mainface] [ss] [DejaVu Sans]
\definefontfamily [mainface] [tt] [DejaVu Sans]

\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=lowercasenormal]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=lowercasenormal,offset=lowercaseitalic,tf=style:italic]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=uppercasenormal]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=uppercasenormal,offset=uppercaseitalic,tf=style:italic]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=lowercasegreeknormal,offset=lowercasegreekitalic,tf=style:italic]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=digitsdoublestruck]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=mathematicaloperators]

\definefontfamily [mainface] [mm] [Latin Modern Math]

\setupbodyfont[mainface,12pt]

\setupmathlabeltext[Aut=Aut]
\definemathcommand[Aut][nolop]{\mfunctionlabeltext{Aut}}

\starttext

\mono{Ω B Aut 

相关内容