Debian Codegraph @

texmf-dist/tex/fontinst/latinmtx/newlatin.mtx

raw
1 %%% ====================================================================
2 %%% @TeX-font-metrics-file{
3 %%% author = "Alan Jeffrey and Ulrik Vieth and
4 %%% Lars Hellstr{\"o}m",
5 %%% version = "1.924",
6 %%% date = "2003-03-29",
7 %%% time = "16:28:28 +01:00",
8 %%% filename = "newlatin.mtx",
9 %%% email = "[email protected]",
10 %%% URL = "http://www.tug.org/applications/fontinst/",
11 %%% checksum = "",
12 %%% codetable = "ISO/ASCII",
13 %%% keywords = "metrics, TeX, PostScript",
14 %%% supported = "yes",
15 %%% abstract = "This is a font metrics file, for use with the
16 %%% fontinst utility. It provides the defaults
17 %%% used to install the Latin glyphs.",
18 %%% package = "fontinst",
19 %%% dependencies = "fontinst.sty, fontdoc.sty",
20 %%% }
21 %%% ====================================================================
22
23 \relax
24
25 \documentclass[twocolumn]{article}
26
27 \usepackage{fontdoc}[2003/02/09]
28 \showbranches
29
30 \title{The \textsf{fontinst} latin glyphs, modernized}
31 \author{Alan Jeffrey\and Ulrik Vieth\and Lars Hellstr\"om}
32 \date{16 February 2003}
33
34 \begin{document}
35 \maketitle
36
37 \section{Introduction}
38
39 This document lists commands for the \textsf{fontinst} utility that
40 will generate the glyphs needed to make a set of latin fonts. The
41 intent is that this file should replace the old \texttt{latin.mtx}
42 as the generic ``fixer'' for latin fonts---doing a decent job both
43 when proper smallcaps is available and when it is not.
44
45 Most of the actual commands are however to be found in other files,
46 which this file uses. This modular design is meant to simplify tuning
47 the process, for example by adjusting the accent positions to better
48 suit particular fonts.
49
50
51 \metrics
52
53 \needsfontinstversion{1.924}
54
55 \usemtxpackage{llbuild}
56
57 \usemtxpackage{lubuild}
58
59 \ifoption{nosc}\then \Else
60
61 \usemtxpackage{lsbuild}
62 \usemtxpackage{lsfake}
63 \usemtxpackage{lsmisc}
64
65 \Fi
66
67 \usemtxpackage{ltpunct}
68
69 \begincomment
70 \section{\texttt{OT1} oddities}
71
72 One important, although also deprecated, encoding for latin text
73 fonts is the \texttt{OT1} encoding. Besides being a text font
74 encoding, that makes double service as a math font encoding, and
75 this imposes some extra restrictions.
76
77 \subsection{Greek capitals}
78 \endcomment
79
80 \usemtxpackage{ltcmds}
81
82 \unfakable{Gamma}
83 \unfakable{Delta}
84 \unfakable{Theta}
85 \unfakable{Lambda}
86 \unfakable{Xi}
87 \unfakable{Pi}
88 \unfakable{Sigma}
89 \unfakable{Upsilon}
90 \unfakable{Upsilon1}
91 \unfakable{Phi}
92 \unfakable{Psi}
93 \unfakable{Omega}
94
95 \begincomment
96 \subsection{Math accents}
97
98 \TeX's math accent-positioning requires accents to have zero depth.
99 \endcomment
100
101 \foreach(accent){grave,acute,circumflex,tilde,dieresis,hungarumlaut,%
102 ring,caron,breve,macron,dotaccent}
103 \ifisglyph{\str{accent}}\then
104 \resetglyph{\str{accent}}
105 \glyph{\str{accent}}{1000}
106 \resetdepth{0}
107 \endresetglyph
108 \Fi
109 \endfor(accent)
110
111 % \setcommand\zerodepth#1{
112 % \ifisglyph{#1}\then
113 % \resetglyph{#1}
114 % \glyph{#1}{1000}
115 % \resetdepth{0}
116 % \endresetglyph
117 % \Fi
118 % }
119 % \zerodepth{grave}
120 % \zerodepth{acute}
121 % \zerodepth{circumflex}
122 % \zerodepth{tilde}
123 % \zerodepth{dieresis}
124 % \zerodepth{hungarumlaut}
125 % \zerodepth{ring}
126 % \zerodepth{caron}
127 % \zerodepth{breve}
128 % \zerodepth{macron}
129 % \zerodepth{dotaccent}
130
131
132 \begincomment
133 \subsection{The ring accent}
134
135 The \texttt{OT1} definition of \r{A} (that does not make use of
136 \verb|\accent|) assumes that the ring accent glyph has the same width
137 as \texttt{A}. Hence this special \texttt{ringfitted} glyph.
138 \endcomment
139
140 \setglyph{ringfitted}
141 \movert{\half{\sub{\width{A}}{\width{ring}}}}
142 \glyph{ring}{1000}
143 \movert{\otherhalf{\sub{\width{A}}{\width{ring}}}}
144 \endsetglyph
145
146
147 \begincomment
148 \section{\texttt{T1} oddities}
149
150 Even the modern \texttt{T1} encoding has some odd traits. The most
151 notable is that the guillemet glyphs \texttt{guillemotleft} and
152 \texttt{guillemotright} can be formed as ligatures from a pair of
153 \texttt{less}s and \texttt{greater}s respectively. Then to get the
154 right kerning on the left side of the two former glyphs, the two
155 latter must kern like them!
156 \endcomment
157
158 \setleftkerning{less}{guillemotleft}{1000}
159 \setleftkerning{greater}{guillemotright}{1000}
160
161
162 \endmetrics
163
164
165 \section{Changes}
166
167 The original version of this file was created in February 2003,
168 although it is based on code from the traditional \texttt{latin.mtx}.
169 The changes that have been made after that are listed below, but see
170 also the files containing the individual metric packages for any
171 changes made to those files.
172
173
174 \end{document}
175
176
177 %
178 % Copyright 1993, 1994, 1995, 1996 Alan Jeffrey,
179 % hacked and maintained 1997, 1998 Sebastian Rahtz,
180 % copyright 1998, 1999, 2000, 2003 the fontinst maintenance team and
181 % any individual authors listed elsewhere in this file.
182 % All rights reserved.
183 %
184 % This file is part of the fontinst system version 1.9.
185 % -----------------------------------------------------
186 %
187 % It may be distributed under the terms of the LaTeX Project Public
188 % License, as described in lppl.txt in the base LaTeX distribution.
189 % Either version 1.2 or, at your option, any later version.
190 %