Skip to content

Commit

Permalink
be quiet when script/lang not found
Browse files Browse the repository at this point in the history
closes #421
  • Loading branch information
wspr committed May 11, 2024
1 parent 0e4eac9 commit 0469638
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions doc/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
Change history
==============

## v2.9e (2024/05/11)

* Fix regression with automatic detection and selection of small caps when the font
script or language was requested but not found. (#517)

* Add additional tests to check against regressions. (#516, #518)

* Improve message in log file when defining a font without small caps.

* Demote warnings when Script or Language are requested but not found to the log file
instead of the console. (#421)


## v2.9d (2024/05/07)

* Now that `Script` and `Language` are retained even if the font doesn't support them,
Expand Down
4 changes: 2 additions & 2 deletions fontspec-code-feat-opentype.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
\bool_if:NF \l_@@_scriptlang_exist_bool
{
%<debug>\typeout{Script~not~found!}
\@@_warning:nxx {no-script} {\l_fontspec_fontname_tl} {#1}
\@@_info:nxx {script-not-exist} {\l_fontspec_fontname_tl} {#1}
\clist_set:Nn \l_tmpa_clist {#2}
\clist_get:NN \l_tmpa_clist \l_@@_script_tl
\exp_args:Noo \@@_check_script:NnF \l_@@_fontface_cs_tl \l_@@_script_tl
Expand Down Expand Up @@ -558,7 +558,7 @@
\bool_if:NF \l_@@_scriptlang_exist_bool
{
%<debug>\typeout{Lang~not~found!}
\@@_warning:nx {language-not-exist} {#1}
\@@_info:nx {language-not-exist} {#1}
\clist_set:Nn \l_tmpa_clist {#2}
\clist_get:NN \l_tmpa_clist \l_@@_lang_tl
\exp_args:Noo \@@_check_lang:NnF \l_@@_fontface_cs_tl \l_@@_lang_tl
Expand Down
12 changes: 6 additions & 6 deletions fontspec-code-msg.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
{
'#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 explicitly supported
Expand Down Expand Up @@ -232,12 +238,6 @@
{
Adjusting the maths setup (use [no-math] to avoid this).
}
\@@_msg_new:nn {no-script}
{
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 {opa-twice}
{
Opacity set twice, in both Colour and Opacity.\\
Expand Down

0 comments on commit 0469638

Please sign in to comment.