fontinst, sans serifs and (wrong) ligatures

Till Andreas Heilmann Till.Heilmann@stud.unibas.ch
Wed, 31 Jul 2002 11:40:13 +0200



> There are basically two ways of removing the f-ligatures here. One is to
> make  copies of ot1.etx and t1.etx in which you remove the \ligature
> commands in \setslot{f} ... \endsetslot, and then use these files instead
> of the standard ones (change the third arguments of these \installfont
> commands).

I tried it (with a modified t1nolig.etx), but no effect (I won't attach a
sample PDF file).

I understand your suggestion in principle but don't know if I did
everything correctly, so I post the according files below.

Regards,

Till.

---[instpag.tex]-----------------------------------------------------
\input fontinst.sty
\installfonts
\transformfont{pagk8r}{\reencodefont{8r}{\fromafm{pagk8a}}}
\installfamily{8r}{pag}{}
\installfamily{T1}{pag}{}
\installrawfont{pagk8r}{pagk8r,8r}{8r}{8r}{pag}{b}{n}{}
\installfont{pagk8t}{pagk8r,latin}{T1nolig}{T1}{pag}{b}{n}{}
\endinstallfonts
\bye
---------------------------------------------------------------------



---[instpag.log]-----------------------------------------------------
This is TeX, Version 3.14159 (MiKTeX 2.2) (preloaded format=plain 200
2.7.30)  31 JUL 2002 11:34
**instpag.tex
(instpag.tex (C:\Programs\texmf\tex\fontinst\tex\fontinst.sty
\a_count=\count26
\b_count=\count27
\c_count=\count28
\d_count=\count29
\e_count=\count30
\f_count=\count31
\g_count=\count32
\a_dimen=\dimen16
\b_dimen=\dimen17
\c_dimen=\dimen18
\d_dimen=\dimen19
\a_toks=\toks12
\b_toks=\toks13
\c_toks=\toks14
\out_file=\write0
\half_point=\dimen20

(C:\Programs\texmf\tex\latex\graphics\trig.sty)
\result=\count33
\slot_number=\count34
\glyph_width=\count35
\glyph_height=\count36
\glyph_depth=\count37
\glyph_italic=\count38
\glyph_map_commands=\toks15
\glyph_map_fonts=\toks16
\glyph_voffset=\count39
\glyph_maxhpos=\count40
\mapfont_scaling=\dimen21
\rawfont_scaling=\dimen22
\side_bearings=\dimen23
\curr_bearings=\dimen24
\font_count=\count41
\next_mapfont=\count42
\prev_mapfont=\count43
\family_toks=\toks17
\minimum_kern=\count44
\afm_unit_dimen=\dimen25
\char_slot=\count45
\char_x_width=\count46
\x_width=\count47
\bbox_llx=\count48
\bbox_lly=\count49
\bbox_urx=\count50
\bbox_ury=\count51
\command_survivance=\count52

No file fontinst.rc.
) (pagk8a.afm)
Metrics written on pagk8a.mtx.
(pagk8a.mtx)
Raw font written on pagk8a.pl.
(C:\Programs\texmf\tex\fontinst\etx\8r.etx) (pagk8a.mtx)
Transformed metrics written on pagk8r.mtx.
(pagk8r.mtx)
Raw font written on pagk8r.pl.
(pagk8r.mtx) (C:\Programs\texmf\tex\fontinst\mtx\8r.mtx)
(C:\Programs\texmf\tex\fontinst\etx\8r.etx)
(C:\Programs\texmf\tex\fontinst\etx\8r.etx
Warning: \ligature for unknown slot `ffi'.
Warning: \ligature for unknown slot `ffl'.
Warning: \ligature for unknown slot `ff'.
) (C:\Programs\texmf\tex\fontinst\etx\8r.etx)
Font written on pagk8r.pl.
(pagk8r.mtx) (C:\Programs\texmf\tex\fontinst\mtx\latin.mtx)
(d:\till\usertexmf\tex\fontinst\t1nolig.etx)
(d:\till\usertexmf\tex\fontinst\t1nolig.etx)
(d:\till\usertexmf\tex\fontinst\t1nolig.etx)
(d:\till\usertexmf\tex\fontinst\t1nolig.etx
Warning: missing glyph `perthousandzero'.
Warning: missing glyph `dotlessj'.
Warning: missing glyph `Eng'.
Warning: missing glyph `eng'.
)
Virtual font written on pagk8t.vpl.
Font definitions written on 8rpag.fd.
Font definitions written on t1pag.fd.
 )
No pages of output.
---------------------------------------------------------------------



---[t1.etx]----------------------------------------------------------
\setslot{\lclig{FF}{ff}}
   \ligature{LIG}{\lc{I}{i}}{\lclig{FFI}{ffi}}
   \ligature{LIG}{\lc{L}{l}}{\lclig{FFL}{ffl}}
   \comment{The `ff' ligature.  It should be two characters wide in a
      monowidth font.}
\endsetslot

\setslot{\lc{F}{f}}
\ifisint{monowidth}\then\else
   \ligature{LIG}{\lc{I}{i}}{\lclig{FI}{fi}}
   \ligature{LIG}{\lc{F}{f}}{\lclig{FF}{ff}}
   \ligature{LIG}{\lc{L}{l}}{\lclig{FL}{fl}}
\fi
   \comment{The letter `{f}'.}
\endsetslot
---------------------------------------------------------------------



---[t1nolig.etx]-----------------------------------------------------
\setslot{\lclig{FF}{ff}}
   \comment{The `ff' ligature.  It should be two characters wide in a
      monowidth font.}
\endsetslot

\setslot{\lc{F}{f}}
\ifisint{monowidth}\then\else
\fi
   \comment{The letter `{f}'.}
\endsetslot
---------------------------------------------------------------------



---[sample.tex]------------------------------------------------------
\documentclass{article}
\usepackage[T1]{fontenc}
\renewcommand{\sfdefault}{pag}
\begin{document}
\thispagestyle{empty}
\sffamily
\LARGE\fontseries{k}\selectfont
\noindent Im fliessenden Wasser fischt der Affe gut.\\
Im f\/l\/iessenden Wasser f\/ischt der Af\/fe gut.\\
\end{document}
---------------------------------------------------------------------