Debian Codegraph @

texmf-dist/tex/fontinst/latinmtx/lubuild.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 = "16:12:42 +01:00",
8 %%% filename = "lubuild.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 upper case}
31 \author{Alan Jeffrey\and Ulrik Vieth\and Lars Hellstr\"om}
32 \date{4 January 2002\\Version 1.923}
33
34 \begin{document}
35 \maketitle
36
37 \section{Introduction}
38
39 This file builds upper case (full capitals, \texttt{u} case) latin
40 letters, or more precisely, it makes sure that a set of glyphs is
41 defined that cover the upper 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{lubuild}
68
69 \begincomment
70 \section{Base upper case glyphs}
71
72 The following commands make sure all the unaccented letter glyphs and
73 accent glyphs are set. If any of them are not already set at this
74 point, then those will be set to ``missing glyph'' boxes.
75
76 \subsection{Letters}
77 \endcomment
78
79 \unfakable{A}
80 \unfakable{AE}
81 \unfakable{B}
82 \unfakable{C}
83 \unfakable{D}
84 \unfakable{E}
85 \unfakable{Eng}
86 \unfakable{Eth}
87 \unfakable{F}
88 \unfakable{G}
89 \unfakable{H}
90 \unfakable{I}
91 \unfakable{J}
92 \unfakable{K}
93 \unfakable{L}
94 \unfakable{M}
95 \unfakable{N}
96 \unfakable{O}
97 \unfakable{OE}
98 \unfakable{Oslash}
99 \unfakable{P}
100 \unfakable{Q}
101 \unfakable{R}
102 \unfakable{S}
103 \unfakable{T}
104 \unfakable{Thorn}
105 \unfakable{U}
106 \unfakable{V}
107 \unfakable{W}
108 \unfakable{X}
109 \unfakable{Y}
110 \unfakable{Z}
111
112 \begincomment
113 \subsection{Accents}
114
115 The accents on designed full capitals are often different from the
116 accents on lower case letters: strokes are generally at a smaller
117 angle to the horizontal, so that the accent is compressed in the
118 vertical direction. Most fonts do not provide those accents as
119 separate characters, but one should nonetheless try to use them
120 whenever possible. The standard names appear (see for example the
121 \emph{Adobe Glyph List}) to be the same as for the
122 normal accents, but with the first letter in upper case.
123 When these accents are not available, it is anyway
124 possible to make do with the ordinary accents.
125 \endcomment
126
127
128 \unfakabletopaccent{grave}
129 \unfakabletopaccent{acute}
130 \unfakabletopaccent{circumflex}
131 \unfakabletopaccent{tilde}
132 \unfakabletopaccent{dieresis}
133 \unfakabletopaccent{hungarumlaut}
134 \unfakabletopaccent{ring}
135 \unfakabletopaccent{caron}
136 \unfakabletopaccent{breve}
137 \unfakabletopaccent{macron}
138 \unfakabletopaccent{dotaccent}
139 \unfakable{cedilla}
140 \unfakable{ogonek}
141 \unfakable{quoteright}
142 \unfakable{lslashslash}
143
144
145 \setglyph{Acute}
146 \glyph{acute}{1000}
147 \endsetglyph
148
149 \setglyph{Grave}
150 \glyph{grave}{1000}
151 \endsetglyph
152
153 \setglyph{Circumflex}
154 \glyph{circumflex}{1000}
155 \endsetglyph
156
157 \setglyph{Tilde}
158 \glyph{tilde}{1000}
159 \endsetglyph
160
161 \setglyph{Dieresis}
162 \glyph{dieresis}{1000}
163 \endsetglyph
164
165 \setglyph{Breve}
166 \glyph{breve}{1000}
167 \endsetglyph
168
169 \setglyph{Dotaccent}
170 \glyph{dotaccent}{1000}
171 \endsetglyph
172
173 \setglyph{Caron}
174 \glyph{caron}{1000}
175 \endsetglyph
176
177 \setglyph{Hungarumlaut}
178 \glyph{hungarumlaut}{1000}
179 \endsetglyph
180
181 \setglyph{Ring}
182 \glyph{ring}{1000}
183 \endsetglyph
184
185 \setglyph{Macron}
186 \glyph{macron}{1000}
187 \endsetglyph
188
189 \setglyph{Cedilla}
190 \glyph{cedilla}{1000}
191 \endsetglyph
192
193 \setglyph{Ogonek}
194 \glyph{ogonek}{1000}
195 \endsetglyph
196
197 \begincomment
198 Note that the \TeX\ accenting algorithm assumes that accents are
199 positioned correctly for being placed on a letter whose height is the
200 x-height. It might happen that a font with special upper case accents,
201 made for use with some other typesetting engine, instead has these
202 glyphs positioned correctly for being placed on a capital. In such a
203 case, one would first have to adjust the accent positions before they
204 can be used.
205 \endcomment
206
207
208 \begincomment
209 \section{Building accented letters}
210 \endcomment
211
212
213 \setglyph{Aacute}
214 \topaccent{A}{Acute}{500}
215 \endsetglyph
216
217 \setglyph{Abreve}
218 \topaccent{A}{Breve}{500}
219 \endsetglyph
220
221 \setglyph{Acircumflex}
222 \topaccent{A}{Circumflex}{500}
223 \endsetglyph
224
225 \setglyph{Adieresis}
226 \topaccent{A}{Dieresis}{500}
227 \endsetglyph
228
229 \setglyph{Agrave}
230 \topaccent{A}{Grave}{500}
231 \endsetglyph
232
233 \setglyph{Aogonek}
234 \botaccent{A}{Ogonek}{900}
235 \endsetglyph
236
237 \setglyph{Aring}
238 \topaccent{A}{Ring}{500}
239 \endsetglyph
240
241 \setglyph{Atilde}
242 \topaccent{A}{Tilde}{500}
243 \endsetglyph
244
245 \setglyph{Cacute}
246 \topaccent{C}{Acute}{500}
247 \endsetglyph
248
249 \setglyph{Ccaron}
250 \topaccent{C}{Caron}{500}
251 \endsetglyph
252
253 \setglyph{Ccedilla}
254 \botaccent{C}{Cedilla}{500}
255 \endsetglyph
256
257 \setglyph{Dcaron}
258 \topaccent{D}{Caron}{450}
259 \endsetglyph
260
261 \setglyph{Eacute}
262 \topaccent{E}{Acute}{500}
263 \endsetglyph
264
265 \setglyph{Ecaron}
266 \topaccent{E}{Caron}{500}
267 \endsetglyph
268
269 \setglyph{Ecircumflex}
270 \topaccent{E}{Circumflex}{500}
271 \endsetglyph
272
273 \setglyph{Edieresis}
274 \topaccent{E}{Dieresis}{500}
275 \endsetglyph
276
277 \setglyph{Egrave}
278 \topaccent{E}{Grave}{500}
279 \endsetglyph
280
281 \setglyph{Eogonek}
282 \botaccent{E}{Ogonek}{850}
283 \endsetglyph
284
285 \setglyph{Gbreve}
286 \topaccent{G}{Breve}{500}
287 \endsetglyph
288
289 \setglyph{Iacute}
290 \topaccent{I}{Acute}{500}
291 \endsetglyph
292
293 \setglyph{Icircumflex}
294 \topaccent{I}{Circumflex}{500}
295 \endsetglyph
296
297 \setglyph{Idieresis}
298 \topaccent{I}{Dieresis}{500}
299 \endsetglyph
300
301 \setglyph{Idotaccent}
302 \topaccent{I}{Dotaccent}{500}
303 \endsetglyph
304
305 \setglyph{Igrave}
306 \topaccent{I}{Grave}{500}
307 \endsetglyph
308
309 \setglyph{Lacute}
310 \topaccent{L}{Acute}{250}
311 \endsetglyph
312
313 \setglyph{Lcaron}
314 \glyph{L}{1000}
315 \ifisint{monowidth}\then\Else
316 \movert{-200}
317 \Fi
318 \glyph{quoteright}{1000}
319 \endsetglyph
320
321 \setglyph{Nacute}
322 \topaccent{N}{Acute}{500}
323 \endsetglyph
324
325 \setglyph{Ncaron}
326 \topaccent{N}{Caron}{500}
327 \endsetglyph
328
329 \setglyph{Ntilde}
330 \topaccent{N}{Tilde}{500}
331 \endsetglyph
332
333 \setglyph{Oacute}
334 \topaccent{O}{Acute}{500}
335 \endsetglyph
336
337 \setglyph{Ocircumflex}
338 \topaccent{O}{Circumflex}{500}
339 \endsetglyph
340
341 \setglyph{Odieresis}
342 \topaccent{O}{Dieresis}{500}
343 \endsetglyph
344
345 \setglyph{Ograve}
346 \topaccent{O}{Grave}{500}
347 \endsetglyph
348
349 \setglyph{Ohungarumlaut}
350 \topaccent{O}{Hungarumlaut}{500}
351 \endsetglyph
352
353 \setglyph{Otilde}
354 \topaccent{O}{Tilde}{500}
355 \endsetglyph
356
357 \setglyph{Racute}
358 \topaccent{R}{Acute}{500}
359 \endsetglyph
360
361 \setglyph{Rcaron}
362 \topaccent{R}{Caron}{500}
363 \endsetglyph
364
365 \setglyph{Sacute}
366 \topaccent{S}{Acute}{500}
367 \endsetglyph
368
369 \setglyph{Scaron}
370 \topaccent{S}{Caron}{500}
371 \endsetglyph
372
373 \setglyph{Scedilla}
374 \botaccent{S}{Cedilla}{500}
375 \endsetglyph
376
377 \setglyph{Tcaron}
378 \topaccent{T}{Caron}{500}
379 \endsetglyph
380
381 \setglyph{Tcedilla}
382 \botaccent{T}{Cedilla}{500}
383 \endsetglyph
384
385 \setglyph{Uacute}
386 \topaccent{U}{Acute}{500}
387 \endsetglyph
388
389 \setglyph{Ucircumflex}
390 \topaccent{U}{Circumflex}{500}
391 \endsetglyph
392
393 \setglyph{Udieresis}
394 \topaccent{U}{Dieresis}{500}
395 \endsetglyph
396
397 \setglyph{Ugrave}
398 \topaccent{U}{Grave}{500}
399 \endsetglyph
400
401 \setglyph{Uhungarumlaut}
402 \topaccent{U}{Hungarumlaut}{500}
403 \endsetglyph
404
405 \setglyph{Uring}
406 \topaccent{U}{Ring}{500}
407 \endsetglyph
408
409 \setglyph{Yacute}
410 \topaccent{Y}{Acute}{500}
411 \endsetglyph
412
413 \setglyph{Ydieresis}
414 \topaccent{Y}{Dieresis}{500}
415 \endsetglyph
416
417 \setglyph{Zacute}
418 \topaccent{Z}{Acute}{500}
419 \endsetglyph
420
421 \setglyph{Zcaron}
422 \topaccent{Z}{Caron}{500}
423 \endsetglyph
424
425 \setglyph{Zdotaccent}
426 \topaccent{Z}{Dotaccent}{500}
427 \endsetglyph
428
429
430 \begincomment
431 \section{Other glyphs that can be built}
432 \endcomment
433
434 \setglyph{Lslash}
435 \glyph{lslashslash}{1000}
436 \movert{\kerning{lslashslash}{L}}
437 \glyph{L}{1000}
438 \endsetglyph
439
440 \setglyph{Ng}
441 \glyph{Eng}{1000}
442 \comment{This is simply an alias.}
443 \endsetglyph
444
445 \setglyph{dotlessI}
446 \glyph{I}{1000}
447 \comment{This simplifies making all-caps fonts.}
448 \endsetglyph
449
450 \setglyph{dotlessJ}
451 \glyph{J}{1000}
452 \comment{This simplifies making all-caps fonts.}
453 \endsetglyph
454
455
456 \setglyph{IJ}
457 \glyph{I}{1000}
458 \movert{\kerning{I}{J}}
459 \glyph{J}{1000}
460 \endsetglyph
461
462 \setglyph{SS}
463 \glyph{S}{1000}
464 \movert{\kerning{S}{S}}
465 \glyph{S}{1000}
466 \endsetglyph
467
468
469 \begincomment
470 \subsection{All-caps spaced digraphs}
471
472 These glyphs are combinations of upper case letters in which the
473 distances between them have been increased by
474 $\TypesetIntegerExpression{\int{capspacing}}$. These are intended for
475 use in all-caps fonts that are made with a nonzero
476 $\TypesetIntegerExpression{\int{letterspacing}}$ equal to the
477 $\TypesetIntegerExpression{\int{capspacing}}$.
478 \endcomment
479
480 \ifisint{letterspacing}\then
481 \setint{capspacing}{\int{letterspacing}}
482 \Else
483 \setint{capspacing}{0}
484 \Fi
485
486
487 \setglyph{FFspaced}
488 \glyph{F}{1000}
489 \movert{\add{\kerning{F}{F}}{\int{capspacing}}}
490 \glyph{F}{1000}
491 \endsetglyph
492 \setleftrightkerning{FFspaced}{F}{1000}
493 \setleftrightkerning{Dbar}{Eth}{1000}
494
495
496 \setglyph{FIspaced}
497 \glyph{F}{1000}
498 \movert{\add{\kerning{F}{I}}{\int{capspacing}}}
499 \glyph{I}{1000}
500 \endsetglyph
501 \setleftkerning{FIspaced}{F}{1000}
502 \setrightkerning{FIspaced}{I}{1000}
503
504 \setglyph{FLspaced}
505 \glyph{F}{1000}
506 \movert{\add{\kerning{F}{L}}{\int{capspacing}}}
507 \glyph{L}{1000}
508 \endsetglyph
509 \setleftkerning{FLspaced}{F}{1000}
510 \setrightkerning{FLspaced}{L}{1000}
511
512 \setglyph{FFIspaced}
513 \glyph{FFspaced}{1000}
514 \movert{\add{\kerning{FFspaced}{I}}{\int{capspacing}}}
515 \glyph{I}{1000}
516 \endsetglyph
517 \setleftkerning{FFIspaced}{F}{1000}
518 \setrightkerning{FFIspaced}{I}{1000}
519
520 \setglyph{FFLspaced}
521 \glyph{FFspaced}{1000}
522 \movert{\add{\kerning{FFspaced}{L}}{\int{capspacing}}}
523 \glyph{L}{1000}
524 \endsetglyph
525 \setleftkerning{FFLspaced}{F}{1000}
526 \setrightkerning{FFLspaced}{L}{1000}
527
528 \setglyph{IJspaced}
529 \glyph{I}{1000}
530 \movert{\add{\kerning{I}{J}}{\int{capspacing}}}
531 \glyph{J}{1000}
532 \endsetglyph
533 \setleftkerning{IJspaced}{I}{1000}
534 \setrightkerning{IJspaced}{J}{1000}
535
536 \setglyph{SSspaced}
537 \glyph{S}{1000}
538 \movert{\add{\kerning{S}{S}}{\int{capspacing}}}
539 \glyph{S}{1000}
540 \endsetglyph
541 \setleftrightkerning{SSspaced}{S}{1000}
542
543
544
545
546 \begincomment
547 \section{All-caps kerning}
548 \endcomment
549
550 \setleftrightkerning{dotlessI}{I}{1000}
551 \setleftrightkerning{dotlessJ}{J}{1000}
552
553
554 \setleftrightkerning{Aacute}{A}{1000}
555 \setleftrightkerning{Abreve}{A}{1000}
556 \setleftrightkerning{Acircumflex}{A}{1000}
557 \setleftrightkerning{Adieresis}{A}{1000}
558 \setleftrightkerning{Agrave}{A}{1000}
559 \setleftrightkerning{Aogonek}{A}{1000}
560 \setleftrightkerning{Aring}{A}{1000}
561 \setleftrightkerning{Atilde}{A}{1000}
562
563 \setleftrightkerning{Cacute}{C}{1000}
564 \setleftrightkerning{Ccaron}{C}{1000}
565 \setleftrightkerning{Ccedilla}{C}{1000}
566
567 \setleftrightkerning{Dcaron}{D}{1000}
568
569 \setleftrightkerning{Eacute}{E}{1000}
570 \setleftrightkerning{Ecaron}{E}{1000}
571 \setleftrightkerning{Ecircumflex}{E}{1000}
572 \setleftrightkerning{Edieresis}{E}{1000}
573 \setleftrightkerning{Egrave}{E}{1000}
574 \setleftrightkerning{Eogonek}{E}{1000}
575
576 \setleftrightkerning{Gbreve}{G}{1000}
577
578 \setleftkerning{IJ}{I}{1000}
579
580 \setleftrightkerning{Iacute}{I}{1000}
581 \setleftrightkerning{Icircumflex}{I}{1000}
582 \setleftrightkerning{Idieresis}{I}{1000}
583 \setleftrightkerning{Idotaccent}{I}{1000}
584 \setleftrightkerning{Igrave}{I}{1000}
585
586 \setrightkerning{IJ}{J}{1000}
587
588 \setleftrightkerning{Lacute}{L}{1000}
589 \setleftrightkerning{Lslash}{L}{1000}
590 \setleftkerning{Lcaron}{L}{1000}
591
592 \setleftrightkerning{Nacute}{N}{1000}
593 \setleftrightkerning{Ncaron}{N}{1000}
594 \setleftrightkerning{Ntilde}{N}{1000}
595
596 \setleftkerning{Ng}{N}{1000}
597 \setrightkerning{Ng}{J}{1000}
598
599 \setleftrightkerning{Oacute}{O}{1000}
600 \setleftrightkerning{Ocircumflex}{O}{1000}
601 \setleftrightkerning{Odieresis}{O}{1000}
602 \setleftrightkerning{Ograve}{O}{1000}
603 \setleftrightkerning{Ohungarumlaut}{O}{1000}
604 \setleftrightkerning{Oslash}{O}{1000}
605 \setleftrightkerning{Otilde}{O}{1000}
606
607 \setleftrightkerning{Rcaron}{R}{1000}
608 \setleftrightkerning{Racute}{R}{1000}
609
610 \setleftrightkerning{SS}{S}{1000}
611 \setleftrightkerning{Sacute}{S}{1000}
612 \setleftrightkerning{Scaron}{S}{1000}
613 \setleftrightkerning{Scedilla}{S}{1000}
614
615 \setleftrightkerning{Tcaron}{T}{1000}
616 \setleftrightkerning{Tcedilla}{T}{1000}
617
618 \setleftrightkerning{Uacute}{U}{1000}
619 \setleftrightkerning{Ucircumflex}{U}{1000}
620 \setleftrightkerning{Udieresis}{U}{1000}
621 \setleftrightkerning{Ugrave}{U}{1000}
622 \setleftrightkerning{Uhungarumlaut}{U}{1000}
623 \setleftrightkerning{Uring}{U}{1000}
624
625 \setleftrightkerning{Yacute}{Y}{1000}
626 \setleftrightkerning{Ydieresis}{Y}{1000}
627
628 \setleftrightkerning{Zacute}{Z}{1000}
629 \setleftrightkerning{Zcaron}{Z}{1000}
630 \setleftrightkerning{Zdotaccent}{Z}{1000}
631
632
633
634 \endmetrics
635
636
637 \section{Changes}
638
639 The original version of this file was created in February 2003,
640 although it is based on code from the traditional \texttt{latin.mtx}.
641 The changes that have been made after that are as follows.
642
643 2003/03/15: Using \verb|\unfakabletopaccent| for the accent
644 characters. This should change the appearence of accented letters
645 built using such a character from ``a black square'' to ``a letter
646 with a black square above''. Neither is satisfactory, but the latter
647 conveys more information. (LH)
648
649 2003/03/29: Added some code (from \texttt{latin.mtx}) for all-caps
650 glyphs that had been forgotten. (LH)
651
652 2005/05/21: Improved default for
653 $\TypesetIntegerExpression{\int{capspacing}}$. (LH)
654
655 \end{document}
656