在 XeLaTex 中组合字体

在 XeLaTex 中组合字体

我已经能够组合数学字体,因此

\setmathfont{Asana-Math.otf}
\setmathfont[range={"0370-"03FF}]{GFS Baskerville}
\setmathfont[
   range={"0000-"50,"52-"007F}, % minus ()
   Numbers=Lowercase]           % and use Q from main
   {Adobe Caslon Pro}

但当我尝试使用主字体时

\setmainfont[Numbers=Lowercase, Mapping=tex-text]{Adobe Caslon Pro}
\setmainfont[range={"0041-"007A}]{Wyld}

发生错误

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                     │
!                                                                                    │
! LaTeX error: "kernel/key-unknown"                                                  │
!                                                                                    │
! The key 'fontspec/range' is unknown and is being ignored.                          │
!                                                                                    │
! See the LaTeX3 documentation for further information.                              │
!                                                                                    │
! For immediate help type H <return>.                                                │
!...............................................                                     │
l.23 \setmainfont[range={"0041-"007A}]{Wyld}                                         │
?

似乎范围选项不适用\setmainfont;但是为什么呢?还有其他方法可以组合两种或多种字体吗?

相关内容