diff options
Diffstat (limited to 'macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx')
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx b/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx index 1785437fa0..9def7adde6 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx @@ -1,4 +1,4 @@ -%%^^A%% fontspec-code-msg.dtx -- part of FONTSPEC <wspr.io/fontspec> +%%^^A%% fontspec-code-msg.dtx -- part of FONTSPEC <latex3.github.io/fontspec> % % \section{Error/warning/info messages} % @@ -13,7 +13,7 @@ \cs_new:Npn \@@_error:n { \msg_error:nn {fontspec} } \cs_new:Npn \@@_error:nn { \msg_error:nnn {fontspec} } \cs_new:Npn \@@_error:nx { \msg_error:nnx {fontspec} } -\cs_new:Npn \@@_error:nxx { \msg_error:nnxx {fontspec} } +\cs_new:Npn \@@_error:nxx { \msg_error:nnxx {fontspec} } \cs_new:Npn \@@_warning:n { \msg_warning:nn {fontspec} } \cs_new:Npn \@@_warning:nx { \msg_warning:nnx {fontspec} } \cs_new:Npn \@@_warning:nxx { \msg_warning:nnxx {fontspec} } @@ -28,9 +28,9 @@ \cs_generate_variant:Nn \msg_new:nnn {nnx} \cs_generate_variant:Nn \msg_new:nnnn {nnxx} \cs_new:Nn \@@_msg_new:nn - { \msg_new:nnx {fontspec} {#1} { \tl_trim_spaces:n {#2} } } + { \msg_new:nnx {fontspec} {#1} { ^^J \tl_trim_spaces:n {#2} } } \cs_new:Nn \@@_msg_new:nnn - { \msg_new:nnxx {fontspec} {#1} { \tl_trim_spaces:n {#2} } { \tl_trim_spaces:n {#3} } } + { \msg_new:nnxx {fontspec} {#1} { ^^J \tl_trim_spaces:n {#2} } { \tl_trim_spaces:n {#3} } } \char_set_catcode_space:n {32} % \end{macrocode} % @@ -49,7 +49,10 @@ } \@@_msg_new:nnn {font-not-found} { - The font "#1" cannot be found. + The font "#1" cannot be found; this may be but usually is not + a fontspec bug. Either there is a typo in the font name/file, + the font is not installed (correctly), or there is a bug + in the underlying font loading engine (XeTeX/luaotfload). } { A font might not be found for many reasons.\\ @@ -146,26 +149,23 @@ AAT feature '\l_keys_key_tl=\l_keys_value_tl' (#1) not available in font '\l_fontspec_fontname_tl'. } -\@@_msg_new:nn {icu-feature-not-exist} - { - '\l_keys_key_tl=\l_keys_value_tl' feature not supported - for OpenType font '\l_fontspec_fontname_tl' - } -\@@_msg_new:nn {icu-feature-not-exist-in-font} - { - OpenType feature '\l_keys_key_tl=\l_keys_value_tl' (#1) not available - for font '\l_fontspec_fontname_tl' - with script '\l_@@_script_name_tl' and language '\l_@@_lang_name_tl'. - } \@@_msg_new:nn {no-opticals} { '#1' doesn't appear to have an Optical Size axis. } +\@@_msg_new:nn {script-not-exist} + { + Script '#2' not explicitly supported within font '#1'. + Check the typeset output, and if it is okay then ignore this warning. + Otherwise a different font should be chosen. + } \@@_msg_new:nn {language-not-exist} { - Language '#1' not available - for font '\l_fontspec_fontname_tl' + Language '#1' not explicitly supported + within font '\l_fontspec_fontname_tl' with script '\l_@@_script_name_tl'. + Check the typeset output, and if it is okay then ignore this warning. + Otherwise a different font should be chosen. } \@@_msg_new:nn {only-xetex-feature} { @@ -203,7 +203,7 @@ The~"#1"~package~option~is~obsolete.~TU~is~the~default~encoding. } %</options> -%<*fontspec> +%<*fontspec> \@@_msg_new:nn {font-index-needs-ttc} { The "FontIndex" feature is only supported by TTC (TrueType Collection) fonts.\\ @@ -238,10 +238,6 @@ { Adjusting the maths setup (use [no-math] to avoid this). } -\@@_msg_new:nn {no-script} - { - Font "#1" does not contain requested Script "#2". - } \@@_msg_new:nn {opa-twice} { Opacity set twice, in both Colour and Opacity.\\ @@ -278,10 +274,10 @@ % /© % ------------------------------------------------ -% The FONTSPEC package <wspr.io/fontspec> +% The FONTSPEC package <latex3.github.io/fontspec> % ------------------------------------------------ -% Copyright 2022-2023 The LaTeX project -% Copyright 2004-2022 Will Robertson, LPPL "maintainer" +% Copyright 2022-2024 The LaTeX project, LPPL "maintainer" +% Copyright 2004-2022 Will Robertson % Copyright 2009-2015 Khaled Hosny % Copyright 2013 Philipp Gesang % Copyright 2013-2016 Joseph Wright |