Debian Codegraph @

texmf-dist/doc/fonts/fontname/fontname.texi

raw
1 \input texinfo
2 @c This file is in the public domain and may be used freely.
3 @c
4 @c @texinfofile{
5 @c author = "Karl Berry",
6 @c date = "18jun25",
7 @c filename = "fontname.texi",
8 @c email = "[email protected]",
9 @c url = "https://tug.org/fontname/",
10 @c docstring = "A naming scheme for font files intended to be usable
11 @c with all systems on which TeX runs."
12 @c }
13 @setfilename fontname.info
14 @settitle Filenames for @TeX{} fonts
15
16 @copying
17 This document is in the public domain and may be used freely.
18 @end copying
19
20 @c Define a new index for filenames, and use the concept index for everything.
21 @defcodeindex fl
22 @syncodeindex fl cp
23 @syncodeindex fn cp
24
25 @dircategory TeX
26 @direntry
27 * Naming TeX fonts: (fontname). Filenames for TeX fonts.
28 @end direntry
29
30
31 @titlepage
32 @title Fontname
33 @subtitle June 2025
34 @subtitle Filenames for @TeX{} fonts
35 @author Karl Berry
36 @end titlepage
37
38 @contents
39
40 @ifnottex
41 @node Top
42 @top Filenames for @TeX{} fonts
43
44 This is the Fontname document, a naming scheme for (the base part of)
45 external @TeX{} font filenames. Last update 5@tie{}July@tie{}2009.
46
47 @menu
48 * Introduction:: Rationale and basic information about fonts.
49 * Filenames for fonts:: The construction of font names.
50 * Long names:: A specification for long filenames.
51 * Font name lists:: Real fontnames for many existing fonts.
52 * Encodings:: Specifications for various encodings.
53 * General index:: Index.
54
55 @detailmenu
56 --- The Detailed Node Listing ---
57
58 Introduction
59
60 * History::
61 * References::
62
63 Filenames for fonts
64
65 * Suppliers::
66 * Typefaces::
67 * Weights::
68 * Variants::
69 * Widths::
70
71 Long names
72
73 * Name mapping file:: Aliases for fonts.
74 * Long naming scheme:: A way to use more than 8 alphanumerics.
75
76 Font name lists
77
78 * Standard PostScript fonts:: The standard 35 PostScript fonts.
79 * Adobe fonts::
80 * Apple fonts::
81 * Bitstream fonts::
82 * DTC fonts::
83 * ITC fonts::
84 * Linotype fonts::
85 * Monotype fonts::
86 * URW fonts::
87
88 Encodings
89
90 * 8a:: Adobe standard.
91 * 8r:: TeX base.
92 * dvips:: Dvips.
93 * ec:: EC (aka Cork, TeX Latin 1, tex256).
94 * qx:: QX, from GUST.
95 * t5:: Vietnamese, from vntex.
96 * texmext:: TeX math extension.
97 * texmsym:: TeX math symbol.
98 * texmital:: TeX math italic.
99 * texnansi:: From Y&Y.
100 * texnansx:: From Y&Y.
101 * xl2:: OT1 + ISO Latin 2 (extended).
102 * xt2:: Typewriter version of xl2.
103
104 @end detailmenu
105 @end menu
106
107 @end ifnottex
108
109
110 @node Introduction
111 @chapter Introduction
112
113 @cindex introduction
114
115 This is Fontname, a naming scheme for (the base part of) external @TeX{}
116 font filenames. This makes at most eight-character names from (almost)
117 arbitrarily complex font names, thus helping portability of @TeX{}
118 documents. We point out some shortcomings of the scheme, and ways of
119 dealing with them.
120
121 @cindex bugs, reporting
122 @cindex reporting bugs
123 @flindex tex-fonts@@tug.org
124 Please send additions, corrections, or other comments to
125 @email{tex-fonts@@tug.org}. Email
126 @email{tex-fonts-request@@tug.org} to join the list.
127
128 @cindex distribution
129 @cindex encoding files
130 @cindex mapping files
131 @cindex utilities
132 Besides this document, the Fontname distribution includes various
133 encoding files, mapping files, and utilities. See the file
134 @file{README} for details. You can retrieve the most up-to-date
135 version of these lists from @uref{https://tug.org/fontname}. It is
136 also mirrored on all CTAN hosts in the directory
137 @file{tex-archive/doc/fontname}. For a list of CTAN mirrors, see
138 @uref{https://www.ctan.org/tex-archive/CTAN.sites}.
139
140 This document is in the public domain and may be used freely.
141
142 @menu
143 * History::
144 * References::
145 @end menu
146
147
148 @node History
149 @section History
150
151 @cindex history
152
153 @cindex Mittelbach, Frank
154 @cindex Schoepf, Rainer
155 The original inspiration for Fontname was Frank Mittelbach and Rainer
156 Schoepf's article in @cite{TUGboat} 11(2) (June 1990), which led to my
157 article in @cite{TUGboat} 11(4) (November 1990), pages 517--519.
158 Mittelbach wrote another article criticizing the scheme below in
159 @cite{TUGboat} 13(1) (April 1992), pages 51--53; most of his points are
160 well-taken, but I saw no alternative then, and see no alternative now.
161 Others of his points are addressed in the appropriate sections below.
162
163 @cindex Fontname version 2
164 In August 1995, Fontname version 2 was released, concomitantly with a new
165 release of the PostScript fonts for use with La@TeX{} and Dvips. After
166 several years of experience, several modifications of the original
167 distribution seemed desirable: more precise specification of encodings
168 (@pxref{Variants}); machine-readable mapping files (the @file{*.map}
169 files in the distribution) and standardizing directory names as well as
170 font filenames (included in @file{supplier.map} and
171 @file{typeface.map}).
172
173 In Fontname version 1, some encoding variant characters (@samp{0},
174 @samp{2}, etc.) have been reassigned to a @samp{7} or @samp{8} sequence
175 (@pxref{Variants}). Although this is an incompatible change, the
176 advantages of (1) consistency in naming encoding variants, and (2)
177 having some free variants makes it worthwhile. Also, not so
178 coincidentally, new metrics for PostScript fonts in the Cork encoding
179 were issued---same encoding, different metrics. So a new name served a
180 practical purpose as well.
181
182 @cindex contributors
183 @cindex Beebe, Nelson
184 @cindex Beeton, Barbara
185 @cindex Bernstein, Rocky
186 @cindex Bouche, Thierry
187 @cindex Cugley, Damian
188 @cindex Horn, Berthol
189 @cindex Jeffrey, Alan
190 @cindex Lang, Russell
191 @cindex MacKay, Pierre
192 @cindex Rahtz, Sebastian
193 @cindex Rivlin, Jean
194 @cindex Rokicki, Tom
195 Many people have contributed to this work. In particular, I gratefully
196 acknowledge Nelson Beebe, Barbara Beeton, Rocky Bernstein, Thierry Bouche,
197 Damian Cugley, Berthold K.P. Horn, Alan Jeffrey, Russell Lang, Pierre
198 MacKay, Sebastian Rahtz, Jean Rivlin, and Tom Rokicki.
199
200
201 @node References
202 @section References
203
204 @cindex references
205 @cindex related files
206
207 Related files and distributions:
208
209 @itemize @bullet
210 @item
211 @cindex @TeX{} Directory Structure standard
212 @cindex TDS standard
213 The @TeX{} Directory Structure (TDS) standard, available at
214 (@uref{https://tug.org/tds} and @file{@var{CTAN:}/tds}) specifies a
215 directory tree for all @TeX{} library files. The directory names
216 given in @ref{Suppliers} and @ref{Typefaces} are intended to mesh with
217 that standard.
218
219 @item
220 @flindex modes.mf
221 The @file{modes.mf} file (@uref{ftp://tug.org/tex/modes.mf})
222 contains recommended mode names to use as directory names.
223
224 @item
225 @cindex Fontinst distribution
226 The Fontinst distribution (@url{https://tug.org/applications/fontinst}
227 supports quite general creation of virtual fonts, named according to the
228 scheme given here.
229
230 @item
231 @cindex Dvips translator
232 The Dvips translator (@url{https://tug.org/dvips}) supports resident
233 and downloadable PostScript fonts. Dvips was the first place where
234 Fontname became widely known. Dvips also includes Afm2tfm, another
235 program that can create virtual fonts.
236
237 @item
238 @cindex Dviljk translator
239 The Dviljk processor (included in @TeX{} Live) contains @TeX{} support
240 for the fonts built into the LaserJet@tie{}4.
241
242 @item
243 @cindex terminology
244 @cindex Southall, Richard
245 `Designing New Typefaces with Metafont', by Richard Southall,
246 Stanford Computer Science Department Technical Report STAN-CS-85-1074,
247 September 1985, for a comprehensive terminology of font design.
248
249 @end itemize
250
251
252 @node Filenames for fonts
253 @chapter Filenames for fonts
254
255 In this scheme, names may consist of only the letters (monocase a-z),
256 numerals (0-9), and underscore. Having two names which differ only in
257 case is undesirable, since it results in clashes on common Windows
258 filesystems.
259
260 @cindex filenames, basics
261 Here is the basic scheme (the spaces here are merely for readability):
262
263 @example
264 @var{S} @var{TT} @var{W} [@var{V@dots{}}] [@var{N}] [@var{E}] [@var{DD}]
265 @end example
266
267 @noindent where
268
269 @table @var
270 @item S
271 represents the supplier of the font.
272
273 @item TT
274 represents the typeface name.
275
276 @item W
277 represents the weight.
278
279 @item V@dots{}
280 represents the variant(s), and is omitted if both it and the width are
281 normal. Many fonts have more than one variant.
282
283 @item N
284 represents the encoding, and is omitted if the encoding is nonstandard.
285 Encodings are subsumed in the section on variants (@pxref{Variants}).
286
287 @item E
288 represents the width (``expansion''), and is omitted if
289 it is normal.
290
291 @item DD
292 @cindex design size specification
293 @cindex hexadecimal design size
294 @cindex font scaling
295 @cindex Mittelbach, Frank
296 represents the design size (in decimal), and is omitted if the font is
297 linearly scaled. Mittelbach in @cite{TUGboat} 13(1) proposes using
298 hexadecimal or base-36 notation. In my opinion, the increased range
299 does not make up for the unreadability of the common sizes (e.g.,
300 10@dmn{pt} fonts would have a suffix @samp{a} (in hex), or @samp{j}
301 (in base 36)).
302
303 @end table
304
305 We used to try to limit font names to eight characters. This was
306 never completely possible, and since DOS filesystems have become rare,
307 it's no longer an issue.
308
309 The weight, variants, and width are probably all best taken from the
310 original name of the font, instead of trying to relate them to some
311 external standard.
312
313 @menu
314 * Suppliers::
315 * Typefaces::
316 * Weights::
317 * Variants::
318 * Widths::
319 @end menu
320
321
322 @node Suppliers
323 @section Suppliers
324
325 @cindex suppliers
326 @cindex foundries
327 @cindex type foundries
328
329 The @dfn{supplier} is the source of a font, typically a (digital) type
330 foundry.
331
332 @cindex Avant Garde
333 @cindex Lubalin, Herb
334 You should use the supplier letter which matches the supplier you
335 obtained the font from, not the original source; for example, Avant
336 Garde was designed by Herb Lubalin for ITC, but Adobe also sells it.
337 The name of the font that you get from Adobe should start with @samp{p}.
338 This is because font resellers typically make modifications to the
339 original design.
340
341 Notes on specific suppliers:
342
343 @table @samp
344 @item f
345 @cindex individual font designers
346 @cindex small foundries
347 @cindex attribution of fonts, missing
348 @cindex unattributed fonts
349 For fonts that are distributed without any specific attribution to the
350 creator, by individuals, or by small foundries. (Unfortunately, we
351 don't have enough characters to assign one to every font
352 supplier in the world.)
353
354 @item r
355 @cindex raw fonts
356 obsolete; specifies raw fonts, in the old distribution of Dvips. New
357 fonts should never use @samp{r}. (The right thing to do is specify the
358 correct encoding, variant, or whatever the font's characteristics
359 actually are.)
360
361 @item z
362 @cindex bizarre font names
363 @cindex nonstandard names, escape for
364 @cindex escape for nonstandard names
365 for fonts that just don't fit well into the naming scheme. The @samp{z}
366 should be followed by the real supplier letter.
367 @end table
368
369 @flindex supplier.map
370 Here is the table from the file @file{supplier.map}. It is organized
371 alphabetically by abbreviation. Each line consists of an abbreviation,
372 directory name, and comment.
373
374 @example
375 @include supplier.map
376 @end example
377
378
379 @node Typefaces
380 @section Typefaces
381
382 @cindex typefaces
383
384 For our purposes, a @dfn{typeface} is a collection of related fonts.
385
386 We sometimes use the same typeface abbreviation for fonts with different
387 supplier names, where we know (usually by inspection) that the fonts
388 truly are the same. This helps conserve abbreviations.
389
390 Notes on specific typefaces:
391
392 @table @samp
393 @item ad
394 @itemx gm
395 @cindex Garamond, versions of
396 To explain a common confusion: @samp{ad} is Adobe Garamond (with a
397 @samp{FontName} of @samp{AGaramond}). This is quite different from the
398 @samp{Garamond} typeface distributed by Adobe, which is actually ITC
399 Garamond. (Garamond No.@: 3 (@samp{f3}), Simoncini Garamond
400 (@samp{ig}), and Stempel Garamond (@samp{eg}) are still other
401 variations on the Garamond theme.)
402
403 @item lh
404 @itemx ls
405 @itemx lx
406 @itemx r1
407 These abbreviations for Lucida typeface subfamilies, et al., solve a
408 problem with names getting too long, or help conserve variant
409 abbreviations. @xref{Variants}. Ideally, they would not exist.
410
411 @item ns
412 @itemx nt
413 @itemx tm
414 Suppliers offer as many variations on the Times New Roman design as they
415 do Garamond. Adobe has @samp{Times}, @samp{TimesNewRoman}, and
416 @samp{TimesNewRomanPS}. Although this last has been used by other
417 foundries (e.g., Monotype) for a Times variation exactly compatible with
418 Adobe's @samp{Times}, Adobe itself also offers it, so we must have
419 abbreviations for all three.
420
421 @item pi
422 @cindex pi fonts
423 For pi fonts. Since names of pi fonts are rather arbitrary, it is
424 not useful to try to assign typeface abbreviations to all of
425 them. Instead, we use the supplier letter, @samp{pi}, an
426 arbitarily-assigned three-digit number, a weight and (if necessary) a
427 variant. For example, @samp{mpi001r}. Pi font @samp{001} for one
428 supplier has nothing to do with pi font @samp{001} for another.
429 @end table
430
431 @flindex typeface.map
432 @findex FontName
433 Here is the table, from the file @file{typeface.map}. It is organized
434 alphabetically by abbreviation. Each line consists of an abbreviation
435 and directory name, possibly followed by PostScript @samp{FontName}s
436 and/or a comment in roman. The @samp{FontName} may be preceded by a
437 letter @var{s} and a @samp{:}, as in @samp{b:Dutch}. In that case, the
438 @var{s} is a supplier abbreviation, and we've used that abbreviation for
439 the given @samp{FontName} from that supplier.
440
441 @verbatiminclude typeface.map
442
443 @node Weights
444 @section Weights
445
446 @cindex weight
447
448 The @dfn{weight} of a font specifies its boldness. Arranged from
449 lightest to heaviest (more or less):
450
451 @display
452 hairline, extra light, light
453 book, regular, medium
454 demibold, semibold, bold, extra bold, heavy
455 black, ultra, poster
456 @end display
457
458 @flindex weight.map
459 Here is the table, from the file @file{weight.map}. It is organized
460 alphabetically by abbreviation. Each line consists of an abbreviation
461 and any parts of a PostScript @samp{FontName} which use that
462 abbreviation.
463
464 @example
465 @include weight.map
466 @end example
467
468
469 @node Variants
470 @section Variants
471
472 @cindex variants
473
474 @dfn{Variants} include typeface variations (e.g., italic, sans serif),
475 and font encodings (e.g., Adobe standard, @TeX{} text).
476
477 @cindex multiple variants
478 A fontname may require multiple variants. To resolve the worst
479 ambiguities, we specify that any encoding variant (@samp{7}, @samp{8},
480 or @samp{9}, see below) come last and any other numeral variant come
481 first (to avoid confusion with a design size). We recommend but do not
482 require that the other variants be given in alphabetical order. (It's
483 not required because it's too painful to implement the sorting in
484 @TeX{}, and many existing names already have non-alphabetized variants.)
485
486 @cindex letterspacing
487 @cindex small caps fonts
488 The letterspacing possibilities introduced by @code{fontinst} and
489 virtual fonts have not yet become sufficiently widespread to make
490 standardization beneficial. Likewise for the many possible ways to
491 generate small caps fonts.
492
493 Notes on specific variants, both old and new:
494
495 @table @samp
496 @item 1
497 @itemx 4
498 @itemx 6
499 @itemx b
500 @cindex semisans variant
501 @cindex semiserif variant
502 @cindex fax variant
503 @cindex bright variant
504 These variants (`semisans', `bright', `semiserif', and `fax') were used
505 only for single typefaces, so to conserve variant abbreviations, they
506 now have typeface abbreviations instead. Also, for @samp{b}, to avoid
507 too-long names; and for the others, to avoid variant vs.@: design-size
508 ambiguities.
509
510 @item g
511 @itemx h
512 Since these variants were not actually used in any font names, they are
513 now obsolete and may be reassigned in the future.
514
515 @item 5
516 @itemx 6
517 @itemx 7
518 @itemx 8
519 @itemx 9
520 @cindex phonetic encodings
521 @cindex Cyrillic encodings
522 @cindex 7-bit encodings
523 @cindex 8-bit encodings
524 @cindex expertised encodings
525 @findex SuperFont
526 @findex 9s @r{variant}
527 These characters begin a two-character @dfn{encoding variant}.
528 Generally, @samp{7} is for 7-bit encodings, @samp{8} is for 8-bit
529 encodings, and @samp{9} is for expertised encodings with or without
530 oldstyle digits (see the @samp{x} item below), but this is not an
531 absolute rule. Also, @samp{5} is presently used for phonetic encodings
532 and @samp{6} for Cyrillic encodings. The @samp{9s} (@samp{SuperFont})
533 variant contain all of Adobe, Latin 1, and Expert glyphs, perhaps with
534 slightly different metrics than the original fonts.
535
536 @cindex ligatures and encodings
537 @findex Lslash
538 @findex lslash
539 @flindex T1.etx
540 For a font to be named with a certain encoding variant, it's not
541 necessary that all the characters appear in precisely the same positions
542 as in the encoding definition. It's enough that the usual @TeX{} macros
543 work. In practice, this means that it's ok for a font to be labelled
544 @samp{7t} if the only difference from Computer Modern is that the
545 ligatures and the @samp{lslash} and @samp{Lslash} characters are
546 different, since it's impossible to access or change the ligature table
547 from @TeX{}. Standard PostScript fonts don't have an @samp{lslash}
548 character the way Computer Modern does, but they do have the
549 @samp{Lslash} and @samp{lslash} characters themselves, so the usual
550 @TeX{} @code{\lslash} and @code{\Lslash} macros can be made to work via
551 ligatures. See the file @file{T1.etx} file in the @code{fontinst}
552 distribution for details.
553
554 @cindex encodings, unspecified
555 @cindex Afm2tfm encoding
556 @cindex LaserJet 4 fonts
557 If a name does not contain a specific encoding variant, its encoding is
558 unspecified. For example, some of the fonts distributed with Dvips(k)
559 have names like @samp{ptmr} for @samp{Times-Roman}; they use the Dvips
560 encoding (@pxref{dvips}), which is close to (but not the same
561 as) the @TeX{} text encoding (as in Computer Modern Roman). Similarly,
562 the TFM files distributed with Dvilj(k) for the builtin LaserJet 4 fonts
563 have names like @samp{cunm}, since these fonts, while compatible with
564 @TeX{} text, contain many additional characters.
565
566 @item 9
567 These items are needed only because @samp{x} (and possibly @samp{j})
568 followed by a two-character regular variant makes some names too long.
569 That is, @samp{9t} is equivalent in meaning to @samp{x7t}, and @samp{9d}
570 is equivalent to @samp{jx7t}. (This may not be true for all
571 @samp{9@var{x}} encodings, though.)
572
573 @item k
574 @itemx z
575 @cindex scripts
576 @cindex Greek fonts
577 @cindex Cyrillic fonts
578 These variants (indicating Greek and Cyrillic fonts, respectively) are
579 obsolete; future fonts in different scripts should be assigned an
580 appropriate encoding abbreviation. These are not currently
581 standardized, due to ignorance of the appropriate encodings. Please
582 send suggestions for abbreviations to the address in @ref{Introduction}.
583
584 @item m
585 @itemx v
586 @itemx y
587 @cindex math variants
588 These math-related variants remain for the sake of typeface-specific
589 math encodings, e.g., Lucida. Fonts that use the Computer Modern math
590 encodings should use @samp{7m} (@pxref{texmital}), @samp{7v}
591 (@pxref{texmext}), and @samp{7y} (@pxref{texmsym}).
592
593 @item n
594 @cindex informal variant
595 @cindex schoolbook variant
596 @cindex Stone Informal
597 This is used for several different (but very rare) variants: only the
598 Stone typeface has an ``informal'' variant, and only a few Monotype
599 fonts have a ``schoolbook'' variant, with different `a', `g', and `y'
600 shapes.
601
602 @item r
603 Included only if no other variants, including encodings, apply, and
604 either the width (@pxref{Widths}) is not @samp{r} or a design size is
605 present. I.e., @samp{r} is only used as a placeholder. When the normal
606 version of the typeface is sans serif (e.g., Helvetica), @samp{r} should
607 be used when necessary, not @samp{s}. Use @samp{s} only when the
608 typeface family has both serif and sans serif variants.
609
610 @item s
611 @itemx t
612 @cindex typewriter variant
613 @cindex sans variant
614 @cindex Mittelbach, Frank
615 Mittelbach in @cite{TUGboat} 13(1) suggests that these variants (for
616 `sans' and `typewriter') should be identified as part of the typeface
617 name, because there are few typeface families with these variants. I
618 feel that since they are logically variants, it's best to name them that
619 way. But @samp{LucidaSans} (@pxref{Typefaces}) and a few others are
620 exceptions, to avoid too-long names.
621
622 @item x
623 @itemx 8x
624 @itemx 9?
625 @cindex expert encoding
626 @cindex expertised font
627 @samp{8x} indicates a font in the @samp{Expert} encoding itself.
628 @samp{x} indicates an @dfn{expertised} font, i.e., a composite (virtual)
629 font that includes characters from an @samp{8x} font. And in fact an
630 @samp{x@var{ee}} sequence is replaced by @samp{9@var{e}}, to save
631 characters.
632 @end table
633
634 @flindex variant.map
635 Fontname 1 assignments are shown in brackets in the following table,
636 from the file @file{variant.map}. It is organized alphabetically by
637 abbreviation. Each line consists of an abbreviation and either any
638 parts of a PostScript @samp{FontName} which use that abbreviation or the
639 PostScript @samp{Encoding} name.
640
641 @example
642 @include variant.map
643 @end example
644
645
646 @node Widths
647 @section Widths
648
649 @cindex widths
650 @cindex compression
651 @cindex expansion
652
653 The @dfn{width} of a font specifies the compression or expansion of the
654 font. Arranged from narrowest to widest (more or less):
655
656 @display
657 ultra compressed, extra condensed, compressed, condensed, narrow
658 regular
659 semiextended, extended, expanded, wide
660 @end display
661
662 @cindex automatic expansion
663 @cindex character scaling, automatic
664 Expansion or compression of fonts is sometimes done automatically (as by
665 the PostScript @code{scale} operator), and sometimes done by humans. In
666 the latter case, the human will also presumably choose a font name which
667 includes `Extended' or `Expanded' or `Condensed' or `Narrow' or whatever
668 according to their own preferences; the abbreviation can follow along.
669 When creating a new synthetically expanded or compressed font for use
670 with @TeX{}, e.g., with Afm2tfm or @code{fontinst}, use @samp{n} and
671 @samp{e}.
672
673 @flindex width.map
674 Here is the table, from the file @file{width.map}. It is organized
675 alphabetically by abbreviation. Each line consists of an abbreviation
676 and any parts of a PostScript @samp{FontName} which use that
677 abbreviation.
678
679 @example
680 @include width.map
681 @end example
682
683
684 @node Long names
685 @chapter Long names
686
687 @cindex long names
688
689 Eight characters is not enough to unambiguously represent all fonts. To
690 do that, we have to allow ourselves arbitrarily long names. Although we
691 certainly cannot use such names for the files themselves, we could still
692 use them in @TeX{} documents given a simple mapping file, as discussed
693 below.
694
695 @menu
696 * Name mapping file:: Aliases for fonts.
697 * Long naming scheme:: A way to use more than 8 alphanumerics.
698 @end menu
699
700
701 @node Name mapping file
702 @section A fontname mapping file
703
704 @cindex fontname mapping file
705 @cindex mapping file
706
707 At the moment, most implementations of @TeX{} look up a TFM file (as
708 part of the @code{\font} command), by searching for a file with the name
709 given by the user (possibly in any of series of directories). But if we
710 also looked TFM names up in @emph{another} file (or set of files), which
711 specifies the actual filename, the fontname given in the @TeX{} source
712 file could be almost anything at all, of any length.
713
714 @flindex texfonts.map
715 In version 5.851d of Web2c, I implemented this mapping file. Each file
716 @file{texfonts.map} in a search path is read for abbreviations. The file
717 has a straightforward format: each line specifies the filename and the
718 @TeX{} name for one font, separated by whitespace. Extra information on
719 the line is ignored; then more information could be specified for the
720 benefit of DVI-reading programs in the same file. Comments start with
721 @code{%} and continue to the end of the line.
722
723 Besides allowing long names, this sort of mapping file has other
724 benefits. @TeX{} source or DVI files can be more easily transported,
725 because the font names in a particular file can be made to work on every
726 system. Also, when combined with a consistent naming scheme, macros
727 could be written to access any of a number of fonts. Right now, each
728 font family has to have specialized macros written to deal with it.
729
730 @cindex Knuth, Donald E.
731 Incidentally, Professor Knuth has approved this as a legitimate
732 ``system-dependent'' extension; a @TeX{} with such a feature can still
733 be called ``@TeX{}''.
734
735
736 @node Long naming scheme
737 @section A naming scheme for long names
738
739 @cindex long naming scheme
740
741 @cindex X Window System font names
742 Once we allow ourselves long names, we can construct a naming scheme
743 to handle arbitrary fonts without much difficulty. Here is one
744 proposal, based on the X Window System font naming conventions.
745
746 @example
747 @var{supplier}-@var{family}-@var{weight}-@var{variants}-@var{width}-@var{encoding}--@var{size}
748 @end example
749
750 @var{supplier} is the usual @code{Adobe}, @code{Autologic}, etc., as
751 well as @code{unknown} or @code{bizarre}---this last meaning the rest of
752 the name is nonstandard. If the @var{supplier} is missing, i.e., the
753 name starts with a @code{-}, ``public domain'' is assumed. For fonts
754 made by individuals, the initials of the designer would probably make a
755 good @var{supplier}.
756
757 @var{family} is @code{ComputerModern} or @code{Times} or whatever.
758
759 Everything else is optional. The @code{--} before the @var{size} lets
760 one specify a name with, say, a weight and variants, but then skip the
761 @var{width} and @var{encoding}, but still be able to
762 give a size.
763
764 @var{weight} and @var{width} are as described earlier.
765
766 If there is more than one variant, they are separated with some
767 character other than @samp{-}, say @samp{=}:
768 @example
769 B+H-Lucida-Bold-Sans=Typewriter--10
770 @end example
771
772 @findex font_coding_scheme
773 @var{encoding} is what Metafont calls the
774 @code{font_coding_scheme}---the layout of the characters in the font.
775 For example, @samp{Cork} or @samp{ISOLatin1} or @samp{AdobeAlternate}.
776
777 @cindex category codes
778 Names are case-sensitive, for consistency with the rest of @TeX{} and
779 with PostScript, etc. Spaces cannot be used in the name, to make it
780 easier for @TeX{} to parse. Likewise, characters with default category
781 codes other than 11 (letter) or 12 (other) should not be used.
782
783 Another possibility is to forget all the above, and simply use the
784 vendor's name (perhaps prefixed by the vendor):
785 @samp{Times-Roman}.
786
787
788 @node Font name lists
789 @appendix Font name lists
790
791 These sections contain a list of fonts from various suppliers together
792 with the corresponding names.
793
794 @menu
795 * Standard PostScript fonts:: The standard 35 PostScript fonts.
796 * Adobe fonts::
797 * Apple fonts::
798 * Bitstream fonts::
799 * DTC fonts::
800 * ITC fonts::
801 * Linotype fonts::
802 * Monotype fonts::
803 * URW fonts::
804 @end menu
805
806
807 @node Standard PostScript fonts
808 @section Standard PostScript fonts
809
810 @cindex 35 standard PostScript fonts
811 @cindex standard PostScript fonts
812 @cindex PostScript fonts, standard
813
814 Abbreviated names for the 35 standard PostScript fonts. An encoding
815 variant, such as @samp{8a} for the Adobe @samp{StandardEncoding}, is
816 omitted.
817
818 @table @file
819 @item pagk
820 @samp{AvantGarde-Book}
821 @item pagko
822 @samp{AvantGarde-BookOblique}
823 @item pagd
824 @samp{AvantGarde-Demi}
825 @item pagdo
826 @samp{AvantGarde-DemiOblique}
827 @item pbkd
828 @samp{Bookman-Demi}
829 @item pbkdi
830 @samp{Bookman-DemiItalic}
831 @item pbkl
832 @samp{Bookman-Light}
833 @item pbkli
834 @samp{Bookman-LightItalic}
835 @item pcrb
836 @samp{Courier-Bold}
837 @item pcrbo
838 @samp{Courier-BoldOblique}
839 @item pcrr
840 @samp{Courier}
841 @item pcrro
842 @samp{Courier-Oblique}
843 @item phvb
844 @samp{Helvetica-Bold}
845 @item phvbo
846 @samp{Helvetica-BoldOblique}
847 @item phvbrn
848 @samp{Helvetica-NarrowBold}
849 @item phvbon
850 @samp{Helvetica-NarrowBoldOblique}
851 @item phvr
852 @samp{Helvetica}
853 @item phvro
854 @samp{Helvetica-Oblique}
855 @item phvrrn
856 @samp{Helvetica-Narrow}
857 @item phvron
858 @samp{Helvetica-NarrowOblique}
859 @item pncb
860 @samp{NewCenturySchlbk-Bold}
861 @item pncbi
862 @samp{NewCenturySchlbk-BoldItalic}
863 @item pncri
864 @samp{NewCenturySchlbk-Italic}
865 @item pncr
866 @samp{NewCenturySchlbk-Roman}
867 @item pplb
868 @samp{Palatino-Bold}
869 @item pplbi
870 @samp{Palatino-BoldItalic}
871 @item pplri
872 @samp{Palatino-Italic}
873 @item pplr
874 @samp{Palatino-Roman}
875 @item psyr
876 @samp{Symbol}
877 @item ptmb
878 @samp{Times-Bold}
879 @item ptmbi
880 @samp{Times-BoldItalic}
881 @item ptmri
882 @samp{Times-Italic}
883 @item ptmr
884 @samp{Times-Roman}
885 @item pzcmi
886 @samp{ZapfChancery-MediumItalic}
887 @item pzdr
888 @samp{ZapfDingbats}
889 @end table
890
891
892 @node Adobe fonts
893 @section Adobe fonts
894
895 @flindex adobe.map
896 The @file{adobe.map} file has abbreviations for Adobe fonts.
897
898 @example
899 @include adobe.map
900 @end example
901
902
903 @node Apple fonts
904 @section Apple fonts
905
906 @flindex apple.map
907 The @file{apple.map} file has abbreviations for Apple fonts.
908
909 @example
910 @include apple.map
911 @end example
912
913
914 @node Bitstream fonts
915 @section Bitstream fonts
916
917 @flindex bitstrea.map
918 The @file{bitstrea.map} file has abbreviations for Bitstream fonts.
919
920 @example
921 @include bitstrea.map
922 @end example
923
924
925 @node DTC fonts
926 @section DTC fonts
927
928 @flindex dtc.map
929 The @file{dtc.map} file has abbreviations for DTC (Digital Typeface
930 Corporation) fonts.
931
932 @example
933 @include dtc.map
934 @end example
935
936
937 @node ITC fonts
938 @section ITC fonts
939
940 @flindex itc.map
941 The @file{itc.map} file has abbreviations for ITC (International
942 Typeface Corporation) fonts.
943
944 @example
945 @include itc.map
946 @end example
947
948
949 @node Linotype fonts
950 @section Linotype fonts
951
952 @flindex linotype.map
953 The @file{linotype.map} file has abbreviations for Linotype fonts.
954
955 @example
956 @include linotype.map
957 @end example
958
959
960 @node Monotype fonts
961 @section Monotype fonts
962
963 @flindex monotype.map
964 The @file{monotype.map} file has abbreviations for Monotype fonts.
965
966 @example
967 @iftex
968 @ifclear html
969 @global@hfuzz@maxdimen
970 @end ifclear
971 @end iftex
972 @include monotype.map
973 @iftex
974 @ifclear html
975 @global@hfuzz1pt
976 @end ifclear
977 @end iftex
978 @end example
979
980
981 @node URW fonts
982 @section URW fonts
983
984 @cindex URW fonts
985 @cindex Ertner, Vincent
986
987 Information graciously supplied through URW, via Vincent Ertner: Each
988 URW font has an assigned font number. The last character describes
989 the size or purpose of the font, as the design of the font is
990 optimized accordingly:
991
992 @table @code
993 @item X000000E
994 Extreme: 8@dmn{pt} and smaller
995
996 @item X000000T
997 Text: between 8 and 18@dmn{pt}
998
999 @item X000000D
1000 Display: 18@dmn{pt} and larger
1001
1002 @item X000000P
1003 Poster: 48@dmn{pt} and larger
1004
1005 @item X000000M
1006 Monospaced / Typewriter
1007
1008 @item X000000L
1009 LaserWriter / PostScript / Adobe compatible
1010
1011 @item X000000I
1012 Intellifont PCL (5) compatible
1013
1014 @end table
1015 @noindent An @samp{F} identifier is not known.
1016
1017 @flindex urw.map
1018 The @file{urw.map} file has abbreviations for URW fonts.
1019
1020 @example
1021 @include urw.map
1022 @end example
1023
1024
1025 @node Encodings
1026 @appendix Encodings
1027
1028 @cindex PostScript encoding vectors
1029 @cindex encoding vectors
1030
1031 The following sections define various encodings as PostScript encoding
1032 vectors. These files can be installed in the Dvips header directory and
1033 then used in @file{psfonts.map} to change font encodings of downloadable
1034 or builtin fonts (@pxref{psfonts.map,,, dvips, Dvips}).
1035
1036 You can also specify these @file{.enc} files to Afm2tfm when building a
1037 font (@pxref{Changing font encodings,,, dvips, Dvips}).
1038
1039 For a discussion of @TeX{} font encodings in general, and defining new
1040 ones for use with @command{fontinst} in particular, see
1041 @uref{https://www.ctan.org/tex-archive/fonts/utilities/fontinst/doc/encspecs}.
1042
1043 A tutorial on character code issues in general is available at
1044 @url{https://www.cs.tut.fi/~jkorpela/chars.html}.
1045
1046 Naming specific characters is a tangled and difficult area. Here are
1047 some links to character tables for Unicode, Adobe, and WGL4, for your
1048 researching pleasure (thanks to Boguslaw Jackowski for the list):
1049
1050 @itemize @bullet
1051 @item @uref{https://www.unicode.org/Public/UNIDATA/UnicodeData.txt}
1052 @item @uref{https://www.unicode.org/Public/UNIDATA/NamesList.txt}
1053 @item @uref{https://partners.adobe.com/asn/tech/type/corporateuse-old.txt}
1054 @item @uref{https://partners.adobe.com/asn/tech/type/aglfn13.txt}
1055 @item @uref{https://partners.adobe.com/asn/tech/type/unicodegn.jsp}
1056 @item @uref{https://www.microsoft.com/OpenType/otspec/WGL4.htm}
1057 @end itemize
1058
1059 @menu
1060 * 6w:: CP-1251 (Cyrillic).
1061 * 8a:: Adobe standard.
1062 * 8r:: TeX base.
1063 * dvips:: Dvips.
1064 * ec:: EC (aka COrk, TeX Latin 1, tex256).
1065 * groff:: 8g.
1066 * t5:: Vietnamese, from vntex.
1067 * qx:: QX, from GUST.
1068 * texmext:: TeX math extension.
1069 * texmsym:: TeX math symbol.
1070 * texmital:: TeX math italic.
1071 * texnansi:: From Y&Y.
1072 * texnansx:: From Y&Y.
1073 * xl2:: OT1 + ISO Latin 2 (extended).
1074 * xt2:: Typewriter version of xl2.
1075 @end menu
1076
1077
1078 @node 6w
1079 @section @samp{6w.enc}: Cyrillic CP-1251
1080
1081 @flindex 62.enc
1082 @cindex Cyrillic encoding
1083 @cindex CP-1251 encoding
1084 @cindex encodings, Cyrillic CP-1251
1085
1086 @verbatiminclude 8a.enc
1087
1088
1089 @node 8a
1090 @section @samp{8a.enc}: Adobe standard encoding
1091
1092 @flindex 8a.enc
1093 @cindex Adobe standard encoding
1094 @cindex encodings, Adobe standard
1095
1096 @verbatiminclude 8a.enc
1097
1098
1099 @node 8r
1100 @section @samp{8r.enc}: @TeX{} base encoding
1101
1102 @flindex 8r.enc
1103 @cindex @TeX{} base encoding
1104 @cindex base encoding, for @TeX{}
1105 @cindex encodings, @TeX{} base
1106 @cindex Windows ANSI
1107 @cindex Lucida Bright
1108
1109 @verbatiminclude 8r.enc
1110
1111 @node dvips
1112 @section @samp{dvips.enc}: Dvips encoding
1113
1114 @flindex dvips.enc
1115 @cindex Dvips encoding
1116 @cindex encoding, Dvips
1117
1118 @verbatiminclude dvips.enc
1119
1120
1121 @node ec
1122 @section @samp{ec.enc}: Cork encoding
1123
1124 @flindex ec.enc
1125 @cindex Cork encoding
1126 @cindex EC encoding
1127 @cindex @TeX{} Latin 1 encoding
1128 @cindex encodings, Cork
1129 @cindex encodings, EC
1130 @cindex encodings, @TeX{} Latin 1
1131
1132 @verbatiminclude ec.enc
1133
1134
1135 @node groff
1136 @section @samp{groff.enc}: groff encoding
1137
1138 @flindex groff.enc
1139 @cindex Groff encoding
1140 @cindex encoding, Groff
1141
1142 @verbatiminclude groff.enc
1143
1144
1145 @node t5
1146 @section @samp{t5.enc}: T5 encoding
1147
1148 @flindex t5.enc
1149 @cindex T5 encoding
1150 @cindex Vietnamese encoding
1151 @cindex encoding, T5
1152
1153 @verbatiminclude t5.enc
1154
1155
1156 @node qx
1157 @section @samp{qx.enc}
1158
1159 @flindex qx.enc
1160 @cindex encodings, qx
1161 @cindex qx encoding
1162
1163 From GUST.
1164
1165 @verbatiminclude qx.txt
1166 @verbatiminclude qx.enc
1167
1168
1169 @node texmext
1170 @section @samp{texmext.enc}: @TeX{} math extension encoding
1171
1172 @flindex texmext.enc
1173 @cindex @TeX{} math extension encoding
1174 @cindex math extension, @TeX{} encoding
1175 @cindex extension, @TeX{} math encoding
1176 @cindex encodings, @TeX{} math symbol
1177
1178 @verbatiminclude texmext.enc
1179
1180
1181 @node texmsym
1182 @section @samp{texmsym.enc}: @TeX{} math symbol encoding
1183
1184 @flindex texmsym.enc
1185 @cindex @TeX{} math symbol encoding
1186 @cindex math symbol, @TeX{} encoding
1187 @cindex symbol, @TeX{} math encoding
1188 @cindex encodings, @TeX{} math symbol
1189
1190 @verbatiminclude texmsym.enc
1191
1192
1193 @node texmital
1194 @section @samp{texmital.enc}: @TeX{} math italic encoding
1195
1196 @flindex texmital.enc
1197 @cindex @TeX{} math italic encoding
1198 @cindex math italic, @TeX{} encoding
1199 @cindex italic, @TeX{} math encoding
1200 @cindex encodings, @TeX{} math italic
1201
1202 @verbatiminclude texmital.enc
1203
1204
1205 @node texnansi
1206 @section @samp{texnansi.enc}
1207
1208 @flindex texnansi.enc
1209 @cindex encodings, texnansi
1210 @cindex texnansi encoding
1211
1212 From Y&Y.
1213
1214 @verbatiminclude texnansi.enc
1215
1216
1217 @node texnansx
1218 @section @samp{texnansx.enc}
1219
1220 @flindex texnansx.enc
1221 @cindex encodings, texnansx
1222 @cindex texnansx encoding
1223
1224 From Y&Y. @samp{texnansi} without repeats.
1225
1226 @verbatiminclude texnansx.enc
1227
1228
1229 @node xl2
1230 @section @samp{xl2.enc}: OT1 + ISO Latin 2 extended
1231
1232 @flindex xl2.enc
1233 @cindex ISO Latin 2 extended, @TeX{} encoding
1234
1235 @verbatiminclude xl2.enc
1236
1237
1238 @node xt2
1239 @section @samp{xt2.enc}: typewriter OT1 + ISO Latin 2 extended
1240
1241 @flindex xt2.enc
1242 @cindex ISO Latin 2 extended and typewriter, @TeX{} encoding
1243
1244 @verbatiminclude xt2.enc
1245
1246
1247 @node General index
1248 @unnumbered General index
1249
1250 @printindex cp
1251
1252
1253 @bye