From 8b51b7979dad2a27ced3ba17af6dbc5219ab7b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 31 Aug 2024 17:53:06 +0200 Subject: [PATCH] Fix wrong "missing Script" error This could happen if a shape is not found and substituted --- tex/polyglossia.sty | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tex/polyglossia.sty b/tex/polyglossia.sty index 7e71676b..0ff96220 100644 --- a/tex/polyglossia.sty +++ b/tex/polyglossia.sty @@ -945,9 +945,11 @@ \use:c { #2familylatin } #5 { - \__xpg_add_font_feature_script:nee { #2 } - { \prop_item:Nn \l_xpg_langsetup_prop { #1 / scripttag } } - { \prop_item:Nn \l_xpg_langsetup_prop { #1 / script } } + \fontspec_font_if_exist:nT{\fontname\font}{ + \__xpg_add_font_feature_script:nee { #2 } + { \prop_item:Nn \l_xpg_langsetup_prop { #1 / scripttag } } + { \prop_item:Nn \l_xpg_langsetup_prop { #1 / script } } + } } } }