diff options
author | Norbert Preining <norbert@preining.info> | 2024-05-08 03:00:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-05-08 03:00:45 +0000 |
commit | 5212716ef44f8ffc4e9fc21540cf5e6472f22f9d (patch) | |
tree | 72a2adb43cdfcc24259274163925ab68c1d75a51 /macros/unicodetex/latex | |
parent | 183e0a342c2d76377b644e9e09493a870d858cc7 (diff) |
CTAN sync 202405080300
Diffstat (limited to 'macros/unicodetex/latex')
-rw-r--r-- | macros/unicodetex/latex/fontspec/CHANGES.md | 16 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/README.md | 31 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code-api.dtx | 1 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code-internal.dtx | 26 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code-keyval.dtx | 4 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx | 11 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code-opentype.dtx | 15 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code-vars.dtx | 1 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-code.pdf | bin | 706350 -> 704184 bytes | |||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec.dtx | 6 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec.pdf | bin | 496854 -> 496860 bytes |
11 files changed, 64 insertions, 47 deletions
diff --git a/macros/unicodetex/latex/fontspec/CHANGES.md b/macros/unicodetex/latex/fontspec/CHANGES.md index 7dab8151f3..47c3b7128e 100644 --- a/macros/unicodetex/latex/fontspec/CHANGES.md +++ b/macros/unicodetex/latex/fontspec/CHANGES.md @@ -1,6 +1,22 @@ Change history ============== +## v2.9d (2024/05/07) + + * Now that `Script` and `Language` are retained even if the font doesn't support them, + we can no longer check for font feature existence before applying the OpenType tags. + This release removes checking. (#515) + + * Fix bug/regression in loading font families constructed from fonts with different file + extensions; e.g.: (#514) + + \setmainfont{MyLato} + [ + UprightFont = Lato-Regular.ttf , + BoldFont = FiraSans-Bold.otf , + ] + + ## v2.9c (2024/05/03) * Fix copy/paste regression bug with the `Language` feature (primarily exposed through `babel` package). (#513) diff --git a/macros/unicodetex/latex/fontspec/README.md b/macros/unicodetex/latex/fontspec/README.md index 6624bcca6b..0f66c46901 100644 --- a/macros/unicodetex/latex/fontspec/README.md +++ b/macros/unicodetex/latex/fontspec/README.md @@ -11,7 +11,27 @@ available with OpenType (and other) fonts, including upper and lower case number proportional and monospaced numbers, swash letters, ligature control, and many many others. -See the documentation `fontspec.pdf` for full information. + +Documentation +------------- + +See the PDF documentation for complete user information (including examples): + + texdoc fontspec + +Additional online documentation is provided at: + <http://latex3.github.io/fontspec/> + +The package code is documented in typeset PDF form via + + texdoc fontspec-code + +Licence +------- + +This package is distributed under the terms and conditions of the LaTeX Project Public License (LPPL), version 1.3a or higher. + +The maintainer of the package is Will Robertson and the LaTeX3 project. Summary of user commands @@ -50,9 +70,6 @@ To add features to the font family currently in use: Package details --------------- -Repository documentation is provided at: - <http://latex3.github.io/fontspec/> - Release versions of fontspec are available from CTAN: <http://www.ctan.org/pkg/fontspec> @@ -70,7 +87,11 @@ package by running If you wish to manually download the latest release version from CTAN, get the pre-built TDS package and extract it into your local texmf tree: - http://mirror.ctan.org/install/macros/latex/contrib/fontspec.tds.zip + http://mirror.ctan.org/install/macros/unicodetex/latex/fontspec.tds.zip + +Historical releases are available via GitHub: + <https://github.com/latex3/fontspec/releases> + <https://github.com/latex3/fontspec/tags> If you wish to use the latest development version from Github, use git to obtain the latest repository code with diff --git a/macros/unicodetex/latex/fontspec/fontspec-code-api.dtx b/macros/unicodetex/latex/fontspec/fontspec-code-api.dtx index be63bcc056..2b21012472 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code-api.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec-code-api.dtx @@ -388,6 +388,7 @@ \@@_tl_new_if_free:N #1 #4 #1 \l_fontspec_family_tl \tl_set:Nn \l_@@_fontface_cs_tl {\l_fontspec_font} % reset +%<debug>\typeout{::::::~END~fontspec_set_family:Nnn} } \cs_new:Nn \fontspec_gset_family:Nnn { \@@_set_family:NnnN #1 {#2} {#3} \tl_gset_eq:NN } \cs_new:Nn \fontspec_set_family:Nnn { \@@_set_family:NnnN #1 {#2} {#3} \tl_set_eq:NN } diff --git a/macros/unicodetex/latex/fontspec/fontspec-code-internal.dtx b/macros/unicodetex/latex/fontspec/fontspec-code-internal.dtx index 16e2922b39..fd52183c18 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code-internal.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec-code-internal.dtx @@ -37,13 +37,11 @@ \@@_font_suppress_not_found_error: \@@_init: - \@@_sanitise_fontname:Nn \l_fontspec_fontname_tl {#2} - \@@_sanitise_fontname:Nn \l_@@_fontname_up_tl {#2} - \@@_sanitise_fontname:Nn \l_@@_basename_tl {#2} + \@@_sanitise_fontname:Nn \l_fontspec_fontname_tl {#2} + \tl_set_eq:NN \l_@@_fontname_up_tl \l_fontspec_fontname_tl + \tl_set_eq:NN \l_@@_basename_tl \l_fontspec_fontname_tl %<debug>\typeout{^^J::::::::::::::: l_fontspec_fontname_tl~ =~ \l_fontspec_fontname_tl } -%<debug>\typeout{::::::::::::::: _fontname_up_tl~ =~ \l_@@_fontname_up_tl } -%<debug>\typeout{::::::::::::::: l_@@_extension_tl~ =~ \l_@@_extension_tl } \@@_if_detect_external:nT {#2} { \keys_set:nn {fontspec-preparse-external} {Path} } @@ -80,6 +78,7 @@ \group_end: \tl_set_eq:NN \l_fontspec_family_tl \g_@@_nfss_family_tl +%<debug>\typeout{::::::::::::::::::::::::::::::} } % \end{macrocode} % \end{macro} @@ -107,6 +106,7 @@ { \tl_if_in:NnT #1 {##1} { +%<debug> \typeout{::@@_process_ext:N~ --~ Removing~ EXT:~ ##1} \tl_remove_once:Nn #1 {##1} \tl_set:Nn \l_@@_extension_tl {##1} \@@_font_is_file: @@ -143,9 +143,9 @@ { \str_if_eq:eeT { \str_lowercase:f {\l_@@_extension_tl} } {.ttc} { - \@@_sanitise_fontname:Nn \l_@@_fontname_it_tl {#1} - \@@_sanitise_fontname:Nn \l_@@_fontname_bf_tl {#1} - \@@_sanitise_fontname:Nn \l_@@_fontname_bfit_tl {#1} + \tl_set_eq:NN \l_@@_fontname_it_tl \l_fontspec_fontname_tl + \tl_set_eq:NN \l_@@_fontname_bf_tl \l_fontspec_fontname_tl + \tl_set_eq:NN \l_@@_fontname_bfit_tl \l_fontspec_fontname_tl } } % \end{macrocode} @@ -253,7 +253,8 @@ { %<debug>\typeout{:: @@_load_font} -%<debug>\typeout{Set~ base~ font~ for~ preliminary~ analysis: \@@_construct_font_call:nn { \l_@@_fontname_up_tl } {} } + \@@_sanitise_fontname:Nn \l_@@_fontname_up_tl { \l_@@_fontname_up_tl } +%<debug>\typeout{Set~ base~ font~ for~ preliminary~ analysis:~ "\l_@@_fontname_up_tl"~ with~ features~ "\l_@@_pre_feat_sclist" } \@@_primitive_font_set:NnnF \l_@@_test_font { \@@_construct_font_call:nn { \l_@@_fontname_up_tl } { \l_@@_pre_feat_sclist } } { \f@size pt - 2sp } @@ -543,6 +544,7 @@ % \begin{macrocode} \cs_new:Nn \@@_set_faces_aux:nnnnn { +%<debug> \typeout{:: @@_set_faces_aux:nnnnn \exp_not:n { {#1} {#2} {#3} {#4} {#5} } } \fontspec_complete_fontname:Nn \l_@@_curr_fontname_tl {#3} \@@_make_font_shapes:Nnnnn \l_@@_curr_fontname_tl {#1} {#2} {#4} {#5} } @@ -557,8 +559,10 @@ \cs_new:Nn \fontspec_complete_fontname:Nn { \tl_set:Nx #1 {#2} - \tl_replace_all:Nne #1 {*} {\l_@@_basename_tl} - \@@_process_ext:N #1 + \tl_if_in:NnF \l_fontspec_fontname_tl {*} + { + \tl_replace_all:Nne #1 {*} {\l_@@_basename_tl} + } } % \end{macrocode} % \end{macro} diff --git a/macros/unicodetex/latex/fontspec/fontspec-code-keyval.dtx b/macros/unicodetex/latex/fontspec/fontspec-code-keyval.dtx index a844b0e056..bd83f8556c 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code-keyval.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec-code-keyval.dtx @@ -173,7 +173,7 @@ % \begin{macrocode} \@@_keys_define_code:nnn {fontspec-preparse} {Script} { -%<XE> \keys_set:nn {fontspec-renderer} {Renderer=OpenType} +%<XE> \tl_if_empty:NT \l_@@_renderer_tl { \keys_set:nn {fontspec-renderer} {Renderer=OpenType} } \tl_set:Nn \l_@@_script_name_tl {#1} } % \end{macrocode} @@ -181,7 +181,7 @@ % \begin{macrocode} \@@_keys_define_code:nnn {fontspec-preparse} {Language} { -%<XE> \keys_set:nn {fontspec-renderer} {Renderer=OpenType} +%<XE> \tl_if_empty:NT \l_@@_renderer_tl { \keys_set:nn {fontspec-renderer} {Renderer=OpenType} } \tl_set:Nn \l_@@_lang_name_tl {#1} } % \end{macrocode} diff --git a/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx b/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx index 16b328fad3..2904f7350e 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec-code-msg.dtx @@ -149,17 +149,6 @@ 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. diff --git a/macros/unicodetex/latex/fontspec/fontspec-code-opentype.dtx b/macros/unicodetex/latex/fontspec/fontspec-code-opentype.dtx index d78e0a8be9..dab45952c6 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code-opentype.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec-code-opentype.dtx @@ -127,21 +127,8 @@ \cs_new:Nn \@@_make_OT_feature:nnn { %<debug> \typeout{:: @@_make_OT_feature:nnn \exp_not:n { {#1}{#2}{#3} } } - - \bool_set_true:N \l_@@_proceed_bool - - \tl_if_empty:nF {#1} - { - \exp_args:No \@@_check_ot_feat:NnF \l_@@_fontface_cs_tl {#1} - { - \@@_warning:nx {icu-feature-not-exist-in-font} {#1} - \bool_set_false:N \l_@@_proceed_bool - } - } - \@@_remove_clashing_featstr:x { #2 , \@@_swap_plus_minus:n {#2} , #3 } - - \bool_if:NT \l_@@_proceed_bool { \@@_update_featstr:n {#2} } + \@@_update_featstr:n {#2} } \cs_generate_variant:Nn \@@_make_OT_feature:nnn {xxx} % \end{macrocode} diff --git a/macros/unicodetex/latex/fontspec/fontspec-code-vars.dtx b/macros/unicodetex/latex/fontspec/fontspec-code-vars.dtx index c2be0378c5..e063936404 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code-vars.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec-code-vars.dtx @@ -68,7 +68,6 @@ \bool_new:N \l_@@_scriptlang_exist_bool \bool_new:N \g_@@_em_normalise_slant_bool \bool_new:N \l_@@_external_kpse_bool -\bool_new:N \l_@@_proceed_bool % \end{macrocode} % % \begin{macro}{\l_@@_never_check_bool} diff --git a/macros/unicodetex/latex/fontspec/fontspec-code.pdf b/macros/unicodetex/latex/fontspec/fontspec-code.pdf Binary files differindex 576b93ee4c..cf04b4a6a2 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-code.pdf +++ b/macros/unicodetex/latex/fontspec/fontspec-code.pdf diff --git a/macros/unicodetex/latex/fontspec/fontspec.dtx b/macros/unicodetex/latex/fontspec/fontspec.dtx index e3002ff5e5..ea7bbffe55 100644 --- a/macros/unicodetex/latex/fontspec/fontspec.dtx +++ b/macros/unicodetex/latex/fontspec/fontspec.dtx @@ -70,7 +70,7 @@ \ProvidesExplFile{fontspec.dtx} %</dtx> %<*fontspec> - {2024/05/03}{2.9c}{Font selection for XeLaTeX and LuaLaTeX} + {2024/05/07}{2.9d}{Font selection for XeLaTeX and LuaLaTeX} %</fontspec> % \end{macrocode} % @@ -89,8 +89,8 @@ %<lua>local fontspec = fontspec %<lua>fontspec.module = { %<lua> name = "fontspec", -%<lua> version = "2.9c", -%<lua> date = "2024/05/03", +%<lua> version = "2.9d", +%<lua> date = "2024/05/07", %<lua> description = "Font selection for XeLaTeX and LuaLaTeX", %<lua> author = "Khaled Hosny, Philipp Gesang, Will Robertson", %<lua> copyright = "Khaled Hosny, Philipp Gesang, Will Robertson", diff --git a/macros/unicodetex/latex/fontspec/fontspec.pdf b/macros/unicodetex/latex/fontspec/fontspec.pdf Binary files differindex 0ceac30d40..643375da1e 100644 --- a/macros/unicodetex/latex/fontspec/fontspec.pdf +++ b/macros/unicodetex/latex/fontspec/fontspec.pdf |