summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/fontinst/latinmtx/newlatin.mtx
blob: 083dfe259b7601834bef5d5e4f2c981d3a4836b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
%%% ====================================================================
%%%  @TeX-font-metrics-file{
%%%     author          = "Alan Jeffrey and Ulrik Vieth and
%%%                        Lars Hellstr{\"o}m",
%%%     version         = "1.924",
%%%     date            = "2003-03-29",
%%%     time            = "16:28:28 +01:00",
%%%     filename        = "newlatin.mtx",
%%%     email           = "fontinst@tug.org",
%%%     URL             = "http://www.tug.org/applications/fontinst/",
%%%     checksum        = "",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "metrics, TeX, PostScript",
%%%     supported       = "yes",
%%%     abstract        = "This is a font metrics file, for use with the
%%%                        fontinst utility. It provides the defaults
%%%                        used to install the Latin glyphs.",
%%%     package         = "fontinst",
%%%     dependencies    = "fontinst.sty, fontdoc.sty",
%%%  }
%%% ====================================================================

\relax

\documentclass[twocolumn]{article}

\usepackage{fontdoc}[2003/02/09]
\showbranches

\title{The \textsf{fontinst} latin glyphs, modernized}
\author{Alan Jeffrey\and Ulrik Vieth\and Lars Hellstr\"om}
\date{16 February 2003}

\begin{document}
\maketitle

\section{Introduction}

This document lists commands for the \textsf{fontinst} utility that 
will generate the glyphs needed to make a set of latin fonts. The 
intent is that this file should replace the old \texttt{latin.mtx} 
as the generic ``fixer'' for latin fonts---doing a decent job both 
when proper smallcaps is available and when it is not. 

Most of the actual commands are however to be found in other files, 
which this file uses. This modular design is meant to simplify tuning 
the process, for example by adjusting the accent positions to better 
suit particular fonts.


\metrics

\needsfontinstversion{1.924}

\usemtxpackage{llbuild}

\usemtxpackage{lubuild}

\ifoption{nosc}\then \Else

\usemtxpackage{lsbuild}
\usemtxpackage{lsfake}
\usemtxpackage{lsmisc}

\Fi

\usemtxpackage{ltpunct}

\begincomment
\section{\texttt{OT1} oddities}

One important, although also deprecated, encoding for latin text 
fonts is the \texttt{OT1} encoding. Besides being a text font 
encoding, that makes double service as a math font encoding, and 
this imposes some extra restrictions.

\subsection{Greek capitals}
\endcomment

\usemtxpackage{ltcmds}

\unfakable{Gamma}
\unfakable{Delta}
\unfakable{Theta}
\unfakable{Lambda}
\unfakable{Xi}
\unfakable{Pi}
\unfakable{Sigma}
\unfakable{Upsilon}
\unfakable{Upsilon1}
\unfakable{Phi}
\unfakable{Psi}
\unfakable{Omega}

\begincomment
\subsection{Math accents}

\TeX's math accent-positioning requires accents to have zero depth.
\endcomment

\foreach(accent){grave,acute,circumflex,tilde,dieresis,hungarumlaut,%
      ring,caron,breve,macron,dotaccent}
   \ifisglyph{\str{accent}}\then
      \resetglyph{\str{accent}}
         \glyph{\str{accent}}{1000}
         \resetdepth{0}
      \endresetglyph
   \Fi
\endfor(accent)

% \setcommand\zerodepth#1{
%    \ifisglyph{#1}\then
%       \resetglyph{#1}
%          \glyph{#1}{1000}
%          \resetdepth{0}
%       \endresetglyph
%    \Fi
% }
% \zerodepth{grave}
% \zerodepth{acute}
% \zerodepth{circumflex}
% \zerodepth{tilde}
% \zerodepth{dieresis}
% \zerodepth{hungarumlaut}
% \zerodepth{ring}
% \zerodepth{caron}
% \zerodepth{breve}
% \zerodepth{macron}
% \zerodepth{dotaccent}


\begincomment
\subsection{The ring accent}

The \texttt{OT1} definition of \r{A} (that does not make use of 
\verb|\accent|) assumes that the ring accent glyph has the same width 
as \texttt{A}. Hence this special \texttt{ringfitted} glyph.
\endcomment

\setglyph{ringfitted}
   \movert{\half{\sub{\width{A}}{\width{ring}}}}
   \glyph{ring}{1000}
   \movert{\otherhalf{\sub{\width{A}}{\width{ring}}}}
\endsetglyph


\begincomment
\section{\texttt{T1} oddities}

Even the modern \texttt{T1} encoding has some odd traits. The most 
notable is that the guillemet glyphs \texttt{guillemotleft} and
\texttt{guillemotright} can be formed as ligatures from a pair of 
\texttt{less}s and \texttt{greater}s respectively. Then to get the 
right kerning on the left side of the two former glyphs, the two 
latter must kern like them!
\endcomment

\setleftkerning{less}{guillemotleft}{1000}
\setleftkerning{greater}{guillemotright}{1000}


\endmetrics


\section{Changes}

The original version of this file was created in February 2003, 
although it is based on code from the traditional \texttt{latin.mtx}. 
The changes that have been made after that are listed below, but see 
also the files containing the individual metric packages for any 
changes made to those files.


\end{document}


% 
% Copyright 1993, 1994, 1995, 1996 Alan Jeffrey,
% hacked and maintained 1997, 1998 Sebastian Rahtz,
% copyright 1998, 1999, 2000, 2003 the fontinst maintenance team and 
% any individual authors listed elsewhere in this file.  
% All rights reserved.
%
% This file is part of the fontinst system version 1.9.
% -----------------------------------------------------
%
% It may be distributed under the terms of the LaTeX Project Public
% License, as described in lppl.txt in the base LaTeX distribution.
% Either version 1.2 or, at your option, any later version.
%