-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ~30s to load Source Han CJK fonts #279
Comments
I don't have the After initially building the caches I get further runs in 2.6 seconds. That's slow, but much faster than 44s and not primarily caused by luaotfload. This was tested with system fonts in Arch Linux. Do you still have the issue also without Please also attach your log file. |
Sorry I changed the MWE so that no |
console output
https://paste.c-net.org/LaurieBeets log file |
Another MWE using \documentclass{article}
\usepackage{fontspec}
\setmainfont{Source Han Serif CN}[BoldFont=Source Han Sans CN Medium]
\title{\textbf{作业}}
\author{作业}
\date{\today}
\begin{document}
\maketitle
正文123
\end{document} log: https://paste.c-net.org/ValidityTanaka Time: 41s
|
Delete the |
Another question may be the same: https://tex.stackexchange.com/questions/75118/why-does-it-take-lualatex-so-long-to-load-fonts-and-can-i-speed-it-up which also use 30~40s to load a font. mwe2.log if its not a lipsum which I need 2 runs of lualatex a
```
(base) [firestar@Archlinux Documents]$ latexmk -lualatex -bibtex -synctex=1 -interaction=nonstopmode -file-line-error --shell-escape mwe2.tex
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 31 Jan. 2024. Version 4.83.
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex': Reasons for rerun
Category 'other':
Rerun of 'lualatex' forced or previously required:
Reason or flag: 'Initial setup'
Run number 1 of rule 'lualatex'Running 'lualatex -synctex=1 -interaction=nonstopmode -file-line-error --shell-escape -recorder "mwe2.tex"'This is LuaHBTeX, Version 1.18.0 (TeX Live 2024) Package lipsum Warning: Unknown language 'latin'. Hyphenation patterns for Overfull \hbox (2.17365pt too wide) in paragraph at lines 12--12 Run number 2 of rule 'lualatex'Running 'lualatex -synctex=1 -interaction=nonstopmode -file-line-error --shell-escape -recorder "mwe2.tex"'This is LuaHBTeX, Version 1.18.0 (TeX Live 2024) Package lipsum Warning: Unknown language 'latin'. Hyphenation patterns for Overfull \hbox (2.17365pt too wide) in paragraph at lines 12--12 [ble: elapsed 16.611s (CPU 99.6%)] latexmk -lualatex -bibtex -synctex=1 -interaction=nonstopmode -file-line-er
|
You seem to be using ArchLinux, but your font is stored in |
Both files exist on my system, one of them is installed manually from my USB drive (with a large collection of fonts), the other is installed by pacman. I tried to delete the manually installed one, and use the pacman installed one to compile The first time use ~6s, and after it the compile use ~1s
So what about other manually installed fonts? Do they have a recommended location other than |
Also I found that But for english fonts, the time shortage between default/manual installed font is not so obvious, which is both ~780ms |
You shouldn't manually install files into system directories period. You could make packages yourself, which should declare |
Issue maybe related to #49
Multiple tests see CTeX-org/ctex-kit#708
in a simple mwe:
It take ~44s to compile and although luaotfload generate font cache, the next compile still need ~44s
The text was updated successfully, but these errors were encountered: