Debian Codegraph @

texmf-dist/tex/fontinst/smblmtx/textcomp.mtx

raw
1 % Copyright 1997, 1998 Sebastian Rahtz,
2 % copyright 1998, 1999, 2003 the fontinst maintenance team and
3 % any individual authors listed elsewhere in this file.
4 % All rights reserved.
5 %
6 % This file is part of the fontinst system version 1.9.
7 % -----------------------------------------------------
8 %
9 % It may be distributed under the terms of the LaTeX Project Public
10 % License, as described in lppl.txt in the base LaTeX distribution.
11 % Either version 1.0 or, at your option, any later version.
12 %
13 %%% ====================================================================
14 %%% @TeX-font-metrics-file{
15 %%% author = "Sebastian Rahtz and Ulrik Vieth and
16 %%% Walter Schmidt and Lars Hellstr{\"o}m",
17 %%% version = "1.926",
18 %%% date = "2005-05-24",
19 %%% time = "22:30:49 +02:00",
20 %%% filename = "textcomp.mtx",
21 %%% email = "[email protected]",
22 %%% URL = "http://www.tug.org/applications/fontinst/",
23 %%% codetable = "ISO/ASCII",
24 %%% keywords = "metrics, TeX, PostScript",
25 %%% supported = "yes",
26 %%% abstract = "This is a font metrics file, for use with the
27 %%% fontinst utility. It provides the defaults
28 %%% used to install the text companion glyphs.",
29 %%% package = "fontinst",
30 %%% dependencies = "fontinst.sty, fontdoc.sty",
31 %%% }
32 %%% ====================================================================
33
34 \relax
35
36 \documentclass[twocolumn]{article}
37 \usepackage{fontdoc}[2002/06/30] %Just guessing.
38
39 \title{The \textsf{fontinst} text companion glyphs}
40 \author{Sebastian Rahtz\and Ulrik Vieth\and Walter Schmidt\and
41 Lars Hellstr\"om}
42 \date{Version 1.926}
43
44 \showbranches
45
46 \begin{document}
47 \maketitle
48
49 \section{Introduction}
50
51 This document describes the glyphs used by the \textsf{fontinst}
52 package when generating \TeX{} text companion fonts.
53
54 \metrics
55
56 \needsfontinstversion{1.917}
57
58 % \unfakable is a glyph which can't be faked.
59
60 \setcommand\unfakable#1{
61 \setglyph{#1}
62 \glyphrule{500}{500}
63 \glyphwarning{missing glyph `#1'}
64 \endsetglyph
65 }
66 % \unfakableaccent is similar, but has an ``accent position''
67 \setcommand\unfakableaccent#1{
68 \setglyph{#1}
69 \moveup{\add{\int{xheight}}{50}}
70 \movert{\scale{\add{\int{xheight}}{50}}{\int{italicslant}}}
71 \glyphrule{250}{\sub{\sub{\int{ascender}}{\int{xheight}}}{100}}
72 \movert{\neg{\scale{\add{\int{xheight}}{50}}{\int{italicslant}}}}
73 \glyphwarning{missing glyph `#1'}
74 \endsetglyph
75 }
76
77 % \fakeglyph replaces glyph #1 by #2, if it exists.
78
79 \setcommand\fakeglyph#1#2{
80 \ifisglyph{#2}\then
81 \setglyph{#1}
82 \glyph{#2}{1000}
83 \endsetglyph
84 \Fi
85 }
86
87
88 \begincomment
89 \section{Default values}
90 \endcomment
91
92 \setint{italicslant}{0}
93 \setint{xheight}{\height{x}}
94 \setint{capheight}{\height{A}}
95 \setint{ascender}{\height{d}}
96 \setint{descender}{\depth{g}}
97 \setint{underlinethickness}{40}
98
99 % Vertical symmetry axis. (WaS)
100 \setint{vaxis}{\scale{\sub{\height{parenleft}}{\depth{parenleft}}}{500}}
101
102
103 \begincomment
104 \section{Oldstyle numerals}
105 \endcomment
106
107 \unfakable{zerooldstyle}
108 \unfakable{oneoldstyle}
109 \unfakable{twooldstyle}
110 \unfakable{threeoldstyle}
111 \unfakable{fouroldstyle}
112 \unfakable{fiveoldstyle}
113 \unfakable{sixoldstyle}
114 \unfakable{sevenoldstyle}
115 \unfakable{eightoldstyle}
116 \unfakable{nineoldstyle}
117
118
119 \begincomment
120 \section{Capital accents}
121 \endcomment
122
123 \fakeglyph{capitalgrave}{grave}
124 \fakeglyph{capitalacute}{acute}
125 \fakeglyph{capitalcircumflex}{circumflex}
126 \fakeglyph{capitaltilde}{tilde}
127 \fakeglyph{capitaldieresis}{dieresis}
128 \fakeglyph{capitalhungarumlaut}{hungarumlaut}
129 \fakeglyph{capitalring}{ring}
130 \fakeglyph{capitalcaron}{caron}
131 \fakeglyph{capitalbreve}{breve}
132 \fakeglyph{capitalmacron}{macron}
133 \fakeglyph{capitaldotaccent}{dotaccent}
134 \fakeglyph{capitalcedilla}{cedilla}
135 \fakeglyph{capitalogonek}{ogonek}
136
137
138 \begincomment
139 \section{ASCII-style accents}
140 \endcomment
141
142 \ifisglyph{asciitilde}\then
143 \setglyph{tildelow}
144 \glyph{asciitilde}{1000}
145 \endsetglyph
146 \Fi
147
148 \ifisglyph{grave}\then
149 \setglyph{asciigrave}
150 \glyph{grave}{1000}
151 \endsetglyph
152 \Fi
153
154 \ifisglyph{breve}\then
155 \setglyph{asciibreve}
156 \glyph{breve}{1000}
157 \endsetglyph
158 \Fi
159
160 \ifisglyph{acute}\then
161 \setglyph{asciiacutedbl}
162 \ifisint{monowidth}\then
163 \glyph{acute}{1000}
164 \glyph{acute}{1000}
165 \Else
166 \glyph{acute}{1000}
167 \movert{\neg{\scale{\width{acute}}{333}}}
168 \glyph{acute}{1000}
169 \Fi
170 \endsetglyph
171 \Fi
172
173 \ifisglyph{grave}\then
174 \setglyph{asciigravedbl}
175 \ifisint{monowidth}\then
176 \glyph{grave}{1000}
177 \glyph{grave}{1000}
178 \Else
179 \glyph{grave}{1000}
180 \movert{\neg{\scale{\width{grave}}{333}}}
181 \glyph{grave}{1000}
182 \Fi
183 \endsetglyph
184 \Fi
185
186 \ifisglyph{caron}\then
187 \setglyph{asciicaron}
188 \glyph{caron}{1000}
189 \endsetglyph
190 \Fi
191
192 \ifisglyph{dieresis}\then
193 \setglyph{asciidieresis}
194 \glyph{dieresis}{1000}
195 \endsetglyph
196 \Fi
197
198 \ifisglyph{macron}\then
199 \setglyph{asciimacron}
200 \glyph{macron}{1000}
201 \endsetglyph
202 \Fi
203
204 \ifisglyph{acute}\then
205 \setglyph{asciiacute}
206 \glyph{acute}{1000}
207 \endsetglyph
208 \Fi
209
210
211 \begincomment
212 \section{Glyphs}
213 \endcomment
214
215 \setglyph{capitalcompwordmark}
216 \glyphrule{0}{\int{capheight}}
217 \endsetglyph
218 \setint{capitalcompwordmark-spacing}{0}
219
220 \setglyph{ascendercompwordmark}
221 \glyphrule{0}{\int{ascender}}
222 \endsetglyph
223 \setint{ascendercompwordmark-spacing}{0}
224
225 % centers wrt/ vertical symmetry axis. (WaS)
226 \ifisglyph{asterisk}\then
227 \resetglyph{asteriskcentered}
228 \moveup{\neg{\sub
229 {\scale{\sub{\height{asterisk}}{\depth{asterisk}}}{500}}
230 {\int{vaxis}}
231 }}
232 \glyph{asterisk}{1000}
233 \resetdepth{0}
234 \endresetglyph
235 \Fi
236
237 % assumes that 2/3em = 667 and \width{endash} about 500
238 \ifisglyph{endash}\then
239 \setglyph{twelveudash}
240 \ifisint{monowidth}\then
241 \glyph{hyphen}{1000}
242 \glyph{hyphen}{1000}
243 \Else
244 \glyph{endash}{1000}
245 \movert{\sub{667}{\mul{2}{\width{endash}}}}
246 \glyph{endash}{1000}
247 \comment{This assumes that \(2/3\,\mathrm{em} = 667\) and
248 that the leading of the \texttt{endash} is less than
249 \(333/4\).}
250 \Fi
251 \endsetglyph
252 \Fi
253
254 % assumes that 3/4em = 750 and \width{endash} = 500
255 \ifisglyph{endash}\then
256 \setglyph{threequartersemdash}
257 \ifisint{monowidth}\then
258 \glyph{hyphen}{1000}
259 \glyph{hyphen}{1000}
260 \Else
261 \glyph{endash}{1000}
262 \movert{\sub{750}{\mul{2}{\width{endash}}}}
263 \glyph{endash}{1000}
264 \comment{This assumes that the leading of the
265 \texttt{endash} is less than \(250/4\).}
266 \Fi
267 \endsetglyph
268 \Fi
269
270 % questionable fakery, doesn't really work with all fonts
271 \ifisglyph{bracketleft}\then
272 \setglyph{openbracketleft}
273 \ifisint{monowidth}\then
274 \glyph{bracketleft}{1000}
275 \glyph{bracketleft}{1000}
276 \Else
277 \glyph{bracketleft}{1000}
278 \movert{\neg{\scale{\width{bracketleft}}{666}}}
279 \glyph{bracketleft}{1000}
280 \comment{This is questionable fakery, which doesn't
281 really work with all fonts.}
282 \Fi
283 \endsetglyph
284 \Fi
285
286 % questionable fakery, doesn't really work with all fonts
287 \ifisglyph{bracketright}\then
288 \setglyph{openbracketright}
289 \ifisint{monowidth}\then
290 \glyph{bracketright}{1000}
291 \glyph{bracketright}{1000}
292 \Else
293 \glyph{bracketright}{1000}
294 \movert{\neg{\scale{\width{bracketright}}{666}}}
295 \glyph{bracketright}{1000}
296 \comment{This is questionable fakery, which doesn't
297 really work with all fonts.}
298 \Fi
299 \endsetglyph
300 \Fi
301
302 % questionable fakery, doesn't really work with all fonts
303 \ifisglyph{bar}\then
304 \setglyph{bardbl}
305 \ifisint{monowidth}\then
306 \glyph{bar}{1000}
307 \glyph{bar}{1000}
308 \Else
309 \glyph{bar}{1000}
310 \movert{\neg{\scale{\width{bar}}{333}}}
311 \glyph{bar}{1000}
312 \comment{This is questionable fakery, which doesn't
313 really work with all fonts.}
314 \Fi
315 \endsetglyph
316 \Fi
317
318 \ifareglyphs{degree,C}\then
319 \setglyph{centigrade}
320 \glyph{degree}{1000}
321 \glyph{C}{1000}
322 \resetitalic{\italic{C}}
323 \endsetglyph
324 \Fi
325
326 \ifisglyph{Euro}\then
327 \setglyph{euro}
328 \glyph{Euro}{1000}
329 \endsetglyph
330 \Else\ifisglyph{C}\then
331 \setglyph{euro}
332 \movert{50}
333 \push
334 \moveup{\half{\sub{\height{C}}{\depth{C}}}}
335 \movert{\scale
336 {\half{\sub{\height{C}}{\depth{C}}}}
337 {\int{italicslant}}
338 }
339 \push
340 \moveup{\scale{\int{underlinethickness}}{1500}}
341 \glyphrule{\scale{\width{C}}{750}}{\int{underlinethickness}}
342 \pop
343 \moveup{\scale{\int{underlinethickness}}{-1500}}
344 \glyphrule{\scale{\width{C}}{700}}{\int{underlinethickness}}
345 \comment{That this bar is slightly shorter than the previous
346 is deliberate. That the two bars are not quite centered
347 around the vertical midpoint is also deliberate.}
348 \pop
349 \movert{50}
350 \comment{This movement should be much larger for some fonts,
351 e.g. New Century Schoolbook Italic, but experiments indicate
352 that it is independent of the italic slant.}
353 \glyph{C}{1000}
354 \resetitalic{\italic{C}}
355 \endsetglyph
356 \Fi\Fi
357
358 \ifareglyphs{question,exclam}\then
359 \setglyph{interrobang}
360 \push
361 \movert{\add{\half{\sub{\width{question}}{\width{exclam}}}}{-50}}
362 \comment{The extra $-50$ serves to separate the exclamation mark
363 from the right side of the question mark.}
364 \glyph{exclam}{1000}
365 \pop
366 \glyph{question}{1000}
367 \endsetglyph
368 \Fi
369 \ifareglyphs{questiondown,exclamdown}\then
370 \setglyph{interrobangdown}
371 \push
372 \movert{\add
373 {\half{\sub{\width{questiondown}}{\width{exclamdown}}}}
374 {50}
375 }
376 \glyph{exclamdown}{1000}
377 \pop
378 \glyph{questiondown}{1000}
379 \endsetglyph
380 \Fi
381
382
383 \begincomment
384 \section{Unfakable glyphs}
385 In general, every glyph is unfakable unless we know how to fake it.
386 \endcomment
387
388 \unfakableaccent{capitalgrave} % 8r,8y
389 \unfakableaccent{capitalacute} % 8r,8y
390 \unfakableaccent{capitalcircumflex} % 8r,8y
391 \unfakableaccent{capitaltilde} % 8r,8y
392 \unfakableaccent{capitaldieresis} % 8r,8y
393 \unfakableaccent{capitalhungarumlaut} % 8r,8y
394 \unfakableaccent{capitalring} % 8r,8y
395 \unfakableaccent{capitalcaron} % 8r,8y
396 \unfakableaccent{capitalbreve} % 8r,8y
397 \unfakableaccent{capitalmacron} % 8r,8y
398 \unfakableaccent{capitaldotaccent} % 8r,8y
399 \unfakable{capitalcedilla} % 8r,8y
400 \unfakable{capitalogonek} % 8r,8y
401 \unfakable{quotesinglbase} % 8r,8y
402 \unfakable{quotedblbase} % 8r,8y
403 \unfakable{twelveudash} % faked 8r,8x
404 \unfakable{threequartersemdash} % 8x (Adobe)
405 \unfakable{arrowleft}
406 \unfakable{arrowright}
407 \unfakableaccent{tieaccentlowercase}
408 \unfakableaccent{tieaccentcapital}
409 \unfakableaccent{newtieaccentlowercase}
410 \unfakableaccent{newtieaccentcapital}
411 \unfakable{blank}
412 \unfakable{dollar} % 8r,8y
413 \unfakable{quotesingle} % 8r,8y
414 \unfakable{asteriskcentered} % faked 8r,8y
415 \unfakable{comma} % 8r,8y
416 \unfakable{hyphendbl}
417 \unfakable{period} % 8r,8y
418 \unfakable{fraction} % 8r,8y
419 \unfakable{angbracketleft}
420 \unfakable{minus} % 8r,8y
421 \unfakable{angbracketright}
422 \unfakable{Omegainv}
423 \unfakable{bigcircle}
424 \unfakable{Omega}
425 \unfakable{openbracketleft} % faked 8r,8y
426 \unfakable{openbracketright} % faked 8r,8y
427 \unfakable{arrowup}
428 \unfakable{arrowdown}
429 \unfakable{asciigrave} % 8r,8y
430 \unfakable{born}
431 \unfakable{divorced}
432 \unfakable{died}
433 \unfakable{leaf}
434 \unfakable{married}
435 \unfakable{musicalnote}
436 \unfakable{tildelow} % 8r,8y
437 \unfakable{hyphendblchar}
438 \unfakable{asciibreve} % 8r,8y
439 \unfakable{asciicaron} % 8r,8y
440 \unfakable{asciiacutedbl} % faked 8r,8y
441 \unfakable{asciigravedbl} % faked 8r,8y
442 \unfakable{dagger} % 8r,8y
443 \unfakable{daggerdbl} % 8r,8y
444 \unfakable{bardbl} % faked 8r,8y
445 \unfakable{perthousand} % 8r,8y
446 \unfakable{bullet} % 8r,8y
447 \unfakable{centigrade} % faked 8r,8y
448 \unfakable{dollaroldstyle} % 8x (Adobe)
449 \unfakable{centoldstyle} % 8x (Adobe)
450 \unfakable{florin} % 8r,8y
451 \unfakable{colonmonetary} % 8x (Adobe)
452 \unfakable{won}
453 \unfakable{naira}
454 \unfakable{guarani}
455 \unfakable{peso}
456 \unfakable{lira} % 8x (URW)
457 \unfakable{recipe}
458 \unfakable{interrobang}
459 \unfakable{interrobangdown}
460 \unfakable{dong}
461 \unfakable{trademark} % 8r,8y
462 \unfakable{pertenthousand} % faked 8x
463 \unfakable{pilcrow}
464 \unfakable{baht}
465 \unfakable{numero}
466 \unfakable{discount}
467 \unfakable{estimated}
468 \unfakable{openbullet}
469 \unfakable{servicemark}
470 \unfakable{quillbracketleft}
471 \unfakable{quillbracketright}
472 \unfakable{cent} % 8r,8y
473 \unfakable{sterling} % 8r,8y
474 \unfakable{currency} % 8r,8y
475 \unfakable{yen} % 8r,8y
476 \unfakable{brokenbar} % 8r,8y
477 \unfakable{section} % 8r,8y
478 \unfakable{asciidieresis} % 8r,8y
479 \unfakable{copyright} % 8r,8y
480 \unfakable{ordfeminine} % 8r,8y
481 \unfakable{copyleft}
482 \unfakable{logicalnot} % 8r,8y
483 \unfakable{circledP}
484 \unfakable{registered} % 8r,8y
485 \unfakable{asciimacron} % 8r,8y
486 \unfakable{degree} % 8r,8y
487 \unfakable{plusminus} % 8r,8y
488 \unfakable{twosuperior} % 8r,8y
489 \unfakable{threesuperior} % 8r,8y
490 \unfakable{asciiacute} % 8r,8y
491 \unfakable{mu} % 8r,8y
492 \unfakable{paragraph} % 8r,8y
493 \unfakable{periodcentered} % 8r,8y
494 \unfakable{referencemark}
495 \unfakable{onesuperior} % 8r,8y
496 \unfakable{ordmasculine} % 8r,8y
497 \unfakable{radical}
498 \unfakable{onequarter} % 8r,8y
499 \unfakable{onehalf} % 8r,8y
500 \unfakable{threequarters} % 8r,8y
501 \unfakable{euro} % faked 8r,8y
502 \unfakable{multiply} % 8r,8y
503 \unfakable{divide} % 8r,8y
504
505
506 % \begincomment
507 % \section{Accents}
508 % \TeX's math accent-positioning requires accents to have zero depth,
509 % but is that really relevant for these accents?
510 % \endcomment
511 %
512 % \setcommand\zerodepth#1{
513 % \ifisglyph{#1}\then
514 % \resetglyph{#1}
515 % \glyph{#1}{1000}
516 % \resetdepth{0}
517 % \endresetglyph
518 % \Fi
519 % }
520 % \zerodepth{capitalgrave}
521 % \zerodepth{capitalacute}
522 % \zerodepth{capitalcircumflex}
523 % \zerodepth{capitaltilde}
524 % \zerodepth{capitaldieresis}
525 % \zerodepth{capitalhungarumlaut}
526 % \zerodepth{capitalring}
527 % \zerodepth{capitalcaron}
528 % \zerodepth{capitalbreve}
529 % \zerodepth{capitalmacron}
530 % \zerodepth{capitaldotaccent}
531
532 \endmetrics
533
534 \section{Changes}
535
536 1999/10/25: Definition of \verb|\unfakable| simplified. (UV\&LH)
537 Rationale: It is thoroughly confusing if the size of the black box
538 created by \verb|\unfakable| depends on the metrics of an unencoded
539 glyph that isn't accessible and therefore unavailable for all
540 pratical purposes.
541
542 February--March 2003: Explicitly centering the
543 \texttt{asteriskcentered}. Introduced the \textit{vaxis} integer. (WaS)
544
545 2003/07/09:
546 Making use of \verb|\showbranches|, \verb|\begincomment|, and
547 \verb|\endcomment|. Make definitions of \texttt{twelveudash} and
548 \texttt{threequartersemdash} less dependent on the exact width of
549 \texttt{endash}. Added a fake definition of \texttt{euro}. (LH)
550
551 2003/07/10:
552 Commented out section on zero-depth accents. (LH) Rationale:
553 \texttt{TS1}-encoded fonts are, to my knowledge, never used in math.
554
555 2003/07/13:
556 Added some \verb|\resetitalic| commands. Added fakes for
557 \texttt{interrobang} and \texttt{interrobangdown}. Using an
558 \verb|\unfakableaccent| for unfakable accents. (LH) Rationale:
559 The result becomes much more readable.
560
561 \end{document}