Skip to content

Commit

Permalink
Fix font name parsing
Browse files Browse the repository at this point in the history
Font names now (can?) have a "name:" prefix which we need to strip first.
  • Loading branch information
jspitz authored Aug 31, 2024
1 parent b2589c7 commit 1e5f963
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tex/polyglossia.sty
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,8 @@
% Strip font family name for error message
% Courtesy of egreg, https://tex.stackexchange.com/a/613996
\str_set:Nx \xpg_fname_str { \fontname\font }
% Remove name: prefix
\regex_replace_once:nnN { name: } { } \xpg_fname_str
% Remove all after :
\regex_replace_once:nnN { \:.* } { } \xpg_fname_str
% ... and all after /
Expand Down

0 comments on commit 1e5f963

Please sign in to comment.