Debian Codegraph @

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

raw
1 %%% ====================================================================
2 %%% @TeX-font-metrics-file{
3 %%% author = "Alan Jeffrey and Ulrik Vieth and
4 %%% Lars Hellstr{\"o}m",
5 %%% version = "1.923",
6 %%% date = "2003-03-29",
7 %%% time = "01:24:47 +01:00",
8 %%% filename = "llbuild.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 builds upper case latin
17 %%% letters.",
18 %%% package = "fontinst",
19 %%% dependencies = "fontinst.sty, fontdoc.sty",
20 %%% }
21 %%% ====================================================================
22
23 \relax
24
25 \documentclass[twocolumn]{article}
26
27 \usepackage{fontdoc}[2002/03/01]
28 \showbranches
29
30 \title{Building lower case}
31 \author{Alan Jeffrey\and Ulrik Vieth\and Lars Hellstr\"om}
32 \date{5 January 2002\\Version 1.923}
33
34 \begin{document}
35 \maketitle
36
37 \section{Introduction}
38
39 This file builds lower case (small, \texttt{l} case) latin letters,
40 or more precisely, it makes sure that a set of glyphs is defined that
41 cover the lower case letters used in European latin scripts.
42 Even that is a slight exaggeration, because there are a couple of
43 ``exotic'' letters that are missing, but most people never try to use
44 those anyway.
45
46 For the glyphs set in this file to look anything like the letters they
47 are supposed to be, it is necessary that the glyphs for unaccented
48 letters and for accents already exist and look like they are supposed
49 to. In that case, the commands below will manufacture decent
50 substitutes for the missing glyphs by composing letters and accents.
51 If some of these base glyphs are missing, then a ``missing glyph''
52 substitute will be supplied for them. Such substitutes will show up in
53 print as black squares, and most DVI drivers will emit a warning when
54 producing them.
55
56 The most common case encountered is that almost all unaccented letters
57 and accents are available, but only about half of the accented
58 letters. Then for the other half, quite decent substitutes are made,
59 but a few letters only show up as ``missing glyph'' boxes.
60
61
62 \metrics
63
64 \needsfontinstversion{1.910}
65 \usemtxpackage{ltcmds}
66
67 \ProvidesMtxPackage{llbuild}
68
69 \begincomment
70 \section{Lower case base glyphs}
71
72 \subsection{Unfakable glyphs}
73
74 The following commands make sure all the unaccented letter glyphs and
75 accent glyphs are set. If any of them are not already set at this
76 point, then those will be set to ``missing glyph'' boxes.
77 \endcomment
78
79 \unfakable{a}
80 \unfakable{ae}
81 \unfakable{b}
82 \unfakable{c}
83 \unfakable{d}
84 \unfakable{dotlessi}
85 \unfakable{e}
86 \unfakable{eng}
87 \unfakable{eth}
88 \unfakable{f}
89 \unfakable{g}
90 \unfakable{germandbls}
91 \unfakable{h}
92 \unfakable{i}
93 \unfakable{j}
94 \unfakable{k}
95 \unfakable{l}
96 \unfakable{m}
97 \unfakable{n}
98 \unfakable{o}
99 \unfakable{oe}
100 \unfakable{oslash}
101 \unfakable{p}
102 \unfakable{q}
103 \unfakable{r}
104 \unfakable{s}
105 \unfakable{t}
106 \unfakable{thorn}
107 \unfakable{u}
108 \unfakable{v}
109 \unfakable{w}
110 \unfakable{x}
111 \unfakable{y}
112 \unfakable{z}
113
114
115 \unfakabletopaccent{acute}
116 \unfakabletopaccent{breve}
117 \unfakabletopaccent{caron}
118 \unfakable{cedilla}
119 \unfakabletopaccent{circumflex}
120 \unfakabletopaccent{dieresis}
121 \unfakabletopaccent{dotaccent}
122 \unfakabletopaccent{grave}
123 \unfakabletopaccent{hungarumlaut}
124 \unfakable{lslashslash}
125 \unfakabletopaccent{macron}
126 \unfakable{ogonek}
127 \unfakabletopaccent{quoteright}
128 \unfakabletopaccent{ring}
129 \unfakabletopaccent{tilde}
130
131 \begincomment
132 \subsection{Fakable lower case glyphs}
133 \endcomment
134
135 \ifisglyph{dcroat}\then
136 \setglyph{dbar}
137 \glyph{dcroat}{1000}
138 \endsetglyph
139 \Else
140 \setglyph{dbar}
141 \push
142 \movert{\sub{\width{d}}{\width{macron}}}
143 \moveup{
144 \sub{\half{\add{\height{d}}{\int{xheight}}}}
145 {\height{macron}}}
146 \glyph{macron}{1000}
147 \pop
148 \glyph{d}{1000}
149 \endsetglyph
150 \Fi
151 \setleftrightkerning{dbar}{d}{1000}
152
153 \setglyph{dotlessj}
154 \glyph{j}{1000}
155 \resetheight{\int{xheight}}
156 \comment{The reason \texttt{dotlessj} \emph{can} be faked using a
157 \texttt{j} is that it is not a distinct character. Unlike
158 \texttt{dotlessi}, which is in Turkish a letter distinct from
159 \texttt{i}, the only thing \texttt{dotlessj} is ever used for is
160 as the base glyph for accented j's.}
161 \endsetglyph
162 \setleftrightkerning{dotlessj}{j}{1000}
163
164
165 \begincomment
166 \subsection{Aliased lower case glyphs}
167 \endcomment
168
169 \setglyph{ng}
170 \glyph{eng}{1000}
171 \endsetglyph
172 \setleftkerning{ng}{n}{1000}
173 \setrightkerning{ng}{j}{1000}
174
175
176 \begincomment
177 \subsection{Some extra kerning}
178 \endcomment
179
180 \setleftkerning{oe}{o}{1000}
181 \setrightkerning{oe}{e}{1000}
182
183 \setleftrightkerning{oslash}{o}{1000}
184
185
186
187 \begincomment
188 \section{Accented lower case glyphs}
189 \endcomment
190
191 \setglyph{aacute}
192 \topaccent{a}{acute}{500}
193 \endsetglyph
194 \setleftrightkerning{aacute}{a}{1000}
195
196 \setglyph{abreve}
197 \topaccent{a}{breve}{500}
198 \endsetglyph
199 \setleftrightkerning{abreve}{a}{1000}
200
201 \setglyph{acircumflex}
202 \topaccent{a}{circumflex}{500}
203 \endsetglyph
204 \setleftrightkerning{acircumflex}{a}{1000}
205
206 \setglyph{adieresis}
207 \topaccent{a}{dieresis}{500}
208 \endsetglyph
209 \setleftrightkerning{adieresis}{a}{1000}
210
211 \setglyph{agrave}
212 \topaccent{a}{grave}{500}
213 \endsetglyph
214 \setleftrightkerning{agrave}{a}{1000}
215
216 \setglyph{aogonek}
217 \botaccent{a}{ogonek}{850}
218 \endsetglyph
219 \setleftrightkerning{aogonek}{a}{1000}
220
221 \setglyph{aring}
222 \topaccent{a}{ring}{500}
223 \endsetglyph
224 \setleftrightkerning{aring}{a}{1000}
225
226 \setglyph{atilde}
227 \topaccent{a}{tilde}{500}
228 \endsetglyph
229 \setleftrightkerning{atilde}{a}{1000}
230
231 \setglyph{cacute}
232 \topaccent{c}{acute}{500}
233 \endsetglyph
234 \setleftrightkerning{cacute}{c}{1000}
235
236 \setglyph{ccaron}
237 \topaccent{c}{caron}{500}
238 \endsetglyph
239 \setleftrightkerning{ccaron}{c}{1000}
240
241 \setglyph{ccedilla}
242 \botaccent{c}{cedilla}{500}
243 \endsetglyph
244 \setleftrightkerning{ccedilla}{c}{1000}
245
246 \setglyph{dcaron}
247 \glyph{d}{1000}
248 \ifisint{monowidth}\then\Else
249 \movert{-75}
250 \Fi
251 \glyph{quoteright}{1000}
252 \endsetglyph
253 \setleftkerning{dcaron}{d}{1000}
254
255 \setglyph{eacute}
256 \topaccent{e}{acute}{500}
257 \endsetglyph
258 \setleftrightkerning{eacute}{e}{1000}
259
260 \setglyph{ecaron}
261 \topaccent{e}{caron}{500}
262 \endsetglyph
263 \setleftrightkerning{ecaron}{e}{1000}
264
265 \setglyph{ecircumflex}
266 \topaccent{e}{circumflex}{500}
267 \endsetglyph
268 \setleftrightkerning{ecircumflex}{e}{1000}
269
270 \setglyph{edieresis}
271 \topaccent{e}{dieresis}{500}
272 \endsetglyph
273 \setleftrightkerning{edieresis}{e}{1000}
274
275 \setglyph{egrave}
276 \topaccent{e}{grave}{500}
277 \endsetglyph
278 \setleftrightkerning{egrave}{e}{1000}
279
280 \setglyph{eogonek}
281 \botaccent{e}{ogonek}{500}
282 \endsetglyph
283 \setleftrightkerning{eogonek}{e}{1000}
284
285 \setglyph{gbreve}
286 \topaccent{g}{breve}{500}
287 \endsetglyph
288 \setleftrightkerning{gbreve}{g}{1000}
289
290 \setglyph{iacute}
291 \topaccent{dotlessi}{acute}{500}
292 \endsetglyph
293 \setleftrightkerning{iacute}{i}{1000}
294
295 \setglyph{icircumflex}
296 \topaccent{dotlessi}{circumflex}{500}
297 \endsetglyph
298 \setleftrightkerning{icircumflex}{i}{1000}
299
300 \setglyph{idieresis}
301 \topaccent{dotlessi}{dieresis}{500}
302 \endsetglyph
303 \setleftrightkerning{idieresis}{i}{1000}
304
305 \setglyph{idotaccent}
306 \comment{This should be the normal `\texttt{i}', except in
307 smallcaps fonts.}
308 \ifnumber{\height{i}}>{\scale{\int{xheight}}{1050}}\then
309 \comment{Some quick statistics showed that the height of an
310 `\texttt{i}' with dot is usually around 140\% of the
311 x-height, but to be on the safe side we assume all
312 \texttt{i}s whose height exceed 105\% of the x-height to
313 be dotted.}
314 \glyph{i}{1000}
315 \Else
316 \topaccent{i}{dotaccent}{500}
317 \Fi
318 \endsetglyph
319 \setleftrightkerning{idotaccent}{i}{1000}
320
321 \setglyph{igrave}
322 \topaccent{dotlessi}{grave}{500}
323 \endsetglyph
324 \setleftrightkerning{igrave}{i}{1000}
325
326 \setglyph{lacute}
327 \topaccent{l}{acute}{500}
328 \endsetglyph
329 \setleftrightkerning{lacute}{l}{1000}
330
331 \setglyph{lcaron}
332 \glyph{l}{1000}
333 \ifisint{monowidth}\then\Else
334 \movert{-100}
335 \Fi
336 \glyph{quoteright}{1000}
337 \endsetglyph
338 \setleftkerning{lcaron}{l}{1000}
339
340 \setglyph{lslash}
341 \glyph{lslashslash}{1000}
342 \movert{\kerning{lslashslash}{l}}
343 \glyph{l}{1000}
344 \endsetglyph
345 \comment{I'm not sure what this should kern like.}
346
347 \setglyph{nacute}
348 \topaccent{n}{acute}{500}
349 \endsetglyph
350 \setleftrightkerning{nacute}{n}{1000}
351
352 \setglyph{ncaron}
353 \topaccent{n}{caron}{500}
354 \endsetglyph
355 \setleftrightkerning{ncaron}{n}{1000}
356
357 \setglyph{ntilde}
358 \topaccent{n}{tilde}{500}
359 \endsetglyph
360 \setleftrightkerning{ntilde}{n}{1000}
361
362 \setglyph{oacute}
363 \topaccent{o}{acute}{500}
364 \endsetglyph
365 \setleftrightkerning{oacute}{o}{1000}
366
367 \setglyph{ocircumflex}
368 \topaccent{o}{circumflex}{500}
369 \endsetglyph
370 \setleftrightkerning{ocircumflex}{o}{1000}
371
372 \setglyph{odieresis}
373 \topaccent{o}{dieresis}{500}
374 \endsetglyph
375 \setleftrightkerning{odieresis}{o}{1000}
376
377 \setglyph{ograve}
378 \topaccent{o}{grave}{500}
379 \endsetglyph
380 \setleftrightkerning{ograve}{o}{1000}
381
382 \setglyph{ohungarumlaut}
383 \topaccent{o}{hungarumlaut}{500}
384 \endsetglyph
385 \setleftrightkerning{ohungarumlaut}{o}{1000}
386
387 \setglyph{otilde}
388 \topaccent{o}{tilde}{500}
389 \endsetglyph
390 \setleftrightkerning{otilde}{o}{1000}
391
392 \setglyph{racute}
393 \topaccent{r}{acute}{500}
394 \endsetglyph
395 \setleftrightkerning{racute}{r}{1000}
396
397 \setglyph{rcaron}
398 \topaccent{r}{caron}{500}
399 \endsetglyph
400 \setleftrightkerning{rcaron}{r}{1000}
401
402 \setglyph{sacute}
403 \topaccent{s}{acute}{500}
404 \endsetglyph
405 \setleftrightkerning{sacute}{s}{1000}
406
407 \setglyph{scaron}
408 \topaccent{s}{caron}{500}
409 \endsetglyph
410 \setleftrightkerning{scaron}{s}{1000}
411
412 \setglyph{scedilla}
413 \botaccent{s}{cedilla}{500}
414 \endsetglyph
415 \setleftrightkerning{scedilla}{s}{1000}
416
417 \setglyph{tcaron}
418 \glyph{t}{1000}
419 \ifisint{monowidth}\then\Else
420 \movert{-75}
421 \Fi
422 \glyph{quoteright}{1000}
423 \endsetglyph
424 \setleftkerning{tcaron}{t}{1000}
425 \comment{I don't know what this should kern like on the right.}
426
427 \setglyph{tcedilla}
428 \botaccent{t}{cedilla}{500}
429 \endsetglyph
430 \setleftrightkerning{tcedilla}{t}{1000}
431
432 \setglyph{ugrave}
433 \topaccent{u}{grave}{500}
434 \endsetglyph
435 \setleftrightkerning{ugrave}{u}{1000}
436
437 \setglyph{uacute}
438 \topaccent{u}{acute}{500}
439 \endsetglyph
440 \setleftrightkerning{uacute}{u}{1000}
441
442 \setglyph{ucircumflex}
443 \topaccent{u}{circumflex}{500}
444 \endsetglyph
445 \setleftrightkerning{ucircumflex}{u}{1000}
446
447 \setglyph{udieresis}
448 \topaccent{u}{dieresis}{500}
449 \endsetglyph
450 \setleftrightkerning{udieresis}{u}{1000}
451
452 \setglyph{uhungarumlaut}
453 \topaccent{u}{hungarumlaut}{500}
454 \endsetglyph
455 \setleftrightkerning{uhungarumlaut}{u}{1000}
456
457 \setglyph{uring}
458 \topaccent{u}{ring}{500}
459 \endsetglyph
460 \setleftrightkerning{uring}{u}{1000}
461
462 \setglyph{yacute}
463 \topaccent{y}{acute}{500}
464 \endsetglyph
465 \setleftrightkerning{yacute}{y}{1000}
466
467 \setglyph{ydieresis}
468 \topaccent{y}{dieresis}{500}
469 \endsetglyph
470 \setleftrightkerning{ydieresis}{y}{1000}
471
472 \setglyph{zacute}
473 \topaccent{z}{acute}{500}
474 \endsetglyph
475 \setleftrightkerning{zacute}{z}{1000}
476
477 \setglyph{zcaron}
478 \topaccent{z}{caron}{500}
479 \endsetglyph
480 \setleftrightkerning{zcaron}{z}{1000}
481
482 \setglyph{zdotaccent}
483 \topaccentas{z}{dotaccent}{500}{idotaccent}
484 \endsetglyph
485 \setleftrightkerning{zdotaccent}{z}{1000}
486
487
488 \begincomment
489 \section{Lower case ligatures}
490 \endcomment
491
492 \setglyph{fi}
493 \glyph{f}{1000}
494 \movert{\kerning{f}{i}}
495 \glyph{i}{1000}
496 \endsetglyph
497 \setleftkerning{fi}{f}{1000}
498 \setrightkerning{fi}{i}{1000}
499
500 \setglyph{ff}
501 \glyph{f}{1000}
502 \movert{\kerning{f}{f}}
503 \glyph{f}{1000}
504 \endsetglyph
505 \setleftrightkerning{ff}{f}{1000}
506
507 \setglyph{fl}
508 \glyph{f}{1000}
509 \movert{\kerning{f}{l}}
510 \glyph{l}{1000}
511 \endsetglyph
512 \setleftkerning{fl}{f}{1000}
513 \setrightkerning{fl}{l}{1000}
514
515 \setglyph{ffi}
516 \glyph{f}{1000}
517 \movert{\kerning{f}{f}}
518 \glyph{fi}{1000}
519 \endsetglyph
520 \setleftkerning{ffi}{f}{1000}
521 \setrightkerning{ffi}{i}{1000}
522
523 \setglyph{ffl}
524 \glyph{f}{1000}
525 \movert{\kerning{f}{f}}
526 \glyph{fl}{1000}
527 \endsetglyph
528 \setleftkerning{ffl}{f}{1000}
529 \setrightkerning{ffl}{l}{1000}
530
531
532 \setglyph{ij}
533 \glyph{i}{1000}
534 \movert{\kerning{i}{j}}
535 \glyph{j}{1000}
536 \endsetglyph
537 \setleftkerning{ij}{i}{1000}
538 \setrightkerning{ij}{j}{1000}
539
540
541
542
543 \endmetrics
544
545 \section{Changes}
546
547 The original version of this file was created in February 2003,
548 although it is based on code from the traditional \texttt{latin.mtx}.
549 The changes that have been made after that are as follows.
550
551 2003/03/15: Using \verb|\unfakabletopaccent| for the accent
552 characters. This should change the appearence of accented letters
553 built using such a character from ``a black square'' to ``a letter
554 with a black square above''. Neither is satisfactory, but the latter
555 conveys more information. (LH)
556
557 2003/03/15: Modified the construction of `\texttt{zdotaccent}' so that
558 it always has the dot at the same vertical position as a dotted i, as
559 requested by Walter Schmidt. Also added the `\texttt{idotaccent}'
560 glyph to have something to compare with. (LH)
561
562 2003/03/15: Added kerning for ligatures; it seems I had forgotten
563 that. (LH)
564
565 2003/03/29: Added some kerning for non-English unfakable letters. (LH)
566
567 \end{document}
568