这个MWE有什么问题:
\documentclass{article}
\usepackage{fontspec}
\newfontface{\cuneiform}[Scale=MatchUppercase]{Santakku}
\DeclareTextFontCommand{\textcuneiform}{\cuneiform}
\newcommand{\KA}{\symbol{"12157}}
\begin{document}
This is cuneiform \textcuneiform{\KA}.
\end{document}
命令行:D:\ProgramFiles\MikTexNEW\miktex\bin\x64\xelatex.exe --interaction=errorstopmode --synctex=-1 "unic.tex" 启动文件夹:C:\Users\hynek0\Desktop\TH0dipl
This is XeTeX, Version 3.14159265-2.6-0.999991 (MiKTeX 2.9.7050 64-bit)
entering extended mode
(unic.tex
LaTeX2e <2018-12-01>
(D:\ProgramFiles\MikTexNEW\tex/latex/base\article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(D:\ProgramFiles\MikTexNEW\tex/latex/base\size10.clo))
(D:\ProgramFiles\MikTexNEW\tex/latex/fontspec\fontspec.sty
(D:\ProgramFiles\MikTexNEW\tex/latex/l3packages/xparse\xparse.sty
(D:\ProgramFiles\MikTexNEW\tex/latex/l3kernel\expl3.sty
(D:\ProgramFiles\MikTexNEW\tex/latex/l3kernel\expl3-code.tex)
(D:\ProgramFiles\MikTexNEW\tex/latex/l3backend\l3backend-xdvipdfmx.def)))
(D:\ProgramFiles\MikTexNEW\tex/latex/fontspec\fontspec-xetex.sty
(D:\ProgramFiles\MikTexNEW\tex/latex/base\fontenc.sty
(D:\ProgramFiles\MikTexNEW\tex/latex/base\tuenc.def))
(D:\ProgramFiles\MikTexNEW\tex/latex/fontspec\fontspec.cfg)))Running miktex-makemf.exe...
Sorry, but miktex-makemf did not succeed.
日志文件希望包含让 MiKTeX 再次运行的信息:
C:\Users\hynek0\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makemf.log
Running miktex-hbf2gf.exe...
hbf2gf (CJK ver. 4.8.4)
Couldn't open `Santak.cfg'
Sorry, but miktex-maketfm did not succeed.
日志文件希望包含让 MiKTeX 再次运行的信息:
C:\Users\hynek0\AppData\Local\MiKTeX\2.9\miktex\log\miktex-maketfm.log
! Package fontspec Error: The font "Santakku" cannot be found.
For immediate help type H <return>.
...
l.6 \DeclareTextFontCommand
{\textcuneiform}{\cuneiform}
?
Process has been terminated ...