latex3 / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
1.82k stars 251 forks source link

TS1 fd file input every run with Unicode engines #1383

Open davidcarlisle opened 2 weeks ago

davidcarlisle commented 2 weeks ago

Minimal example showing the current behaviour

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}

\begin{document}
x
\end{document}

This inputs

/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd

at begin document as latex checks the default setup for TS1 encoding. 8 bit formats have already input this file but for Unicode engines ts1lmr.fd is preloaded but the cm one is then loaded at run time.

We could preload the fd file during format creation at the time other fd files are preloaded.