| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_codedecl \tenrm {Latin Modern fonts (EC) preloaded <2022-02-12>} % preloaded in format |
| 4 |
|
| 5 |
\_ifx\fontspreload\_relax |
| 6 |
\_let\_tenrm=\_nullfont \_let\_tenbf=\_nullfont \_let\_tenit=\_nullfont |
| 7 |
\_let\_tenbi=\_nullfont \_let\_tentt=\_nullfont |
| 8 |
\_else |
| 9 |
% Only few text fonts are preloaded: |
| 10 |
% allow missing fonts during format generation |
| 11 |
\_suppressfontnotfounderror=1 |
| 12 |
\_font\_tenrm=ec-lmr10 % roman text |
| 13 |
\_font\_tenbf=ec-lmbx10 % boldface extended |
| 14 |
\_font\_tenit=ec-lmri10 % text italic |
| 15 |
\_font\_tenbi=ec-lmbxi10 % bold italic |
| 16 |
\_font\_tentt=ec-lmtt10 % typewriter |
| 17 |
\_suppressfontnotfounderror=0 |
| 18 |
\_fi |
| 19 |
|
| 20 |
\_tenrm |
| 21 |
|
| 22 |
\_public \tenrm \tenbf \tenit \tenbi \tentt ; |
| 23 |
|
| 24 |
\_endcode %--------------------------------------------------- |
| 25 |
|
| 26 |
The format in Lua\TeX/ can download only non-Unicode fonts. Latin Modern EC is |
| 27 |
loaded here. These fonts are totally unusable in \LuaTeX/ when languages with out |
| 28 |
of ASCII or ISO-8859-1 alphabets are used (for example Czech). We load only |
| 29 |
a few 8bit fonts here especially for simple testing of the format. |
| 30 |
But, if the user needs to do more serious work, he/she can |
| 31 |
use \^`\fontfam` macro to load a selected font family of Unicode fonts. |
| 32 |
|
| 33 |
We have a dilemma: when the Unicode fonts cannot be preloaded in the format then the basic |
| 34 |
font set can be loaded by \^`\everyjob`. But why to load a set of fonts at the |
| 35 |
beginning of every job when it is highly likely that the user will |
| 36 |
load something completely different. Our decision is: there is a basic 8bit |
| 37 |
font set in the format (for testing purposes only) and the user should load |
| 38 |
a Unicode font family at beginning of the document. |
| 39 |
|
| 40 |
The fonts selectors \`\tenrm`, \`\tenbf`, \`\tenit`, \`\tenbi`, \`\tentt` |
| 41 |
are declared as `\public` here but only for backward compatibility. We don't |
| 42 |
use them in the Font Selection System. But the protected versions of these |
| 43 |
control sequences are used in the Font Selection System. |
| 44 |
|
| 45 |
If the `*.tfm` files are missing during format generation then the format is |
| 46 |
successfully generated without any pre-loaded fonts. It doesn't matter if each |
| 47 |
document processed by \OpTeX/ declares Unicode fonts. You can create such |
| 48 |
fonts-less format anyway if you set \`\fontspreload` to `\relax` before |
| 49 |
`\input optex.ini`, i.e.: |
| 50 |
`luatex -ini '\let\fontspreload=\relax \input optex.ini'` |
| 51 |
|
| 52 |
\_endinput |
| 53 |
|
| 54 |
2022-02-12: \fontspreload added |
| 55 |
2020-01-23: released |