[luatex] fontloader in iniTeX

Hans Hagen pragma at wxs.nl
Sun Aug 14 13:51:35 CEST 2016

On 8/14/2016 12:27 PM, Pali Rohár wrote:
> On Sunday 14 August 2016 12:10:21 Hans Hagen wrote:
>> On 8/13/2016 11:48 PM, Pali Rohár wrote:
>>> On Tuesday 09 August 2016 14:08:39 Hans Hagen wrote:
>>>> it all depends on what you want to do:
>>> Using fontloader to load both OTF and TFM+PFB fonts.
>>>> On 8/9/2016 12:28 PM, Pali Rohár wrote:
>>>>> And problem is with \rm and default loaded font.
>>>> no problem .. all a matter of proper definitions
>>> I tried to postpone \font definition from iniTeX via \everyjob...
>>> but I'm unable to preload plain.tex into dump as it calls
>>> \skewchar, \textfont and other font definitions...
>> then load them at initime and afterwards redefine the font ones
> But that drop all \skewchar, \textfont and other definitions as those
> commands use fonts at time of assignment. So if I redefine font \tenrm
> then \textfont will still use old font...

not if you let everyjob reload \textfont in the same way

>> also, plain loads traditional tfm files and if you load some other
>> font, say a csr one, it's no longer plain and you then can as well
>> add extra code to deal with this
> It is slightly modified, but still plain:
> http://texdoc.net/texmf-dist/tex/csplain/base/csplain.ini
> http://texdoc.net/texmf-dist/tex/csplain/base/csfonts.tex

so slightly modify it a bit more -)

> It basically replace cm* fonts with cs* (cs* are just extension and
> fully backward compatible with cm*), set A4 format, load also Slovak
> hyphenation patterns and in pdfTeX uses encTeX for UTF-8 support.
> So I would say it is still plain, just for Slovak texts.

so why not load the fonts runtime

\everyjob{\input csfonts.tex }

in fact, plain is small enough to just load it each time i.e. csplain 
for luatex can be just

\everyjob {\input csplain.tex }

> But in LuaTeX for loading cs* fonts is needed your fontloader with
> TFM+PFB support, for original Knuth's cm* fonts not.
>> if you want to use unicode, plain has to be extended anyway as math
>> is also unicode then


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the luatex mailing list