Skip to content

Commit

Permalink
trim spaces around font files/names
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr committed Apr 26, 2024
1 parent f00c287 commit e6e6335
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions fontspec-code-internal.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
\cs_new:Nn \@@_sanitise_fontname:Nn
{
\tl_set:Nx #1 {#2}
\tl_trim_spaces:N #1
\@@_process_ext:N #1
}

Expand Down
8 changes: 8 additions & 0 deletions testfiles/fontload-trimspace.luatex.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
TU/texgyrepagella-regular.otf(0)/m/n:
[texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;
TU/texgyrepagella-regular.otf(0)/m/n:
[texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;
***************
Compilation 1 of test file completed with exit status 0
14 changes: 14 additions & 0 deletions testfiles/fontload-trimspace.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

\input{fontspec-testsetup.tex}

\usepackage{fontspec}

\begin{document}

\setmainfont{texgyrepagella-regular.otf}
hello \CURRNFSS

\setmainfont{ texgyrepagella-regular.otf }
hello \CURRNFSS

\end{document}
8 changes: 8 additions & 0 deletions testfiles/fontload-trimspace.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
TU/texgyrepagella-regular.otf(0)/m/n:
"[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt
TU/texgyrepagella-regular.otf(0)/m/n:
"[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt
***************
Compilation 1 of test file completed with exit status 0

0 comments on commit e6e6335

Please sign in to comment.