latex3 / fontspec

Font selection in LaTeX for XeTeX and LuaTeX
http://latex3.github.io/fontspec/
LaTeX Project Public License v1.3c
276 stars 33 forks source link

Unexpected error with no-glyph and XeTeX #423

Open jbezos opened 4 years ago

jbezos commented 4 years ago

With the following minimal example I would expect an error (XeTeX, obviously):

\documentclass{article}
\usepackage{fontspec}
\setmainfont[HyphenChar="1000]{FreeSerif}  % It doesn't exist

But the error is not the expected one:

! Undefined control sequence.
<argument> \__fontspec_error:nxx 
                      {no-glyph}{\l_fontspec_fontname_tl }{"1000}