Closed kberry closed 4 years ago
Hi Karl — I'm very confused. Can't reproduce...
I can reproduce the issue on Debian 10.2.
@wspr I see same error lualatex(-dev) and xelatex(-dev)
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019) (preloaded format=xelatex 2020.1.23) 28 JAN 2020 12:32
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**cc568
(./cc568.tex
LaTeX2e <2019-10-01> patch level 3
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/10/25 v1.4k Standard LaTeX document class
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2019/10/25 v1.4k Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2020-01-22 L3 programming layer (loader)
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3-code.tex
Package: expl3 2020-01-22 L3 programming layer (code)
\c_max_int=\count88
\l_tmpa_int=\count89
\l_tmpb_int=\count90
\g_tmpa_int=\count91
\g_tmpb_int=\count92
\l__seq_internal_a_int=\count93
\l__seq_internal_b_int=\count94
\g__kernel_prg_map_int=\count95
\c__ior_term_noprompt_ior=\count96
\c_log_iow=\count97
\l_iow_line_count_int=\count98
\l__iow_line_target_int=\count99
\l__iow_one_indent_int=\count100
\l__iow_indent_int=\count101
\c_zero_dim=\dimen103
\c_max_dim=\dimen104
\l_tmpa_dim=\dimen105
\l_tmpb_dim=\dimen106
\g_tmpa_dim=\dimen107
\g_tmpb_dim=\dimen108
\c_zero_skip=\skip43
\c_max_skip=\skip44
\l_tmpa_skip=\skip45
\l_tmpb_skip=\skip46
\g_tmpa_skip=\skip47
\g_tmpb_skip=\skip48
\c_zero_muskip=\muskip10
\c_max_muskip=\muskip11
\l_tmpa_muskip=\muskip12
\l_tmpb_muskip=\muskip13
\g_tmpa_muskip=\muskip14
\g_tmpb_muskip=\muskip15
\l_keys_choice_int=\count102
\l__intarray_loop_int=\count103
\c__intarray_sp_dim=\dimen109
\g__intarray_font_int=\count104
\c__fp_leading_shift_int=\count105
\c__fp_middle_shift_int=\count106
\c__fp_trailing_shift_int=\count107
\c__fp_big_leading_shift_int=\count108
\c__fp_big_middle_shift_int=\count109
\c__fp_big_trailing_shift_int=\count110
\c__fp_Bigg_leading_shift_int=\count111
\c__fp_Bigg_middle_shift_int=\count112
\c__fp_Bigg_trailing_shift_int=\count113
\g__fp_array_int=\count114
\l__fp_array_loop_int=\count115
\l__sort_length_int=\count116
\l__sort_min_int=\count117
\l__sort_top_int=\count118
\l__sort_max_int=\count119
\l__sort_true_max_int=\count120
\l__sort_block_int=\count121
\l__sort_begin_int=\count122
\l__sort_end_int=\count123
\l__sort_A_int=\count124
\l__sort_B_int=\count125
\l__sort_C_int=\count126
\l__str_internal_int=\count127
\l__tl_analysis_normal_int=\count128
\l__tl_analysis_index_int=\count129
\l__tl_analysis_nesting_int=\count130
\l__tl_analysis_type_int=\count131
\l__regex_internal_a_int=\count132
\l__regex_internal_b_int=\count133
\l__regex_internal_c_int=\count134
\l__regex_balance_int=\count135
\l__regex_group_level_int=\count136
\l__regex_mode_int=\count137
\c__regex_cs_in_class_mode_int=\count138
\c__regex_cs_mode_int=\count139
\l__regex_catcodes_int=\count140
\l__regex_default_catcodes_int=\count141
\c__regex_catcode_L_int=\count142
\c__regex_catcode_O_int=\count143
\c__regex_catcode_A_int=\count144
\c__regex_all_catcodes_int=\count145
\l__regex_show_lines_int=\count146
\l__regex_min_state_int=\count147
\l__regex_max_state_int=\count148
\l__regex_left_state_int=\count149
\l__regex_right_state_int=\count150
\l__regex_capturing_group_int=\count151
\l__regex_min_pos_int=\count152
\l__regex_max_pos_int=\count153
\l__regex_curr_pos_int=\count154
\l__regex_start_pos_int=\count155
\l__regex_success_pos_int=\count156
\l__regex_curr_char_int=\count157
\l__regex_curr_catcode_int=\count158
\l__regex_last_char_int=\count159
\l__regex_case_changed_char_int=\count160
\l__regex_curr_state_int=\count161
\l__regex_step_int=\count162
\l__regex_min_active_int=\count163
\l__regex_max_active_int=\count164
\l__regex_replacement_csnames_int=\count165
\l__regex_match_count_int=\count166
\l__regex_min_submatch_int=\count167
\l__regex_submatch_int=\count168
\l__regex_zeroth_submatch_int=\count169
\g__regex_trace_regex_int=\count170
\c_empty_box=\box27
\l_tmpa_box=\box28
\l_tmpb_box=\box29
\g_tmpa_box=\box30
\g_tmpb_box=\box31
\l__box_top_dim=\dimen110
\l__box_bottom_dim=\dimen111
\l__box_left_dim=\dimen112
\l__box_right_dim=\dimen113
\l__box_top_new_dim=\dimen114
\l__box_bottom_new_dim=\dimen115
\l__box_left_new_dim=\dimen116
\l__box_right_new_dim=\dimen117
\l__box_internal_box=\box32
\l__coffin_internal_box=\box33
\l__coffin_internal_dim=\dimen118
\l__coffin_offset_x_dim=\dimen119
\l__coffin_offset_y_dim=\dimen120
\l__coffin_x_dim=\dimen121
\l__coffin_y_dim=\dimen122
\l__coffin_x_prime_dim=\dimen123
\l__coffin_y_prime_dim=\dimen124
\c_empty_coffin=\box34
\l__coffin_aligned_coffin=\box35
\l__coffin_aligned_internal_coffin=\box36
\l_tmpa_coffin=\box37
\l_tmpb_coffin=\box38
\g_tmpa_coffin=\box39
\g_tmpb_coffin=\box40
\l__coffin_bounding_shift_dim=\dimen125
\l__coffin_left_corner_dim=\dimen126
\l__coffin_right_corner_dim=\dimen127
\l__coffin_bottom_corner_dim=\dimen128
\l__coffin_top_corner_dim=\dimen129
\l__coffin_scaled_total_height_dim=\dimen130
\l__coffin_scaled_width_dim=\dimen131
\c__coffin_empty_coffin=\box41
\l__coffin_display_coffin=\box42
\l__coffin_display_coord_coffin=\box43
\l__coffin_display_pole_coffin=\box44
\l__coffin_display_offset_dim=\dimen132
\l__coffin_display_x_dim=\dimen133
\l__coffin_display_y_dim=\dimen134
\g__char_data_ior=\read1
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/l3deprecation.def
File: l3deprecation.def 2019-04-06 v L3 Deprecated functions
))
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def
File: l3backend-xdvipdfmx.def 2019-04-06 L3 backend support: xdvipdfmx
\g__graphics_track_int=\count171
\l__pdf_internal_box=\box45
\g__pdf_backend_object_int=\count172
\g__pdf_backend_annotation_int=\count173
))
Package: xparse 2020-01-12 L3 Experimental document command parser
\l__xparse_current_arg_int=\count174
\g__xparse_grabber_int=\count175
\l__xparse_m_args_int=\count176
\l__xparse_v_nesting_int=\count177
)
Package: fontspec 2020/01/26 v2.7g Font selection for XeLaTeX and LuaLaTeX
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
Package: fontspec-xetex 2020/01/26 v2.7g Font selection for XeLaTeX and LuaLaTe
X
\l__fontspec_script_int=\count178
\l__fontspec_language_int=\count179
\l__fontspec_strnum_int=\count180
\l__fontspec_tmp_int=\count181
\l__fontspec_tmpa_int=\count182
\l__fontspec_tmpb_int=\count183
\l__fontspec_tmpc_int=\count184
\l__fontspec_em_int=\count185
\l__fontspec_emdef_int=\count186
\l__fontspec_strong_int=\count187
\l__fontspec_strongdef_int=\count188
\l__fontspec_tmpa_dim=\dimen135
\l__fontspec_tmpb_dim=\dimen136
\l__fontspec_tmpc_dim=\dimen137
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2018/08/11 v2.0j Standard LaTeX package
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/tuenc.def
File: tuenc.def 2018/08/11 v2.0j Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding TU on input line 82.
))
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.cfg)
LaTeX Info: Redefining \itshape on input line 4128.
LaTeX Info: Redefining \slshape on input line 4128.
LaTeX Info: Redefining \scshape on input line 4128.
LaTeX Info: Redefining \upshape on input line 4128.
LaTeX Info: Redefining \em on input line 4128.
LaTeX Info: Redefining \emph on input line 4128.
))
(./cmunrm.fontspec)
! LaTeX3 Error: The key 'fontspec-opentype/SlantedFont' is unknown and is
(LaTeX3) being ignored.
For immediate help type H <return>.
...
l.4 \begin
{document}
? x
Here is how much of TeX's memory you used:
14560 strings out of 492472
318431 string characters out of 6129298
378048 words of memory out of 5000000
19094 multiletter control sequences out of 15000+600000
532386 words of font info for 30 fonts, out of 8000000 for 9000
1348 hyphenation exceptions out of 8191
45i,0n,73p,340b,2146s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
It seems there is something very special about the name "cmunrm". If I rename the file to dmunrm.fontspec, change its first line to \defaultfontfeatures[dmunrm], and change the call in the .tex file to \setmainfont{dmunrm.otf}, it works. But with cmunrm in those three places, I get the error.
Furthermore, when I try with any other font family that uses [Bold]SlantedFont in its .fontspec file, namely erewhon, nimbusserif, ztm, scholax, XCharter, it works. Which explains why there have been no errors reported by other people.
@wspr I wonder if you have something in your system font setup which is somehow making it work. I can't imagine, but since all errors seem to come down to system fonts one way or another ... :)
I guess I'll have to turn tracing on next. Sigh.
@kberry I'm seeing the issue now. Apologies, I don't know why I didn't earlier. It turns out I have a hack in my code to avoid this error for the other font names and I left out Slanted and BoldSlanted. Of course I should fix my code so there is no hack, but it's late and as you say since the behaviour is correct the error is just spurious...
Thanks will! I look forward to trying this after rebuilding fmts tonight.
Spurious as it may be, the error makes a big difference for me, since my life revolves around make as well tex :), and the error means latex exits nonzero :( ... anyway, thanks again.
! LaTeX3 Error: The key 'fontspec-opentype/SlantedFont' is unknown and is being ignored. Ditto BoldSlantedFont.
But it seems they are not actually ignored, or perhaps there is default, since I see slanted where it's supposed to be in the output.
Happens with both lualatex-dev and xelatex-dev (and no -dev). Version: fontspec 2020/01/26 v2.7g
With a cmunrm.fontspec file:
(specifying as optional argument to \setmainfont gets the same error.)