Noto sans Devanagari 的问题

Noto sans Devanagari 的问题

我在 Windows 10 中使用 texlive 2020。我尝试将 Noto Sans Devanagari 字体与 xelatex 结合使用。我的 texmf-local 以及 C:\windows\fonts 中都有字体。我可以不使用文件名来加载英文 Noto 字体。但是,如果我不使用文件名,xelatex 就无法找到 Noto Sans Devanagari 字体。如果我使用文件名,它可以正常工作,如以下 mwe 所示。

\documentclass{article}
\usepackage{fontspec}
\newfontfamily{\eng}{Noto Serif}
\setmainfont{NotoSansDevanagari-Regular.ttf}%
[Script=Devanagari,Mapping=velthuis]
\setsansfont{Noto Sans}
\catcode`\~=12
\begin{document}
    parik.saa ph~orm bharane se pahale satriiya kaarya jamaa karanaa anivaarya hai|

    {\eng This is a test.}\\
    {\eng\sffamily\bfseries This is a test.}
\end{document}

但这个 MWE 不起作用。

\documentclass{article}
\usepackage{fontspec}
\newfontfamily{\eng}{Noto Serif}
\setmainfont{Noto Sans Devanagari}%
[Script=Devanagari, Mapping=velthuis]
\setsansfont{Noto Sans}
\catcode`\~=12
\begin{document}
    parik.saa ph~orm bharane se pahale satriiya kaarya jamaa karanaa anivaarya hai|

    {\eng This is a test.}\\
    {\eng\sffamily\bfseries This is a test.}
\end{document}

即使我不使用 Noto Sans 和 Noto Serif 中的文件名,Xelatex 似乎也不会对英文字体产生任何问题。但它对 Noto Sans Devanagari 存在问题。问题可能出在哪里? 添加 命令

otfinfo -i f:/texmf-local-from-linux/fonts/truetype/noto/NotoSansDevanagari-Regular.ttf

给出

Family:              Noto Sans Devanagari
Subfamily:           Regular
Full name:           Noto Sans Devanagari Regular
PostScript name:     NotoSansDevanagari-Regular
Version:             Version 2.000;GOOG;noto-source:20170915:90ef993387c0; ttfautohint (v1.7)
Unique ID:           2.000;GOOG;NotoSansDevanagari-Regular
Description:         Designed by Monotype design team.
Designer:            Jelle Bosma - Monotype Design Team
Designer URL:        http://www.monotype.com/studio
Manufacturer:        Monotype Imaging Inc.
Vendor URL:          http://www.google.com/get/noto/
Trademark:           Noto is a trademark of Google Inc.
Copyright:           Copyright 2015 Google Inc. All Rights Reserved.
License URL:         http://scripts.sil.org/OFL
License Description: This Font Software is licensed under the SIL Open Font License, Version 1.1. This Font Software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the SIL Open Font License for the specific language, permissions and limitations governing your use of this Font Software.
Vendor ID:           GOOG

相关内容