diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-closing.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/fontspec/fontspec-closing.dtx | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-closing.dtx b/Master/texmf-dist/source/latex/fontspec/fontspec-closing.dtx new file mode 100644 index 00000000000..7e09312d9ec --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/fontspec-closing.dtx @@ -0,0 +1,47 @@ +% +% \section{Closing code} +% +% \iffalse +% \begin{macrocode} +%<*fontspec&(xetexx|luatex)> +% \end{macrocode} +% \fi +% +% \subsection{Compatibility} +% +% \begin{macro}{\zf@enc} +% \begin{macro}{\zf@family} +% \begin{macro}{\zf@basefont} +% \begin{macro}{\zf@fontspec} +% Old interfaces. +% These are needed by, at least, the \pkg{mathspec} package. +% \begin{macrocode} +\tl_set:Nn \zf@enc { \g_fontspec_encoding_tl } +\cs_set:Npn \zf@fontspec #1 #2 + { + \fontspec_select:nn {#1} {#2} + \tl_set:Nn \zf@family { \l_fontspec_family_tl } + \tl_set:Nn \zf@basefont { \l_fontspec_font } + } +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \subsection{Finishing up} +% Now we just want to set up loading the \texttt{.cfg} file, if it exists. +% \begin{macrocode} +\bool_if:NT \g_@@_cfg_bool + { + \InputIfFileExists{fontspec.cfg} + {} + {\typeout{No~ fontspec.cfg~ file~ found;~ no~ configuration~ loaded.}} + } +% \end{macrocode} +% +% \iffalse +% \begin{macrocode} +%</fontspec&(xetexx|luatex)> +% \end{macrocode} +% \fi |