[luatex] fontloader in iniTeX

Pali Rohár pali.rohar at gmail.com
Tue Aug 9 12:28:05 CEST 2016


On Tuesday 09 August 2016 11:02:37 Hans Hagen wrote:
> On 8/9/2016 10:00 AM, Pali Rohár wrote:
> >On Tuesday 09 August 2016 09:44:44 Hans Hagen wrote:
> >>On 8/9/2016 9:41 AM, Pali Rohár wrote:
> >>>On Sunday 31 July 2016 12:16:59 Pali Rohár wrote:
> >>>>Hi!
> >>>>
> >>>>I tried to preload csr10 font with fontloader into TeX format during
> >>>>iniTeX run:
> >>>>
> >>>>\font\csr=file:csr10.tfm:reencode=auto;mode=node;liga=yes;kern=yes
> >>>>
> >>>>On output terminal I see these lines:
> >>>>
> >>>>\font\csr=csr10
> >>>>\font\^^@=csr10
> >>>>
> >>>>But when I tried to use that \csr font in document then all ligatures
> >>>>and kerning are ignored (or not used). Any idea where is problem?
> >>>>
> >>>>Note that font is correctly encoded and everything looks good, just
> >>>>output looks to be same as if font was loaded without liga=yes;kern=yes
> >>>>parameters...
> >>>>
> >>>
> >>>Hans, any idea why kerns are ignored when font is dumped into format
> >>>during iniTeX run?
> >>
> >>don't dump fonts, just load then at runtime  (it's fast enough)
> >
> >I just want to have \ten* definitions so macros \rm \it \tt ... works
> >automatically without need to re-define them in every one document.
> >
> >I do not like idea to define all those macros everytime in everyone
> >document... As I think that for these situation can be TeX format used.
> 
> then define the \tt in such a way that the first thing it does is to load a
> font

For \tt some "hack" as you suggest is possible, but there are also
problems with \fam fonts used in math mode.

And problem is with \rm and default loaded font.

> >Anyway, it is limitation of fontloader or bug?
> 
> a feature

In this way, it is not possible to dump any font into format :-( which
also means that there is also no default font when starting tex.

-- 
Pali Rohár
pali.rohar at gmail.com


More information about the luatex mailing list