Debian Codegraph @

texmf-dist/tex/fontinst/base/cfntinst.sty

raw
1 %%
2 %% This is file `cfntinst.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% fibasics.dtx (with options: `pkg')
8 %% ficommon.dtx (with options: `pkg')
9 %% fimain.dtx (with options: `pkg,boundaryCompability')
10 %% fitrig.dtx (with options: `pkg')
11 %% ficonv.dtx (with options: `pkg')
12 %% filtfam.dtx (with options: `pkg,textcomp,debug')
13 %% fimapgen.dtx (with options: `pkg')
14 %% fibasics.dtx (with options: `pkg2')
15 %%
16 %% This is a generated file.
17 %%
18 %% Copyright 1993, 1994, 1995, 1996 Alan Jeffrey,
19 %% hacked and maintained 1997, 1998 Sebastian Rahtz,
20 %% copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 the fontinst
21 %% maintenance team and any individual authors listed elsewhere in
22 %% this file. All rights reserved.
23 %%
24 %% This file is part of the fontinst system version 1.9.
25 %% -----------------------------------------------------
26 %%
27 %% It may be distributed under the terms of the LaTeX Project Public
28 %% License, as described in lppl.txt in the base LaTeX distribution.
29 %% Either version 1.1 or, at your option, any later version.
30 %%
31 %%% From file: fibasics.dtx
32 \catcode`\{=1
33 \catcode`\}=2
34 \catcode`\#=6
35 \catcode`\^=7
36 \def\fontinstversion{1.933}
37 \ifx\ProvidesPackage\undefined
38 \def\NeedsTeXFormat#1{}
39 \def\ProvidesPackage#1[#2]{}
40 \fi
41 \ProvidesPackage{fontinst}
42 [2007/01/23 v\fontinstversion\space
43 fontinst installation package]
44 \def\a_macro#1{\catcode\number`#1=\the\catcode`#1 }
45 \edef\normalcc{%
46 \a_macro{\ }\a_macro{\^^M}\a_macro{\@}\a_macro{\_}\a_macro{\~}
47 }
48 \def\fontinstcc{%
49 \catcode`\ =9%
50 \catcode`\^^M=9%
51 \catcode`\@=11%
52 \catcode`\_=11%
53 \catcode`\~=10
54 }
55 \fontinstcc
56 \ifx\@ne\undefined_command
57 \input fontinst.ini\relax
58 \fi
59 \ifx\bye\undefined_command
60 \def\supereject{\par\penalty-\@MM}
61 \outer\expandafter\def \csname bye\endcsname
62 {\par\vfill\supereject\@@end}
63 \fi
64 \newcount\a_count
65 \newcount\b_count
66 \newcount\c_count
67 \newcount\d_count
68 \newcount\e_count
69 \newcount\f_count
70 \newcount\g_count
71 \newdimen\a_dimen
72 \newdimen\b_dimen
73 \newdimen\c_dimen
74 \newdimen\d_dimen
75 \newtoks\a_toks
76 \newtoks\b_toks
77 \newtoks\c_toks
78 \newif\if_a_
79 \newwrite\out_file
80 \mathchardef\one_thousand=1000
81 \mathchardef\five_hundred=500
82 \mathchardef\one_hundred=100
83 \mathchardef\max_mathchardef="7FFF
84 \mathchardef\two_thousand=2000
85 \newdimen\half_point \half_point=0.5pt
86 \def\x_cs#1#2{\expandafter#1\csname#2\endcsname}
87 \let\x_relax=\relax
88 \def\g_let{\global\let}
89 \def\empty_command{}
90 \def\gobble_one#1{}
91 \def\gobble_two#1#2{}
92 \def\gobble_three#1#2#3{}
93 \def\identity_one#1{#1}
94 \def\first_of_two#1#2{#1}
95 \def\second_of_two#1#2{#2}
96 \def\swap_two#1#2{#2#1}
97 \def\first_of_three#1#2#3{#1}
98 \bgroup
99 \catcode`\[=1
100 \catcode`\]=2
101 \catcode`\#=12
102 \catcode`\%=12
103 \catcode`\{=12
104 \catcode`\}=12
105 \gdef\hash_char[#]
106 \gdef\percent_char[%]
107 \gdef\left_brace_char[{]
108 \gdef\right_brace_char[}]
109 \egroup
110 \def\first_char#1#2={#1}
111 \def\add_to#1#2{
112 \ifx#1\x_relax
113 \def#1{#2}
114 \else
115 \expandafter\def\expandafter#1\expandafter{#1#2}
116 \fi
117 }
118 \def\prep_to#1#2{
119 \ifx#1\x_relax
120 \expandafter\def\expandafter#1\expandafter{\expandafter#2}
121 \else
122 \expandafter\def\expandafter#1\expandafter{\expandafter#2#1}
123 \fi
124 }
125 \def\never_do{\noexpand\do}
126 \newif\if_extensions_warning_
127 \_extensions_warning_false
128 \ifx \eTeXversion\undefined_command
129 \catcode`\~=14 % 14=comment
130 \fi
131 \def\eTeX#1{
132 \if_extensions_warning_
133 \space/\space e-TeX\space version\space #1
134 ~ \else
135 ~ \ifdim \number\eTeXversion\eTeXrevision\p@ < #1\p@ \else
136 ~ \_a_true
137 ~ \fi
138 \fi
139 }
140 \catcode`\~=10
141 \ifx \pdftexversion\undefined_command
142 \catcode`\~=14 % 14=comment
143 \fi
144 \def\pdfTeX#1#2{%
145 \if_extensions_warning_
146 \space/\space pdfTeX\space version\space
147 \ifnum #1<100\space
148 0.\ifnum #1<10\space 0\fi
149 \else
150 \expandafter\swap_two \expandafter.
151 \fi
152 #1#2%
153 ~ \else
154 ~ \ifdim #1>\pdftexversion \else
155 ~ \ifnum \expandafter\expandafter \expandafter`
156 ~ \expandafter\first_char \pdftexrevision= <
157 ~ \expandafter` \first_char#2=
158 ~ \else \_a_true \fi
159 ~ \fi
160 \fi
161 }
162 \catcode`\~=10
163 \def\needsTeXextension#1#2{
164 \_a_false
165 #1
166 \if_a_ \else
167 \_extensions_warning_true
168 \edef\a_macro{#1}
169 \_extensions_warning_false
170 \fontinstwarningnoline{#2}{
171 This~file~needs:\messagebreak
172 \expandafter\second_of_two\a_macro
173 \iffalse
174 <no~sufficient~extensions~were~listed!!>\if_false
175 \fi
176 \messagebreak
177 You~are~not~using~any~of~them.~This~is~likely~to~cause~errors
178 }
179 \fi
180 }
181 \def\open_out#1{
182 \immediate\openout\out_file=#1 \xdef\out_filename{#1}}
183 \def\close_out#1{
184 \immediate\write16{#1~written~on~\out_filename.}
185 \immediate\closeout\out_file}
186 \def\out_line#1{\immediate\write\out_file{#1}}
187 \edef\out_lline#1{\noexpand\out_line{\space\space\space#1}}
188 \edef\out_llline#1{
189 \noexpand\out_line{\space\space\space\space\space\space#1}
190 }
191 \def\TeX_terminal{\string\TeX\space terminal}
192 \chardef\closed_stream=99
193 \x_cs\let{out_filename-99}=\TeX_terminal
194 \x_cs\def{out_filename--1}{\jobname.log}
195 \def\allocate_stream{
196 \a_count=\m@ne
197 \b_count=\m@ne
198 \loop \ifnum \count17>\a_count
199 \advance \a_count \@ne
200 \x_cs\ifx{out_filename-\the\a_count}\TeX_terminal
201 \b_count=\a_count
202 \a_count=\count17
203 \fi
204 \repeat
205 \ifnum \b_count=\m@ne
206 \global\advance\count17by\@ne
207 \ifnum \count17<\sixt@@n
208 \b_count=\count17
209 \global\x_cs\let{out_filename-\the\b_count}\TeX_terminal
210 \wlog{\string\write\the\b_count\space allocated~to~the~pool.}
211 \else
212 \global\count17=\sixt@@n
213 \fi
214 \fi
215 }
216 \def\ch@ck#1#2#3{
217 \ifnum \count1#1<#2 \else
218 \errmessage{No~room~for~a~new~#3}
219 \global\count1#1=#2
220 \fi
221 }
222 \def\open_pout#1#2{
223 \allocate_stream
224 \ifnum \b_count=\m@ne
225 \immediate\write\sixt@@n{fontinst~is~out~of~output~streams.^^J
226 Output~file~#2~cannot~be~opened.^^J
227 Writes~will~be~redirected~to~the~log~file.
228 }
229 \gdef#1{\m@ne}
230 \else
231 \immediate\openout\b_count=#2\x_relax
232 \x_cs\xdef{out_filename-\the\b_count}{#2}
233 \global\chardef#1=\b_count
234 \fi
235 }
236 \def\close_pout#1#2{
237 \ifnum #1=\closed_stream
238 \errmessage{Output~file~\string#1~(#2)~not~closed,^^J
239 since~it~was~not~open}
240 \else
241 \immediate\write\sixt@@n{#2~written~on~
242 \csname out_filename-\the#1\endcsname.}
243 \ifnum #1=\m@ne \else
244 \immediate\closeout#1
245 \global\x_cs\let{out_filename-\the#1}=\TeX_terminal
246 \fi
247 \global\chardef#1=\closed_stream
248 \fi
249 }
250 \def\pout_line#1#2{\immediate\write#1{#2}}
251 \edef\pout_lline#1#2{\noexpand\pout_line#1{\space\space\space#2}}
252 \edef\pout_llline#1#2{
253 \noexpand\pout_line#1{\space\space\space\space\space\space#2}
254 }
255 \def\tempfileprefix#1{\def\temp_prefix{#1}}
256 \tempfileprefix{}
257 \let\then=\iffalse
258 \def\if_false{\iffalse}
259 \def\if_true{\iftrue}
260 \_a_false\eTeX{2.0}
261 \if_a_\else \catcode`\~=14\x_relax \fi
262 ~ \def\if_defined#1\then{
263 ~ \if
264 ~ \ifcsname#1\endcsname
265 ~ \expandafter\ifx \csname#1\endcsname \x_relax
266 ~ 0
267 ~ \else
268 ~ 1
269 ~ \fi
270 ~ \else
271 ~ 0
272 ~ \fi
273 ~ 1
274 ~ }
275 ~ \def\if_undefined{\expandafter\unless\if_defined}
276 \catcode`\~=\if_a_ 14 \else 10 \fi \x_relax
277 ~ \def\if_defined#1\then{
278 ~ \expandafter\ifx \csname#1\endcsname\x_relax
279 ~ \expandafter\if_false
280 ~ \else
281 ~ \expandafter\if_true
282 ~ \fi
283 ~ }
284 ~ \def\if_undefined#1\then{
285 ~ \expandafter\ifx \csname#1\endcsname\x_relax
286 ~ }
287 \catcode`\~=10\x_relax
288 \def\gobble_if{\iftrue\else}
289 \def\if_or#1\or_else#2\then{
290 #1\then
291 \expandafter\if_true
292 \else
293 #2\then
294 \expandafter\expandafter\expandafter\if_true
295 \else
296 \expandafter\expandafter\expandafter\if_false
297 \fi
298 \fi
299 }
300 \def\if_equal#1\then{\ifx#1}
301 \def\if_file_exists#1\then{
302 \immediate\openin1=#1\x_relax
303 \ifeof1\x_relax
304 \immediate\closein1
305 \expandafter\if_false
306 \else
307 \immediate\closein1
308 \expandafter\if_true
309 \fi
310 }
311 \let\Else=\else
312 \let\Fi=\fi
313 \x_cs\ifx{@@input}\x_relax
314 \let\primitiveinput=\input
315 \else
316 \let\primitiveinput=\@@input
317 \fi
318 \def\process_csep_list#1#2,{
319 \ifx\process_csep_list#2
320 \expandafter\gobble_one
321 \else
322 \expandafter\identity_one
323 \fi{
324 #1{#2}
325 \process_csep_list{#1}
326 }
327 }
328 \def\make_factor#1{
329 \ifnum #1<\z@
330 -\expandafter\make_factor_i\expandafter{\number-#1}
331 \else
332 \expandafter\make_factor_i\expandafter{\number#1}
333 \fi
334 }
335 \def\make_factor_i#1{
336 \ifnum #1<\one_thousand
337 \make_factor_ii{#1}
338 \else
339 \make_factor_iii #1
340 \fi
341 #1
342 }
343 \def\make_factor_ii#1{
344 0.
345 \ifnum #1<\one_hundred
346 0
347 \ifnum #1<10~ 0\fi
348 \fi
349 }
350 \def\make_factor_iii#1#2#3\fi#4{
351 \fi
352 #4
353 \ifnum 1#3<\one_thousand
354 .
355 \else
356 \make_factor_iii#2#3
357 \fi
358 }
359 {
360 \catcode`\p=12
361 \catcode`\t=12
362 \gdef\lose_measure#1pt{#1}
363 }
364 \def\format_hex_i#1#2{
365 \if #2i \else
366 \b_count=\a_count
367 \divide \a_count \sixt@@n
368 \c_count=\a_count
369 \multiply \c_count \sixt@@n
370 \advance \b_count -\c_count
371 \edef#1{
372 \ifcase\b_count 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or 8\or
373 9\or a\or b\or c\or d\or e\or f\fi
374 #1
375 }
376 \expandafter\format_hex_i \expandafter#1
377 \fi
378 }
379 \def\format_hex#1#2#3{
380 \a_count=#2
381 \let#1\empty_command
382 \expandafter\format_hex_i \expandafter#1 \romannumeral
383 \expandafter\identity_one\expandafter{\number#3}001~
384 }
385 \let\messagebreak\x_relax
386 \def\generic_info#1#2{
387 \begingroup
388 \def\messagebreak{^^J#1}
389 \immediate\write\m@ne{#2\on_line.}
390 \endgroup
391 }
392 \def\generic_warning#1#2{
393 \begingroup
394 \def\messagebreak{^^J#1}
395 \immediate\write\closed_stream{^^J#2\on_line.^^J}
396 \endgroup
397 }
398 \def\generic_error#1#2#3#4{
399 \begingroup
400 \immediate\write\closed_stream{}
401 \def\messagebreak{^^J}
402 \edef\a_macro{{#4}}
403 \errhelp\a_macro
404 \def\messagebreak{^^J#1}
405 \errmessage{#2.^^J^^J#3
406 Type~\space H~<return>~\space for~immediate~help
407 }
408 \endgroup
409 }
410 \def\fontinsterror#1#2#3{
411 \generic_error{
412 \four_spaces\four_spaces
413 }{
414 #1~error:\messagebreak #2
415 }{
416 }{#3}
417 }
418 \def\fontinstwarning#1#2{
419 \generic_warning{
420 \four_spaces\four_spaces
421 }{
422 #1~warning:\messagebreak #2
423 }
424 }
425 \def\fontinstwarningnoline#1#2{
426 \fontinstwarning{#1}{#2\gobble_one}
427 }
428 \def\fontinstinfo#1#2{
429 \generic_info{
430 \four_spaces\four_spaces
431 }{
432 #1~info:\messagebreak #2
433 }
434 }
435 \def\on_line{~on~input~line~\the\inputlineno}
436 \edef\four_spaces{\space\space\space\space}
437 \gdef\error_help_a{
438 Your~command~was~ignored.\messagebreak
439 Type~\space I~<command>~<return>~\space to~replace~it~
440 with~another~command,\messagebreak
441 or~\space <return>~\space to~continue~without~it.}
442 \gdef\error_help_c{
443 Try~typing~\space <return>~
444 \space to~proceed.\messagebreak
445 If~that~doesn't~work,~type~\space X~<return>~\space to~quit.}
446 \gdef\error_help_d{
447 You're~in~trouble~here.~\space\error_help_c}
448 \def\error_help_e#1{You~can~continue,~but~the~#1~wrong.}
449 \newlinechar=`\^^J
450 \errorcontextlines=999
451 \tracinglostchars=1
452 %%% From file: ficommon.dtx
453 \def\str#1{\csname~s-#1\endcsname}
454 \def\strint#1{\expandafter\identity_one\expandafter{\number\int{#1}}}
455 \newcount\result
456 \def\eval_expr#1{\global\result=#1\x_relax}
457 \def\eval_expr_to#1#2{\eval_expr{#2}#1=\result}
458 \def\g_eval_expr_to#1#2{\eval_expr{#2}\global#1=\result}
459 \def\add#1#2{
460 #1
461 \bgroup
462 \a_count=\result
463 \eval_expr{#2}
464 \global\advance \result \a_count
465 \egroup
466 }
467 \def\sub#1#2{
468 #1
469 \bgroup
470 \a_count=\result
471 \eval_expr{#2}
472 \advance \a_count -\result
473 \global\result=\a_count
474 \egroup
475 }
476 \def\int#1{\csname i-#1 \endcsname}
477 \def\neg#1{#1 \global\result=-\result}
478 \def\mul#1#2{
479 #1
480 \bgroup
481 \a_count=\result
482 \eval_expr{#2}
483 \global\multiply \result \a_count
484 \egroup
485 }
486 \def\div#1#2{
487 #1
488 \bgroup
489 \a_count=\result
490 \eval_expr{#2}
491 \divide \a_count \result
492 \global\result=\a_count
493 \egroup
494 }
495 \def\max#1#2{
496 #1
497 \bgroup
498 \a_count=\result
499 \eval_expr{#2}
500 \ifnum \a_count>\result \global\result=\a_count \fi
501 \egroup
502 }
503 \def\min#1#2{
504 #1
505 \bgroup
506 \a_count=\result
507 \eval_expr{#2}
508 \ifnum \a_count<\result \global\result=\a_count \fi
509 \egroup
510 }
511 \def\half#1{
512 #1\x_relax
513 \ifodd\result
514 \global\advance \result \@ne
515 \global\divide \result \tw@
516 \ifodd\result \global\advance \result \m@ne \fi
517 \else
518 \global\divide \result \tw@
519 \fi
520 }
521 \def\otherhalf#1{
522 #1\x_relax
523 \ifodd\result
524 \global\advance \result \@ne
525 \global\divide \result \tw@
526 \ifodd\result \else \global\advance \result \m@ne \fi
527 \else
528 \global\divide \result \tw@
529 \fi
530 }
531 \def\scale#1#2{
532 #1
533 \bgroup
534 \a_count=\result
535 \eval_expr{#2}
536 \global\multiply \result \a_count
537 \rounded_thousandths
538 \egroup
539 }
540 \def\rounded_thousandths{
541 \global\divide \result \five_hundred
542 \ifodd \result
543 \global\advance \result by \ifnum 0>\result - \fi 1
544 \fi
545 \global\divide \result \tw@
546 }
547 \def\l_rounded_thousandths#1{
548 \divide #1 \five_hundred
549 \ifodd #1
550 \advance #1 by \ifnum 0>#1 - \fi\@ne
551 \fi
552 \divide #1 \tw@
553 }
554 \def\l_inv_scale#1#2{
555 \multiply #1 \two_thousand
556 \divide #1 #2\x_relax
557 \ifodd#1 \advance #1 \ifnum 0>#1 - \fi\@ne \fi
558 \divide #1 \tw@
559 }
560 \def\ifnumber#1#2#3\then{
561 \eval_expr_to\a_count{#1}
562 \eval_expr{#3}
563 \ifnum \a_count#2\result
564 \expandafter\if_true
565 \else
566 \expandafter\if_false
567 \fi
568 }
569 \let\setsomething_global=\x_relax
570 \def\x_setint#1#2{
571 \x_cs\ifx{i-#1}\x_relax
572 \x_resetint{#1}{#2}
573 \fi
574 }
575 \let\setint=\x_setint
576 \def\x_setstr#1#2{
577 \x_cs\ifx{s-#1}\x_relax
578 \setsomething_global\x_cs\edef{s-#1}{#2}
579 \fi
580 }
581 \let\setstr=\x_setstr
582 \def\setdim#1#2{
583 \x_cs\ifx{d-#1}\x_relax
584 \a_dimen=#2\x_relax
585 \setsomething_global\x_cs\edef{d-#1}{\the\a_dimen}
586 \fi
587 }
588 \def\setcommand#1{
589 \ifx#1\undefined_command
590 \setsomething_global \expandafter\def \expandafter#1
591 \else
592 \expandafter\def \expandafter\a_macro
593 \fi
594 }
595 \def\x_resetint#1#2{
596 \eval_expr{#2}
597 \setsomething_global
598 \ifnum\result<\max_mathchardef
599 \ifnum 0>\result
600 \x_cs\edef{i-#1}{\the\result}
601 \else
602 \x_cs\mathchardef{i-#1}=\result
603 \fi
604 \else
605 \x_cs\edef{i-#1}{\the\result}
606 \fi
607 }
608 \let\resetint=\x_resetint
609 \def\resetstr#1#2{\setsomething_global\x_cs\edef{s-#1}{#2}}
610 \def\resetdim#1#2{
611 \a_dimen=#2
612 \setsomething_global\x_cs\edef{d-#1}{\the\a_dimen}
613 }
614 \def\resetcommand#1{\setsomething_global\def#1}
615 \def\dim#1{\csname~d-#1\endcsname}
616 \def\ifisint#1\then{\if_defined i-#1\then}
617 \def\ifisstr#1\then{\if_defined s-#1\then}
618 \def\ifisdim#1\then{\if_defined d-#1\then}
619 \def\ifiscommand#1\then{
620 \ifx#1\undefined_command
621 \expandafter\if_false
622 \else
623 \expandafter\if_true
624 \fi
625 }
626 \def\unsetint#1{\setsomething_global\x_cs\let{i-#1}\x_relax}
627 \def\unsetstr#1{\setsomething_global\x_cs\let{s-#1}\x_relax}
628 \def\unsetdim#1{\setsomething_global\x_cs\let{d-#1}\x_relax}
629 \def\unsetcommand#1{\setsomething_global\let#1=\undefined_command}
630 \def\offcommand#1{
631 \x_cs\ifx{saved-\string#1}\x_relax
632 \setsomething_global\x_cs\let{saved-\string#1}#1
633 \x_cs\ifx{off-\string#1}\x_relax
634 \generate_off_command{#1}
635 \else
636 \setsomething_global \expandafter\let \expandafter#1
637 \csname off-\string#1\endcsname
638 \fi
639 \fi
640 }
641 \def\oncommand#1{
642 \x_cs\ifx{saved-\string#1}\x_relax \else
643 \setsomething_global \expandafter\let \expandafter#1
644 \csname saved-\string#1\endcsname
645 \setsomething_global\x_cs\let{saved-\string#1}\x_relax
646 \fi
647 }
648 \def\generate_off_command#1{
649 \a_count=0
650 \let\next=\count_hashes
651 \expandafter\next\meaning#1~->\x_relax
652 \b_count=0
653 \a_toks={}
654 \loop \ifnum \b_count<\a_count
655 \advance \b_count 1
656 \a_toks=\expandafter{\the\expandafter\a_toks \expandafter####
657 \the\b_count}
658 \repeat
659 \setsomething_global \expandafter\def \expandafter#1 \the\a_toks {}
660 }
661 \def\count_hashes#1#2{
662 \if \hash_char#1
663 \advance \a_count 1
664 \else
665 \if -#1
666 \if >#2
667 \let\next=\gobble_to_xrelax
668 \fi\fi
669 \fi
670 \next#2
671 }
672 \def\gobble_to_xrelax#1\x_relax{}
673 \def\for(#1)#2#3#4{
674 \eval_expr_to\a_count{#2}
675 \x_resetint{#1}{\a_count}
676 \eval_expr{#4}
677 \ifnum 0=\result \else
678 \c_count=\result
679 \eval_expr_to\b_count{#3}
680 \setsomething_global\x_cs\edef{for-#1}{
681 \the\c_count \x_relax
682 \noexpand\ifnum \gobble_one\fi
683 \the\b_count \ifnum 0>\c_count > \else < \fi
684 }
685 \def\next##1##2##3\endfor(#1){##2\for_i{##1}{##3}}
686 \next{#1}
687 \fi
688 }
689 \def\for_i#1#2{
690 \setsomething_global\x_cs\def{body-#1}{#2}
691 \ifnum \b_count \ifnum0>\c_count >\else<\fi \a_count
692 \expandafter\gobble_two
693 \else
694 \csname body-#1 \expandafter\endcsname
695 \fi
696 \for_ii{#1}
697 }
698 \def\for_ii#1{
699 \a_count=\int{#1}
700 \advance \a_count \csname for-#1\endcsname \a_count
701 \expandafter\gobble_two
702 \else
703 \x_resetint{#1}\a_count
704 \csname body-#1 \expandafter\endcsname
705 \fi
706 \for_ii{#1}
707 }
708 \def\endfor(#1){}
709 \def\foreach(#1)#2{
710 \def\next##1\endfor(#1){
711 \setsomething_global\x_cs\def{body-#1}{##1}
712 \process_csep_list{\foreach_i{#1}}#2,\process_csep_list,
713 }
714 \next
715 }
716 \def\foreach_i#1#2{
717 \resetstr{#1}{#2}
718 \csname body-#1\endcsname
719 }
720 \let\comment=\gobble_one
721 \let\begincomment=\iffalse
722 \let\endcomment=\fi
723 %%% From file: fimain.dtx
724 \def\inputetx#1{
725 \edef\lowercase_file{\lowercase{
726 \edef\noexpand\lowercase_file{#1}}}
727 \lowercase_file
728 \slot_number=0
729 \def\relax{\let\relax=\x_relax\iffalse}
730 \let\encoding=\fi
731 \primitiveinput \lowercase_file.etx\x_relax
732 \let\relax=\x_relax
733 }
734 \let\encoding=\relax
735 \outer\def\endencoding{\endinput}
736 \def\setslot#1{\edef\slot_name{#1}\do_slot}
737 \def\endsetslot{\end_do_slot\advance\slot_number by 1\x_relax}
738 \let\do_slot\empty_command
739 \let\end_do_slot\empty_command
740 \newcount\slot_number
741 \def\nextslot#1{\eval_expr_to\slot_number{#1}}
742 \def\skipslots#1{\eval_expr{#1} \advance\slot_number by \result}
743 \def\setleftboundary#1{\edef\slot_name{#1}\do_boundary}
744 \let\endsetleftboundary\x_relax
745 \let\do_boundary\x_relax
746 \def\setrightboundary#1{
747 \makerightboundary{#1}
748 \advance \slot_number 1\x_relax
749 }
750 \let\ligature=\gobble_three
751 \def\Ligature{\ligature}
752 \def\oddligature#1#2#3#4{}
753 \let\nextlarger=\gobble_one
754 \let\usedas=\gobble_two
755 \let\makerightboundary=\gobble_one
756 \let\Unicode=\gobble_two
757 \let\charseq=\gobble_one
758 \let\varchar=\empty_command
759 \let\vartop=\gobble_one
760 \let\varmid=\gobble_one
761 \let\varbot=\gobble_one
762 \let\varrep=\gobble_one
763 \let\endvarchar=\empty_command
764 \let\useexamplefont=\gobble_one
765 \let\slotexample=\empty_command
766 \let\setslotcomment=\gobble_one
767 \let\resetslotcomment=\gobble_one
768 \let\unsetslotcomment=\empty_command
769 \def\setfontdimen#1#2{
770 \ifisint{#2}\then \setint{fontdimen(#1)}{\int{#2}} \fi
771 }
772 \let\label=\gobble_one
773 \newif\ifdirect \directtrue
774 \def\input_mtx_as_etx#1{
775 \def\setscaledrawglyph##1##2##3##4##5##6##7##8##9{
776 \nextslot{##5}
777 \setslot{##1}\endsetslot
778 }
779 \offcommand\setscalednotglyph
780 \let\setglyph=\gobble_glyph
781 \offcommand\setkern
782 \inputmtx{#1}
783 }
784 \def\inputmtx#1{
785 \def\relax{\let\relax=\x_relax\iffalse}
786 \let\metrics=\fi
787 \primitiveinput #1.mtx\x_relax
788 \let\relax=\x_relax
789 }
790 \let\metrics=\x_relax
791 \edef\endmetrics_text{\string\endmetrics}
792 \outer\def\endmetrics{\endinput}
793 \def\ProvidesMtxPackage#1{\x_cs\let{pack-#1}P}
794 \def\usemtxpackage{\futurelet\next_token\test_UseMtxPkg_arguments}
795 \def\test_UseMtxPkg_arguments{\ifx\next_token[
796 \expandafter\mtx_package_given_file
797 \else
798 \expandafter\mtx_package_separate_files
799 \fi
800 }
801 \def\mtx_package_given_file[#1]#2{
802 \_a_false
803 \process_csep_list\load_true_unless_loaded #2,\process_csep_list,
804 \if_a_ \inputmtx{#1} \fi
805 }
806 \def\load_true_unless_loaded#1{
807 \x_cs\ifx{pack-#1}P\else\_a_true\fi
808 }
809 \def\mtx_package_separate_files#1{
810 \process_csep_list\load_file_unless_loaded #1,\process_csep_list,
811 }
812 \def\load_file_unless_loaded#1{
813 \x_cs\ifx{pack-#1}P\else \inputmtx{#1} \fi
814 }
815 \let\glyph_name_modifier=\identity_one
816 \def\setkern#1#2#3{
817 \x_cs\ifx{i-rawscale}\x_relax
818 \expandafter\set_kern
819 \csname~r-\glyph_name_modifier{#1}\expandafter\endcsname
820 \csname~l-\glyph_name_modifier{#2}\endcsname
821 {#3}
822 \else
823 \expandafter\set_kern
824 \csname~r-\glyph_name_modifier{#1}\expandafter\endcsname
825 \csname~l-\glyph_name_modifier{#2}\endcsname
826 {\scale{#3}{\int{rawscale}}}
827 \fi
828 }
829 \def\set_kern#1#2#3{
830 \eval_expr{#3}
831 \expandafter\set_kern_cs\csname\the\result\endcsname#1#2
832 }
833 \def\set_kern_cs#1#2#3{
834 \add_to#2{\k#3#1}
835 \add_to#3{\k#2#1}
836 }
837 \def\resetkern#1#2#3{
838 \x_cs\ifx{i-rawscale}\x_relax
839 \expandafter\reset_kern
840 \csname~r-#1\expandafter\endcsname
841 \csname~l-#2\endcsname{#3}
842 \else
843 \expandafter\reset_kern
844 \csname~r-#1\expandafter\endcsname
845 \csname~l-#2\endcsname{\scale{#3}{\int{rawscale}}}
846 \fi
847 }
848 \def\reset_kern#1#2#3{
849 \eval_expr{#3}
850 \expandafter\reset_kern_cs\csname\the\result\endcsname#1#2
851 }
852 \def\reset_kern_cs#1#2#3{
853 \prep_to#2{\k\expandafter#3\expandafter#1}
854 \prep_to#3{\k\expandafter#2\expandafter#1}
855 }
856 \def\setleftkerning#1#2#3{
857 \eval_expr_to\b_count{#3}
858 \expandafter\set_kerning
859 \csname~l-#1\expandafter\endcsname
860 \csname~l-#2\endcsname
861 }
862 \def\setrightkerning#1#2#3{
863 \eval_expr_to\b_count{#3}
864 \expandafter\set_kerning
865 \csname~r-#1\expandafter\endcsname
866 \csname~r-#2\endcsname
867 }
868 \def\setleftrightkerning#1#2#3{
869 \eval_expr_to\b_count{#3}
870 \expandafter\set_kerning
871 \csname~l-#1\expandafter\endcsname
872 \csname~l-#2\endcsname
873 \expandafter\set_kerning
874 \csname~r-#1\expandafter\endcsname
875 \csname~r-#2\endcsname
876 }
877 \def\set_kerning#1#2{
878 \if\b_count=\one_thousand
879 \def\k##1##2{
880 \set_kern_cs##2##1#1
881 }
882 \else
883 \def\k##1##2{
884 \set_kern##1#1{
885 \scale\b_count{\expandafter\gobble_one\string##2}
886 }
887 }
888 \fi
889 #2
890 }
891 \def\kerning#1#2{0\x_relax
892 \def\k##1{\csname~set-\string##1\endcsname\gobble_one}
893 \bgroup
894 \x_cs\def{set-\string\l-#2}##1##2{
895 \global\result=\expandafter\gobble_one\string##2\egroup
896 }
897 \csname~r-#1\endcsname
898 \csname~set-\string\l-#2\endcsname\gobble_one{00}
899 }
900 \def\ifiskern#1#2\then{
901 \def\k##1##2{\ifx T##1 \let\k\gobble_two \fi}
902 \bgroup
903 \x_cs\let{l-#2}T
904 \csname r-#1\endcsname
905 \expandafter\egroup \ifx\k\gobble_two
906 }
907 \def\unsetkerns#1#2{
908 \let\k\k_unless_to_U
909 \process_csep_list\make_slots_U#1,\process_csep_list,
910 \def\do##1{\x_cs\main_remove_Us{l-##1}}
911 \process_csep_list\do#2,\process_csep_list,
912 \process_csep_list\make_slots_relax#1,\process_csep_list,
913 \process_csep_list\make_slots_U#2,\process_csep_list,
914 \def\do##1{\x_cs\main_remove_Us{r-##1}}
915 \process_csep_list\do#1,\process_csep_list,
916 \process_csep_list\make_slots_relax#2,\process_csep_list,
917 }
918 \def\make_slots_U#1{\x_cs\let{slots-#1}U}
919 \def\make_slots_relax#1{\x_cs\let{slots-#1}\x_relax}
920 \def\k_unless_to_U#1#2{
921 \x_cs\ifx{slots-\expandafter\gobble_three\string#1}U \else
922 \noexpand\k\noexpand#1\noexpand#2
923 \fi
924 }
925 \def\main_remove_Us#1{
926 \ifx#1\x_relax \else
927 \edef#1{#1}
928 \ifx#1\empty_command \let#1\x_relax \fi
929 \fi
930 }
931 \def\noleftkerning#1{\no_kerning{l}{#1}}
932 \def\norightkerning#1{\no_kerning{r}{#1}}
933 \def\noleftrightkerning#1{\no_kerning{l}{#1}\no_kerning{r}{#1}}
934 \def\no_kerning#1#2{
935 \let\k\no_kerning_i
936 \def\do##1{\csname #1-##1\endcsname}
937 \bgroup
938 \aftergroup\def \aftergroup\a_macro \aftergroup{
939 \process_csep_list\do #2,\process_csep_list,
940 \aftergroup}
941 \egroup
942 \def\do##1{\expandafter\let \csname #1-##1\endcsname \x_relax}
943 \process_csep_list\do #2,\process_csep_list,
944 \let\k\no_kerning_ii
945 \def\do##1{\edef##1{##1}}
946 \a_macro
947 }
948 \def\no_kerning_i#1#2{
949 \ifx #1\x_relax \else
950 \aftergroup\do \aftergroup#1
951 \let #1\x_relax
952 \fi
953 }
954 \def\no_kerning_ii#1#2{
955 \ifx #1\x_relax \else \noexpand\k \noexpand#1 \noexpand#2 \fi
956 }
957 \def\width{\glyph_parameter\first_of_six}
958 \def\height{\glyph_parameter\second_of_six}
959 \def\depth{\glyph_parameter\third_of_six}
960 \def\italic{\glyph_parameter\fourth_of_six}
961 \def\mapcommands{\glyph_parameter\fifth_of_six}
962 \def\mapfonts{\glyph_parameter\sixth_of_six}
963 \def\glyph_parameter#1#2{
964 \expandafter\expandafter\expandafter
965 #1\csname g-#2\endcsname
966 }
967 \def\first_of_six#1#2#3#4#5#6{#1}
968 \def\second_of_six#1#2#3#4#5#6{#2}
969 \def\third_of_six#1#2#3#4#5#6{#3}
970 \def\fourth_of_six#1#2#3#4#5#6{#4}
971 \def\fifth_of_six#1#2#3#4#5#6{#5}
972 \def\sixth_of_six#1#2#3#4#5#6{#6}
973 \def\glyph_metrics#1#2#3#4#5#6{
974 \a_count=#1
975 \b_count=#2
976 \c_count=#3
977 \d_count=#4~
978 }
979 \let\saved_scale\x_relax
980 \let\saved_mapfont\x_relax
981 \let\saved_raw\x_relax
982 \let\saved_rule\x_relax
983 \let\saved_special\x_relax
984 \let\saved_warning\x_relax
985 \let\saved_movert\x_relax
986 \let\saved_moveup\x_relax
987 \let\saved_push\x_relax
988 \let\saved_pop\x_relax
989 \newcount\glyph_width
990 \newcount\glyph_height
991 \newcount\glyph_depth
992 \newcount\glyph_italic
993 \newtoks\glyph_map_commands
994 \newtoks\glyph_map_fonts
995 \newcount\glyph_voffset
996 \newcount\glyph_maxhpos
997 \def\setglyph#1{
998 \ifisglyph{\glyph_name_modifier{#1}}\then
999 \expandafter\gobble_glyph
1000 \else
1001 \x_cs\def{g-\glyph_name_modifier{#1}}{
1002 {\the\glyph_width}{\the\glyph_height}
1003 {\the\glyph_depth}{\the\glyph_italic}
1004 {\the\glyph_map_commands}{\the\glyph_map_fonts}
1005 }
1006 \resetglyph{\glyph_name_modifier{#1}}
1007 \fi
1008 }
1009 \long\def\gobble_glyph#1\endsetglyph{}
1010 \def\resetglyph#1{
1011 \edef\glyphname{#1}
1012 \glyph_width=0
1013 \global\glyph_height=0
1014 \global\glyph_depth=0
1015 \global\glyph_italic=0
1016 \glyph_voffset=0
1017 \global\glyph_maxhpos=0
1018 \global\glyph_map_commands={}
1019 \global\glyph_map_fonts={}
1020 }
1021 \def\endsetglyph{
1022 \x_cs\edef{g-\glyphname}
1023 {{\the\glyph_width}{\the\glyph_height}
1024 {\the\glyph_depth}{\the\glyph_italic}
1025 {\the\glyph_map_commands}{\the\glyph_map_fonts}}
1026 }
1027 \let\endresetglyph=\endsetglyph
1028 \def\setrawglyph#1#2#3{
1029 \setscaledrawglyph{#1}{#2}{#3}\one_thousand
1030 }
1031 \def\setscaledrawglyph#1#2#3#4#5#6#7#8#9{
1032 \if_undefined{g-\glyph_name_modifier{#1}}\then
1033 \eval_expr{#4}
1034 \ifnum \result=\one_thousand
1035 \let\a_macro\identity_one
1036 \else
1037 \edef\a_macro##1{\saved_scale{\the\result}{##1}}
1038 \fi
1039 \eval_expr_to\a_count{#6}
1040 \eval_expr_to\b_count{#7}
1041 \eval_expr_to\c_count{#8}
1042 \eval_expr_to\d_count{#9}
1043 \ifisint{rawscale}\then
1044 \e_count=\int{rawscale}
1045 \multiply \a_count \e_count \l_rounded_thousandths\a_count
1046 \multiply \b_count \e_count \l_rounded_thousandths\b_count
1047 \multiply \c_count \e_count \l_rounded_thousandths\c_count
1048 \multiply \d_count \e_count \l_rounded_thousandths\d_count
1049 \edef\a_macro##1{\saved_scale{\the\e_count}{\a_macro{##1}}}
1050 \fi
1051 \x_cs\edef{g-\glyph_name_modifier{#1}}{
1052 {\the\a_count}
1053 {\the\b_count}
1054 {\the\c_count}
1055 {\the\d_count}
1056 {\a_macro{\saved_raw{#2}{#5}{#1}}}
1057 {\a_macro{\saved_mapfont{#2}{#3}}}
1058 }
1059 \fi
1060 }
1061 \def\setnotglyph#1#2#3{
1062 \setscalednotglyph{#1}{#2}{#3}\one_thousand
1063 }
1064 \def\setscalednotglyph#1#2#3#4#5#6#7#8#9{
1065 \if_undefined{g-\glyph_name_modifier{#1}-not}\then
1066 \eval_expr_to\a_count{#6}
1067 \eval_expr_to\b_count{#7}
1068 \eval_expr_to\c_count{#8}
1069 \eval_expr_to\d_count{#9}
1070 \ifisint{rawscale}\then
1071 \e_count=\int{rawscale}
1072 \multiply \a_count \e_count \l_rounded_thousandths\a_count
1073 \multiply \b_count \e_count \l_rounded_thousandths\b_count
1074 \multiply \c_count \e_count \l_rounded_thousandths\c_count
1075 \multiply \d_count \e_count \l_rounded_thousandths\d_count
1076 \fi
1077 \x_cs\edef{g-\glyph_name_modifier{#1}-not}{
1078 {\the\a_count}
1079 {\the\b_count}
1080 {\the\c_count}
1081 {\the\d_count}
1082 {}{}
1083 }
1084 \fi
1085 }
1086 \def\unsetglyph#1{\x_cs\let{g-#1}\x_relax}
1087 \def\glyph#1#2{
1088 \glyph_parameter\glyph_metrics{#1}
1089 \eval_expr_to\e_count{#2}
1090 \ifnum \e_count=\one_thousand
1091 \edef\a_macro{\mapcommands{#1}}
1092 \global\glyph_map_commands\expandafter{
1093 \the\expandafter\glyph_map_commands \a_macro
1094 }
1095 \edef\a_macro{\mapfonts{#1}}
1096 \else
1097 \multiply \a_count \e_count \l_rounded_thousandths\a_count
1098 \multiply \b_count \e_count \l_rounded_thousandths\b_count
1099 \multiply \c_count \e_count \l_rounded_thousandths\c_count
1100 \multiply \d_count \e_count \l_rounded_thousandths\d_count
1101 \edef\a_macro{\saved_scale{\the\e_count}{\mapcommands{#1}}}
1102 \global\glyph_map_commands\expandafter{
1103 \the\expandafter\glyph_map_commands \a_macro
1104 }
1105 \edef\a_macro{\saved_scale{\the\e_count}{\mapfonts{#1}}}
1106 \fi
1107 \advance \glyph_width \a_count
1108 \advance \b_count \glyph_voffset
1109 \ifnum \glyph_height<\b_count \global\glyph_height=\b_count \fi
1110 \advance \c_count -\glyph_voffset
1111 \ifnum \glyph_depth<\c_count \global\glyph_depth=\c_count \fi
1112 \global\glyph_italic=\d_count
1113 \global\glyph_map_fonts\expandafter{
1114 \the\expandafter\glyph_map_fonts \a_macro
1115 }
1116 }
1117 \def\glyphrule#1#2{
1118 \eval_expr_to\b_count{#1} \eval_expr_to\c_count{#2}
1119 \advance\glyph_width by \b_count
1120 \g_eval_expr_to\glyph_depth{\max\glyph_depth{-\glyph_voffset}}
1121 \g_eval_expr_to\glyph_height{
1122 \max\glyph_height{\add\glyph_voffset\c_count}
1123 }
1124 \global\glyph_italic=0
1125 \edef\a_macro{\saved_rule{\the\b_count}{\the\c_count}}
1126 \global\glyph_map_commands\expandafter{
1127 \the\expandafter\glyph_map_commands \a_macro
1128 }
1129 }
1130 \def\glyphspecial#1{
1131 \edef\a_macro{\saved_special{#1}}
1132 \global\glyph_map_commands\expandafter{
1133 \the\expandafter\glyph_map_commands \a_macro
1134 }
1135 }
1136 \def\glyphwarning#1{
1137 \edef\a_macro{\saved_warning{#1}}
1138 \global\glyph_map_commands\expandafter{
1139 \the\expandafter\glyph_map_commands \a_macro
1140 }
1141 }
1142 \def\movert#1{
1143 \eval_expr{#1}
1144 \ifnum \glyph_maxhpos<\glyph_width
1145 \global\glyph_maxhpos\glyph_width
1146 \fi
1147 \ifnum 0=\result \else
1148 \advance\glyph_width by \result
1149 \edef\a_macro{\saved_movert{\the\result}}
1150 \global\glyph_map_commands\expandafter{
1151 \the\expandafter\glyph_map_commands \a_macro
1152 }
1153 \fi
1154 }
1155 \def\moveup#1{
1156 \eval_expr{#1}
1157 \ifnum\result=0\else
1158 \advance\glyph_voffset by \result
1159 \edef\a_macro{\saved_moveup{\the\result}}
1160 \global\glyph_map_commands\expandafter{
1161 \the\expandafter\glyph_map_commands \a_macro
1162 }
1163 \fi
1164 }
1165 \def\push{
1166 \bgroup
1167 \global\glyph_map_commands\expandafter{
1168 \the\glyph_map_commands \saved_push
1169 }
1170 }
1171 \def\pop{
1172 \ifnum \glyph_maxhpos<\glyph_width
1173 \global\glyph_maxhpos\glyph_width
1174 \fi
1175 \egroup
1176 \global\glyph_map_commands\expandafter{
1177 \the\glyph_map_commands \saved_pop
1178 }
1179 }
1180 \def\resetwidth#1{\movert{\sub{#1}\glyph_width}}
1181 \def\resetheight{\g_eval_expr_to\glyph_height}
1182 \def\resetdepth{\g_eval_expr_to\glyph_depth}
1183 \def\resetitalic{\g_eval_expr_to\glyph_italic}
1184 \def\glyphpcc#1#2#3{
1185 \ifisglyph{\glyph_name_modifier{#1}}\then
1186 \push
1187 \movert{#2}
1188 \moveup{#3}
1189 \glyph{\glyph_name_modifier{#1}}{\one_thousand}
1190 \pop
1191 \else\ifisglyph{\glyph_name_modifier{#1}-not}\then
1192 \fontinstwarning{\string\glyphpcc}{
1193 Base~glyph~`\glyph_name_modifier{#1}'~not~appended,\messagebreak
1194 because~it~is~so~far~unencoded~in~the~glyph~base
1195 }
1196 \else
1197 \fontinsterror{\string\glyphpcc}{
1198 Base~glyph~not~set.\messagebreak
1199 This~could~be~a~sign~that~the~AFM~file~is~buggy
1200 }\error_help_a
1201 \fi\fi
1202 }
1203 \def\glyphbboxright{\max\glyph_width\glyph_maxhpos}
1204 \def\samesize#1{
1205 \if_undefined{g-\glyph_name_modifier{#1}}\then
1206 \resetwidth{\glyphbboxright}
1207 \else
1208 \expandafter\expandafter\expandafter
1209 \same_size\csname g-\glyph_name_modifier{#1}\endcsname
1210 \fi
1211 }
1212 \def\same_size#1#2#3#4#5#6{
1213 \movert{\sub{#1}\glyph_width}
1214 \global\glyph_height=#2
1215 \global\glyph_depth=#3
1216 \global\glyph_italic=#4
1217 }
1218 \def\ifisglyph#1\then{\if_defined{g-#1}\then}
1219 \def\ifareglyphs#1\then{
1220 \process_csep_list{\if_is_glyph}#1,\process_csep_list,
1221 \if_true
1222 }
1223 \def\if_is_glyph#1{
1224 \if_undefined{g-#1}\then \expandafter\if_false \fi
1225 }
1226 \def\etxtovpl#1#2{{
1227 \def\vpl_extension{vpl}
1228 \def\vpl_title{COMMENT}
1229 \def\vpl_font{virtual~font}
1230 \def\vpl_Font{Virtual~font}
1231 \def\vpl_call{\string\etxtovpl{#1}{#2}}
1232 \def\vpl_to_vf##1{vptovf~##1.vpl~##1.vf~##1.tfm}
1233 \a_toks={}
1234 \process_csep_list\make_inputetx #1,\process_csep_list,
1235 \expandafter\etx_to_font \expandafter{\the\a_toks}{#2}
1236 }}
1237 \def\etxtopl#1#2{{
1238 \def\vpl_extension{pl}
1239 \def\vpl_title{COMMENT}
1240 \def\vpl_font{font}
1241 \def\vpl_Font{Font}
1242 \def\vpl_call{\string\etxtopl{#1}{#2}}
1243 \def\vpl_to_vf##1{pltotf~##1.pl~##1.tfm}
1244 \_including_map_false
1245 \global\rawfont_scaling=-\p@
1246 \a_toks={}
1247 \process_csep_list\make_inputetx #1,\process_csep_list,
1248 \expandafter\etx_to_font \expandafter{\the\a_toks}{#2}
1249 }}
1250 \newif\if_including_map_
1251 \_including_map_true
1252 \def\make_inputetx#1{
1253 \def\a_macro{\noexpand\inputetx{\file_name}}
1254 \get_file_name #1~{}~\par
1255 \edef\a_macro{\a_macro}
1256 \a_toks=\expandafter{ \the\expandafter\a_toks \a_macro}
1257 }
1258 \x_cs\def{IFKW-mtxasetx}{
1259 \def\a_macro{\noexpand\input_mtx_as_etx{\file_name}}
1260 \get_keyword
1261 }
1262 \def\etx_to_font#1#2{
1263 \make_assignments{#1}
1264 \open_out{#2.\vpl_extension}
1265 \top_of_pl_hook
1266 \out_line{(\vpl_title\space\vpl_font\space
1267 #2~created~by~fontinst~v\fontinstversion)}
1268 \out_line{}
1269 \out_line{(COMMENT~Filename:~#2.\vpl_extension)}
1270 \out_line{(COMMENT~Created~by:~tex~\jobname)}
1271 \out_line{(COMMENT~Created~using:~\vpl_call)}
1272 \out_line{}
1273 \out_line{(COMMENT~This~file~can~be~turned~into~a~\vpl_font\space
1274 with)}
1275 \out_line{(COMMENT~\vpl_to_vf{#2})}
1276 \out_line{}
1277 \out_line{(COMMENT~THIS~FILE~CAN~THEN~BE~DELETED.)}
1278 \out_line{}
1279 \make_header{#1}
1280 \if_including_map_ \make_mapfonts{#1} \fi
1281 \make_fontdimens{#1}
1282 \make_ligtable{#1}
1283 \make_characters{#1}
1284 \make_tidy{#1}
1285 \out_line{}
1286 \out_line{(COMMENT~END~OF~FILE~#2.\vpl_extension)}
1287 \close_out{\vpl_Font}
1288 }
1289 \let\pre_first_etx_pass_hook\x_relax
1290 \let\pre_second_etx_pass_hook\x_relax
1291 \let\pre_third_etx_pass_hook\x_relax
1292 \let\pre_fourth_etx_pass_hook\x_relax
1293 \let\post_first_etx_pass_hook\x_relax
1294 \let\post_second_etx_pass_hook\x_relax
1295 \let\post_third_etx_pass_hook\x_relax
1296 \let\post_fourth_etx_pass_hook\x_relax
1297 \let\tidying_up_hook\x_relax
1298 \let\top_of_pl_hook\x_relax
1299 \def\make_assignments#1{
1300 \let\do_slot=\assign_slot
1301 \let\end_do_slot=\end_assign_slot
1302 \def\do_boundary{\bgroup
1303 \let\makerightboundary=\bad_makerightboundary
1304 }
1305 \let\endsetleftboundary=\egroup
1306 \let\makerightboundary=\assign_rboundary
1307 \pre_first_etx_pass_hook
1308 #1
1309 \post_first_etx_pass_hook
1310 \let\end_do_slot=\empty_command
1311 \let\do_boundary=\x_relax
1312 \let\endsetleftboundary=\x_relax
1313 \let\makerightboundary=\gobble_one
1314 }
1315 \def\assign_slot{\a_toks={\do}}
1316 \begingroup
1317 \catcode0=12
1318 \gdef\end_assign_slot{
1319 \ifisglyph\slot_name\then
1320 \lccode0=\slot_number
1321 \lowercase{
1322 \expandafter\add_to
1323 \csname slots-\slot_name\expandafter\endcsname
1324 \expandafter{\the\a_toks^^@}
1325 }
1326 \x_resetint\slot_name\slot_number
1327 \fi
1328 }
1329 \gdef\assign_rboundary#1{
1330 \lccode0=\slot_number
1331 \lowercase{\x_cs\add_to{slots-#1}{\rboundary_do^^@}}
1332 \x_setint{\percent_char boundarychar}\slot_number
1333 \a_toks={\rbserver_do}
1334 }
1335 \endgroup
1336 \def\bad_makerightboundary#1{
1337 \errhelp={The~left~boundary~is~not~a~slot,~so~it~cannot~serve~
1338 as~right~boundary.}
1339 \errmessage{Incorrect~use~of~\string\makerightboundary}
1340 }
1341 \def\get_slot_num#1{
1342 \ifisint{#1}\then
1343 \global\result=\int{#1}
1344 \else
1345 \global\result=-1
1346 \fi
1347 \x_relax
1348 }
1349 \def\ifisinslot#1#2\then{
1350 \ifx \makerightboundary\gobble_one
1351 \eval_expr{#2}
1352 \begingroup
1353 \def\do##1{\ifnum `##1=\result \let\do=\gobble_one \fi}
1354 \def\rbserver_do{\do}
1355 \let\rboundary_do=\gobble_one
1356 \csname slots-#1\endcsname
1357 \expandafter\endgroup
1358 \ifx \do\gobble_one
1359 \expandafter\expandafter \expandafter\if_true
1360 \else
1361 \expandafter\expandafter \expandafter\if_false
1362 \fi
1363 \else
1364 \expandafter\gobble_if
1365 \fi
1366 }
1367 \newdimen\mapfont_scaling
1368 \mapfont_scaling=1pt
1369 \newdimen\rawfont_scaling
1370 \def\vpl_real#1{R~\expandafter\lose_measure\the#1}
1371 \def\vpl_int#1{D~\the#1}
1372 \newdimen\side_bearings
1373 \newdimen\curr_bearings
1374 \def\make_header#1{
1375 \global\font_count=0
1376 \setdim{designsize}{10pt}
1377 \a_dimen=\dim{designsize}
1378 \out_line{(DESIGNSIZE~\vpl_real\a_dimen)}
1379 \x_setstr{codingscheme}{UNKNOWN}
1380 \out_line{(CODINGSCHEME~\str{codingscheme})}
1381 \ifisint{boundarychar}\then
1382 \x_setint{\percent_char boundarychar}{\int{boundarychar}}
1383 \immediate\write16{Please~use~\string\setleftboundary\space
1384 and/or~\string\makerightboundary^^J
1385 instead~of~setting~the~boundarychar~integer.}
1386 \fi
1387 \ifisint{\percent_char boundarychar}\then
1388 \a_count=\int{\percent_char boundarychar}
1389 \out_line{(BOUNDARYCHAR~\vpl_int\a_count)}
1390 \fi
1391 \x_setint{letterspacing}{0}
1392 \side_bearings=\make_factor{\int{letterspacing}}\half_point
1393 \x_setint{minimumkern}{0}
1394 \minimum_kern=\int{minimumkern}
1395 \out_line{}
1396 }
1397 \def\make_mapfonts#1{
1398 \let\saved_scale\vpl_scale
1399 \let\saved_mapfont\vpl_mapfont
1400 \let\do_slot=\do_mapfont
1401 \pre_second_etx_pass_hook
1402 #1
1403 \post_second_etx_pass_hook
1404 \out_line{}
1405 }
1406 \def\do_mapfont{
1407 \ifisglyph\slot_name\then
1408 \mapfonts\slot_name
1409 \fi
1410 }
1411 \def\vpl_scale#1#2{{
1412 \mapfont_scaling=\make_factor{#1}\mapfont_scaling
1413 #2
1414 }}
1415 \def\vpl_mapfont#1#2{
1416 \a_dimen=#2
1417 \if_undefined{\the\mapfont_scaling-#1}\then
1418 \global\x_cs\mathchardef{\the\mapfont_scaling-#1}=\font_count
1419 \x_cs\xdef{f-\the\font_count}{\the\mapfont_scaling-#1}
1420 \out_line{(MAPFONT~\vpl_int\font_count\space
1421 (FONTNAME~#1)~
1422 (FONTDSIZE~\vpl_real\a_dimen)~
1423 (FONTAT~\vpl_real\mapfont_scaling))}
1424 \record_usage{#1}
1425 \global\advance\font_count by 1
1426 \fi
1427 }
1428 \def\pl_mapfont#1#2{\global\rawfont_scaling=\mapfont_scaling}
1429 \newcount\font_count
1430 \newcount\next_mapfont
1431 \newcount\prev_mapfont
1432 \def\make_fontdimens#1{
1433 \out_line{(FONTDIMEN}
1434 \a_count=1
1435 \loop\ifnum 256>\a_count
1436 \ifisint{fontdimen(\the\a_count)}\then
1437 \out_lline{(PARAMETER~\vpl_int\a_count\space
1438 R~\make_factor{\int{fontdimen(\the\a_count)}})}
1439 \fi
1440 \advance \a_count \@ne
1441 \repeat
1442 \out_lline{)}
1443 \out_line{}
1444 }
1445 \def\make_ligtable#1{
1446 \begingroup
1447 \out_line{(LIGTABLE}
1448 \def\do_slot{\bgroup
1449 \ifisint{boundarychar}\then
1450 \ifnum \int{boundarychar}=\slot_number
1451 \def\vpl_liglabel{\out_liglabel\boundary_liglabel}
1452 \fi
1453 \fi
1454 }
1455 \let\end_do_slot=\vpl_kerning
1456 \def\do_boundary{\bgroup \let\vpl_liglabel=\boundary_liglabel}
1457 \let\endsetleftboundary=\vpl_kerning
1458 \let\ligature=\vpl_ligature
1459 \let\k=\vpl_kern
1460 \let\rbserver_do=\vpl_rbserver_do
1461 \let\rboundary_do=\vpl_rboundary_do
1462 \pre_third_etx_pass_hook
1463 #1
1464 \post_third_etx_pass_hook
1465 \out_lline{)}
1466 \endgroup
1467 \out_line{}
1468 }
1469 \def\vpl_rbserver_do#1{
1470 \do{#1}
1471 \let\rboundary_do=\wrn_rboundary_do
1472 }
1473 \def\vpl_rboundary_do#1{
1474 \do{#1}
1475 \let\rbserver_do=\wrn_rboundary_do
1476 }
1477 \def\wrn_rboundary_do#1{
1478 \do{#1}
1479 \immediate\write16{Boundarychar~slot~usage~collision~in~
1480 `\slot_name'~ligkern~program.}
1481 }
1482 \def\vpl_ligature#1#2#3{
1483 \get_slot_num{#3}
1484 \ifnum -1=\result
1485 \immediate\write16{Warning:~\string\ligature\space
1486 for~unknown~slot~`#3'.}
1487 \else
1488 \x_cs\ifx{slots-#2}\x_relax
1489 \immediate\write16{Warning:~\string\ligature\space
1490 for~unknown~slot~`#2'.}
1491 \else
1492 \def\do##1{
1493 \vpl_liglabel
1494 \out_lline{(#1~D~\number`##1~\space\vpl_int\result)~
1495 (COMMENT~#2~#3)}
1496 }
1497 \csname slots-#2\endcsname
1498 \fi
1499 \fi
1500 }
1501 \def\vpl_kerning{
1502 \let\do=\vpl_kern_do
1503 \csname~r-\slot_name\endcsname
1504 \vpl_ligstop
1505 \egroup
1506 }
1507 \def\vpl_kern#1#2{
1508 \edef\a_macro{\expandafter\gobble_three\string#1}
1509 \a_count=\expandafter\gobble_one\string#2\x_relax
1510 \ifnum \ifnum -\a_count>\a_count - \fi\a_count>\minimum_kern
1511 \edef\b_macro{~R~\make_factor\a_count}
1512 \csname slots-\a_macro\endcsname
1513 \fi
1514 \x_cs\let{slots-\a_macro}=\x_relax
1515 }
1516 \def\vpl_kern_do#1{
1517 \vpl_liglabel
1518 \out_lline{
1519 (KRN~D~\number`#1~\b_macro)~
1520 (COMMENT~\a_macro)
1521 }
1522 }
1523 \def\out_liglabel{
1524 \out_lline{(LABEL~\vpl_int\slot_number)~(COMMENT~\slot_name)}
1525 \let\vpl_liglabel=\x_relax
1526 \let\vpl_ligstop=\out_ligstop
1527 }
1528 \def\boundary_liglabel{
1529 \out_lline{(LABEL~BOUNDARYCHAR)~(COMMENT~\slot_name)}
1530 \let\vpl_liglabel=\x_relax
1531 \let\vpl_ligstop=\out_ligstop
1532 }
1533 \let\vpl_liglabel=\out_liglabel
1534 \def\out_ligstop{\out_lline{(STOP)}
1535 \let\vpl_liglabel=\out_liglabel
1536 \let\vpl_ligstop=\x_relax}
1537 \let\vpl_ligstop=\x_relax
1538 \def\make_characters#1{
1539 \bgroup
1540 \let\do_slot=\do_character
1541 \let\end_do_slot=\end_do_character
1542 \let\nextlarger=\vpl_nextlarger
1543 \let\varchar=\vpl_varchar
1544 \let\endvarchar=\end_vpl_varchar
1545 \let\vartop=\vpl_vartop
1546 \let\varmid=\vpl_varmid
1547 \let\varbot=\vpl_varbot
1548 \let\varrep=\vpl_varrep
1549 \if_including_map_
1550 \let\saved_raw\vpl_raw
1551 \let\saved_rule\vpl_rule
1552 \let\saved_special\vpl_special
1553 \let\saved_warning\vpl_warning
1554 \let\saved_movert\vpl_movert
1555 \let\saved_moveup\vpl_moveup
1556 \let\saved_push\vpl_push
1557 \let\saved_pop\vpl_pop
1558 \else
1559 \def\do_character_map{
1560 \ifdim \rawfont_scaling=-\p@
1561 \mapfonts\slot_name
1562 \else
1563 \let\do_character_map=\x_relax
1564 \fi
1565 }
1566 \let\saved_mapfont\pl_mapfont
1567 \let\saved_scale\vpl_scale
1568 \fi
1569 \pre_fourth_etx_pass_hook
1570 #1
1571 \post_fourth_etx_pass_hook
1572 \egroup
1573 }
1574 \def\do_character{
1575 \if_undefined{g-\slot_name}\then
1576 \ifisint{requireglyphs}\then
1577 \fontinstwarning{ETX~to~(V)PL}{
1578 Undefined~glyph~`\slot_name'~requested\message_break
1579 for~slot~\the\slot_number\message_number}
1580 \fi
1581 \expandafter\gobble_setslot
1582 \else
1583 \ifx\slot_name\notdef_name\else
1584 \out_line{(CHARACTER~\vpl_int\slot_number\space
1585 (COMMENT~\slot_name)}
1586 \glyph_parameter\glyph_metrics\slot_name
1587 \a_dimen=\make_factor\a_count \p@
1588 \do_character_sidebearings
1589 \out_lline{(CHARWD~\vpl_real\a_dimen)}
1590 \ifnum \z@=\b_count \else
1591 \out_lline{(CHARHT~R~\make_factor\b_count)}
1592 \fi
1593 \ifnum \z@=\c_count \else
1594 \out_lline{(CHARDP~R~\make_factor\c_count)}
1595 \fi
1596 \ifnum \z@=\d_count \else
1597 \out_lline{(CHARIC~R~\make_factor\d_count)}
1598 \fi
1599 \do_character_map
1600 \fi
1601 \fi
1602 }
1603 \def\do_character_sidebearings{
1604 \ifisint{\slot_name-spacing}\then
1605 \curr_bearings=\make_factor{\int{\slot_name-spacing}}\half_point
1606 \else
1607 \curr_bearings=\side_bearings
1608 \fi
1609 \advance\a_dimen by 2\curr_bearings
1610 }
1611 \def\do_character_map{
1612 \global\prev_mapfont=0
1613 \out_lline{(MAP}
1614 \ifdim 0pt=\curr_bearings
1615 \mapcommands\slot_name
1616 \else
1617 \out_llline{(MOVERIGHT~\vpl_real\curr_bearings)}
1618 \mapcommands\slot_name
1619 \out_llline{(MOVERIGHT~\vpl_real\curr_bearings)}
1620 \fi
1621 \out_llline{)}
1622 }
1623 \long\def\gobble_setslot#1\endsetslot{\endsetslot}
1624 \def\end_do_character{
1625 \ifisglyph\slot_name\then
1626 \out_lline{)}
1627 \fi
1628 }
1629 \def\notdef_name{.notdef}
1630 \def\vpl_nextlarger#1{
1631 \get_slot_num{#1}
1632 \ifnum -1<\result
1633 \out_lline{(NEXTLARGER~D~\the\result)~(COMMENT~#1)}
1634 \else
1635 \immediate\write16{Warning:~\string\nextlarger\space
1636 for~unknown~slot~`#1'}
1637 \fi
1638 }
1639 \def\vpl_varchar{\out_lline{(VARCHAR}}
1640 \def\end_vpl_varchar{\out_llline{)}}
1641 \def\vpl_vartop#1{
1642 \get_slot_num{#1}
1643 \ifnum -1<\result
1644 \out_llline{(TOP~D~\the\result)~(COMMENT~#1)}
1645 \else
1646 \immediate\write16{Warning:~\string\vartop\space
1647 for~unknown~slot~`#1'}
1648 \fi
1649 }
1650 \def\vpl_varmid#1{
1651 \get_slot_num{#1}
1652 \ifnum -1<\result
1653 \out_llline{(MID~D~\the\result)~(COMMENT~#1)}
1654 \else
1655 \immediate\write16{Warning:~\string\varmid\space
1656 for~unknown~slot~`#1'}
1657 \fi
1658 }
1659 \def\vpl_varbot#1{
1660 \get_slot_num{#1}
1661 \ifnum -1<\result
1662 \out_llline{(BOT~D~\the\result)~(COMMENT~#1)}
1663 \else
1664 \immediate\write16{Warning:~\string\varbot\space
1665 for~unknown~slot~`#1'}
1666 \fi
1667 }
1668 \def\vpl_varrep#1{
1669 \get_slot_num{#1}
1670 \ifnum -1<\result
1671 \out_llline{(REP~D~\the\result)~(COMMENT~#1)}
1672 \else
1673 \immediate\write16{Warning:~\string\varrep\space
1674 for~unknown~slot~`#1'}
1675 \fi
1676 }
1677 \def\vpl_raw#1#2#3{
1678 \global\next_mapfont=\csname\the\mapfont_scaling-#1\endcsname
1679 \ifnum \next_mapfont=\prev_mapfont \else
1680 \out_llline{(SELECTFONT~\vpl_int\next_mapfont)~
1681 (COMMENT~#1~at~
1682 \expandafter\lose_measure \the\mapfont_scaling)}
1683 \fi
1684 \out_llline{(SETCHAR~D~#2)~(COMMENT~#3)}
1685 \global\prev_mapfont=\next_mapfont
1686 }
1687 \def\vpl_rule#1#2{
1688 \a_dimen=\make_factor{#2}\mapfont_scaling
1689 \b_dimen=\make_factor{#1}\mapfont_scaling
1690 \out_llline{(SETRULE~\vpl_real\a_dimen\space\vpl_real\b_dimen)}
1691 }
1692 \def\vpl_special#1{
1693 \out_llline{(SPECIAL~#1)}}
1694 \def\vpl_warning#1{
1695 \ifwarningspecials
1696 \out_llline{(SPECIAL~Warning:~#1)}
1697 \fi
1698 \immediate\write16{Warning:~#1.}
1699 }
1700 \newif\ifwarningspecials
1701 \warningspecialstrue
1702 \def\vpl_movert#1{
1703 \a_dimen=\make_factor{#1}\mapfont_scaling
1704 \out_llline{(MOVERIGHT~\vpl_real\a_dimen)}
1705 }
1706 \def\vpl_moveup#1{
1707 \a_dimen=\make_factor{#1}\mapfont_scaling
1708 \out_llline{(MOVEUP~\vpl_real\a_dimen)}
1709 }
1710 \def\vpl_push{\out_llline{(PUSH)}}
1711 \def\vpl_pop{\out_llline{(POP)}}
1712 \def\make_tidy#1{
1713 \tidying_up_hook
1714 \if_including_map_
1715 \a_count=0
1716 \loop\ifnum \a_count<\font_count
1717 \edef\a_macro{\csname~f-\the\a_count\endcsname}
1718 \global\x_cs\let\a_macro\x_relax
1719 \advance\a_count by 1
1720 \repeat
1721 \global\font_count=0
1722 \else
1723 \ifdim \rawfont_scaling<\z@
1724 \fontinstwarning{ETX~to~(V)PL}{The~font~
1725 \out_filename\space doesn't~contain~any~characters}
1726 \global\rawfont_scaling=\p@
1727 \fi
1728 \ifdim \rawfont_scaling=\p@ \else
1729 \out_line{(DESIGNUNITS~\vpl_real\rawfont_scaling)}
1730 \fi
1731 \fi
1732 }
1733 \newtoks\family_toks
1734 \def\installfonts{
1735 \bgroup
1736 \global\family_toks={}
1737 \gdef\prev_file_list{}
1738 \global\let\setsomething_global=\global
1739 }
1740 \def\installfamily#1#2#3{
1741 \global\family_toks=
1742 \expandafter{\the\family_toks\fd_family{#1}{#2}{#3}}
1743 \global\x_cs\let{#1-#2}\empty_command
1744 }
1745 \def\installfont#1#2#3#4#5#6#7#8{
1746 \global\let\setsomething_global=\x_relax
1747 \input_metrics{}{#2}
1748 \etxtovpl{#3}{#1}
1749 \installfontas{#1}{#4}{#5}{#6}{#7}{#8}
1750 \global\let\setsomething_global=\global
1751 }
1752 \def\installrawfont#1#2#3#4#5#6#7#8{
1753 \global\let\setsomething_global=\x_relax
1754 \xdef\out_filename{#1}
1755 \input_metrics{\let\storemapdata=\installraw_storemap}{#2}
1756 \let\storemapdata=\gobble_three
1757 \etxtopl{#3}{#1}
1758 \record_usage{#1}
1759 \installfontas{
1760 \ifdim \rawfont_scaling=\p@ \else
1761 [\expandafter\lose_measure\the\rawfont_scaling]~
1762 \fi #1
1763 }{#4}{#5}{#6}{#7}{#8}
1764 \global\let\setsomething_global=\global
1765 }
1766 \def\installraw_storemap#1#2#3{
1767 \def\a_macro{#1}
1768 \ifx \a_macro\out_filename \else
1769 \record_transform{\out_filename}{\string\frommtx{#1}}{}\if_false
1770 \fi
1771 }
1772 \def\input_metrics#1#2{
1773 \let\metrics=\file_list_metrics
1774 \xdef\curr_file_list{#2,}
1775 \let\metrics=\x_relax
1776 \ifx\prev_file_list\curr_file_list\else
1777 \egroup\bgroup
1778 #1
1779 \expandafter\process_csep_list \expandafter\input_mtx_file
1780 \curr_file_list\process_csep_list,
1781 \global\let\prev_file_list=\curr_file_list
1782 \fi
1783 }
1784 \def\file_list_metrics#1,{
1785 \iffalse{\fi}
1786 \a_toks=\expandafter{\curr_file_list\x_relax#1,}
1787 \xdef\curr_file_list{\the\a_toks \iffalse}\fi
1788 }
1789 \def\installfontas#1#2#3#4#5#6{
1790 \if_undefined{#2-#3-#4-#5}\then
1791 \let\do_shape=\x_relax
1792 \if_undefined{#2-#3}\then
1793 \x_cs\let{#2-#3}\empty_command
1794 \autoinstallfamily{#2}{#3}
1795 \fi
1796 \x_cs\xdef{#2-#3}{
1797 \csname#2-#3\endcsname
1798 \do_shape{#2}{#3}{#4}{#5}
1799 }
1800 \fi
1801 \let\do_size=\x_relax
1802 \x_cs\xdef{#2-#3-#4-#5}{
1803 \if_defined{#2-#3-#4-#5}\then
1804 \csname#2-#3-#4-#5\endcsname
1805 \fi
1806 \do_size{#6}{#1}
1807 }
1808 }
1809 \def\autoinstallfamily#1#2{\installfamily{#1}{#2}{}}
1810 \def\endinstallfonts{
1811 \global\let\setsomething_global=\x_relax
1812 \let\do_shape=\fd_shape
1813 \let\do_size=\fd_size
1814 \the\family_toks
1815 \global\family_toks{}
1816 \egroup
1817 }
1818 \def\input_mtx_file#1{
1819 \reset_modifiers_hook
1820 \ifx\x_relax#1\x_relax
1821 \else
1822 \identity_one{\get_file_name #1~}~\par
1823 \ifx \pl_encoding\empty_command
1824 \fromany\file_name
1825 \else
1826 \metrics_given_encoding{\file_name}{\pl_encoding}
1827 \fi
1828 \ifisstr{afm-name}\then
1829 \inputmtx{\str{afm-name}}
1830 \else
1831 \fontinsterror{\string\install...}{
1832 Font/MTX~file~\file_name\space not~found
1833 }{
1834 You~can~insert~an~\string\inputmtx\space command~here
1835 \messagebreak to~input~some~other~MTX~file~instead.
1836 \ifisint{rawscale}\then \messagebreak
1837 The~requested~raw~scaling~will~then~be~applied~on~that.
1838 \fi
1839 }
1840 \fi
1841 \fi
1842 }
1843 \def\metrics_given_encoding#1#2{
1844 \x_cs\edef{s-afm-name}{#1-#2}
1845 \if_file_exists{#1.pl}\then
1846 \generalpltomtx{#1}{#1-#2}{pl}{#2}
1847 \else
1848 \if_file_exists{#1.vpl}\then
1849 \generalpltomtx{#1}{#1-#2}{vpl}{#2}
1850 \else
1851 \unsetstr{afm-name}
1852 \fi\fi
1853 }
1854 \def\reset_modifiers_hook{
1855 \unsetint{rawscale}
1856 \let\glyph_name_modifier\identity_one
1857 \let\pl_encoding\empty_command
1858 \let\list_of_options\empty_command
1859 }
1860 \def\get_file_name #1~{
1861 \edef\file_name{#1}
1862 \get_keyword
1863 }
1864 \def\get_keyword #1~{
1865 \if_defined{IFKW-#1}\then
1866 \csname IFKW-#1 \expandafter\endcsname
1867 \else
1868 \fontinsterror{\string\install...}{
1869 `#1'~is~not~a~defined~keyword
1870 }{
1871 \error_help_a\messagebreak
1872 Extra~tokens~will~be~flushed.
1873 }
1874 \expandafter\gobble_keywords
1875 \fi
1876 }
1877 \def\gobble_keywords#1\par{}
1878 \x_cs\let{IFKW-}=\gobble_keywords
1879 \x_cs\def{IFKW-scaled}#1~{
1880 \ifnum #1=\one_thousand
1881 \unsetint{rawscale}
1882 \else
1883 \x_resetint{rawscale}{#1}
1884 \fi
1885 \get_keyword
1886 }
1887 \x_cs\def{IFKW-suffix}#1~{
1888 \def\glyph_name_modifier##1{##1#1}
1889 \get_keyword
1890 }
1891 \x_cs\def{IFKW-encoding}#1~{
1892 \def\pl_encoding{#1}
1893 \get_keyword
1894 }
1895 \let\pl_encoding=\empty_command
1896 \x_cs\def{IFKW-option}#1~{
1897 \add_to\list_of_options{\do{#1}}
1898 }
1899 \def\ifoption#1\then{
1900 \_a_false
1901 \edef\a_macro{#1}
1902 \def\do##1{
1903 \if_a_ \else
1904 \def\b_macro{##1}
1905 \ifx \a_macro\b_macro \_a_true \fi
1906 \fi
1907 }
1908 \list_of_options
1909 \if_a_
1910 }
1911 \let\list_of_options\empty_command
1912 \def\fd_family#1#2#3{
1913 \a_toks{#3}
1914 \edef\lowercase_file{\lowercase{
1915 \edef\noexpand\lowercase_file{#1#2.fd}}}
1916 \lowercase_file
1917 \open_out{\lowercase_file}
1918 \out_line{\percent_char~Filename:~\lowercase_file}
1919 \out_line{\percent_char~Created~by:~tex~\jobname}
1920 \out_line{\percent_char~Created~using~fontinst~v\fontinstversion}
1921 \out_line{}
1922 \out_line{\percent_char~THIS~FILE~SHOULD~BE~PUT~IN~A~TEX~INPUTS~
1923 DIRECTORY}
1924 \out_line{}
1925 \out_line{\string\ProvidesFile{\lowercase_file}}
1926 \out_lline{[
1927 \the\year/
1928 \ifnum10>\month0\fi\the\month/
1929 \ifnum10>\day0\fi\the\day\space
1930 Fontinst~v\fontinstversion\space
1931 font~definitions~for~#1/#2.
1932 ]}
1933 \out_line{}
1934 \out_line{\string\DeclareFontFamily{#1}{#2}{\the\a_toks}}
1935 {
1936 \csname #1-#2\endcsname
1937 \out_line{}
1938 \let\do_shape=\substitute_shape
1939 \csname #1-#2\endcsname
1940 \let\do_shape=\remove_shape
1941 \csname #1-#2\endcsname
1942 }
1943 \x_cs\g_let{#1-#2}\x_relax
1944 \out_line{}
1945 \out_line{\string\endinput}
1946 \close_out{Font~definitions}
1947 }
1948 \def\fd_shape#1#2#3#4{
1949 \out_line{}
1950 \out_line{\string\DeclareFontShape{#1}{#2}{#3}{#4}\left_brace_char}
1951 \csname #1-#2-#3-#4\endcsname
1952 \x_cs\g_let{#1-#2-#3-#4}\empty_command
1953 \out_line{\right_brace_char{}}
1954 }
1955 \def\fd_size#1#2{
1956 \x_cs\ifx{siz-#1}\x_relax
1957 \out_lline{#1~#2}
1958 \else
1959 \out_lline{\csname siz-#1\endcsname\space #2}
1960 \fi
1961 }
1962 \def\remove_shape#1#2#3#4{
1963 \x_cs\g_let{#1-#2-#3-#4}\x_relax
1964 }
1965 \def\substitute_shape#1#2#3#4{
1966 \edef\orig_shape{#4}
1967 \substitute_series{#1}{#2}{#3}{\orig_shape}
1968 \x_cs\ifx{sub-\orig_shape}\x_relax\else
1969 \edef\subst_shape{\csname sub-\orig_shape\endcsname}
1970 \x_cs\ifx{#1-#2-#3-\subst_shape}\x_relax
1971 \out_line{
1972 \string\DeclareFontShape{#1}{#2}{#3}{\subst_shape}{
1973 <->\csname typ-\orig_shape\endcsname\space
1974 *~#2/#3/\orig_shape
1975 }{}
1976 }
1977 \x_cs\let{#1-#2-#3-\subst_shape}\empty_command
1978 \substitute_shape{#1}{#2}{#3}{\subst_shape}
1979 \fi
1980 \fi
1981 }
1982 \def\substitute_series#1#2#3#4{
1983 \edef\orig_series{#3}
1984 \x_cs\ifx{sub-\orig_series}\x_relax\else
1985 \edef\subst_series{\csname sub-\orig_series\endcsname}
1986 \x_cs\ifx{#1-#2-\subst_series-#4}\x_relax
1987 \out_line{
1988 \string\DeclareFontShape{#1}{#2}{\subst_series}{#4}{
1989 <->\csname typ-\orig_series\endcsname\space
1990 *~#2/\orig_series/#4
1991 }{}
1992 }
1993 \x_cs\let{#1-#2-\subst_series-#4}\empty_command
1994 \substitute_series{#1}{#2}{\subst_series}{#4}
1995 \fi
1996 \fi
1997 }
1998 \def\substitute_generic#1#2#3{
1999 \edef\a_macro{#2}
2000 \edef\b_macro{#3}
2001 \ifx \a_macro \b_macro
2002 \x_cs\let{sub-#3}\undefined_command
2003 \else
2004 \x_cs\let{sub-#3}\a_macro
2005 \x_cs\def{typ-#3}{#1}
2006 \fi
2007 }
2008 \def\substitutesilent{\substitute_generic{ssub}}
2009 \def\substitutenoisy{\substitute_generic{sub}}
2010 \substitutesilent{bx}{b}
2011 \substitutesilent{b}{bx}
2012 \substitutesilent{b}{sb}
2013 \substitutesilent{b}{db}
2014 \substitutesilent{m}{mb}
2015 \substitutesilent{m}{l}
2016 \substitutenoisy{ui}{it}
2017 \substitutesilent{sl}{it}
2018 \substitutesilent{it}{sl}
2019 \def\declareencoding#1#2{\x_cs\edef{enc-#1}{#2}}
2020 \declareencoding{TEX~TEXT}{ot1}
2021 \declareencoding{TEX~TEXT~WITHOUT~F-LIGATURES}{ot1}
2022 \declareencoding{TEX~TYPEWRITER~TEXT}{ot1tt}
2023 \declareencoding{TEX~MATH~ITALIC}{oml}
2024 \declareencoding{TEX~MATH~SYMBOLS}{oms}
2025 \declareencoding{TEX~MATH~EXTENSION}{omx}
2026 \declareencoding{LATEX~SYMBOLS}{lasy}
2027 \declareencoding{TEX~TEXT~SUBSET}{eufrak}
2028 \declareencoding{TEX~MATH~ITALIC~SUBSET}{eurm}
2029 \declareencoding{TEX~MATH~SYMBOLS~SUBSET}{euscr}
2030 \declareencoding{EULER~SUBSTITUTIONS~ONLY}{euex}
2031 \declareencoding{EXTENDED~TEX~FONT~ENCODING~-~LATIN}{t1}
2032 \declareencoding{TEX~TEXT~COMPANION~SYMBOLS~1---TS1}{ts1}
2033 \declareencoding{TEXBASE1ENCODING}{8r}
2034 \declareencoding{TEX~TYPEWRITER~AND~WINDOWS~ANSI}{8y}
2035 \def\declaresize#1#2{\x_cs\edef{siz-#1}{#2}}
2036 \declaresize{}{<->}
2037 \declaresize{5}{<5>}
2038 \declaresize{6}{<6>}
2039 \declaresize{7}{<7>}
2040 \declaresize{8}{<8>}
2041 \declaresize{9}{<9>}
2042 \declaresize{10}{<10>}
2043 \declaresize{11}{<10.95>}
2044 \declaresize{12}{<12>}
2045 \declaresize{14}{<14.4>}
2046 \declaresize{17}{<17.28>}
2047 \declaresize{20}{<20.74>}
2048 \declaresize{25}{<24.88>}
2049 \def\NOFILES{
2050 \def\transformfont##1##2{
2051 \touch_file{##1.mtx}
2052 \touch_file{##1.pl}
2053 }
2054 \def\reglyphfont##1##2{\touch_file{##1.mtx}}
2055 \def\installfonts{}
2056 \def\endinstallfonts{}
2057 \def\installfont##1##2##3##4##5##6##7##8{
2058 \touch_file{##1.vpl}
2059 }
2060 \def\installrawfont##1##2##3##4##5##6##7##8{
2061 \touch_file{##1.pl}
2062 }
2063 \def\installfamily##1##2##3{\touch_file{##1##2.fd}}
2064 }
2065 \def\touch_file#1{
2066 \edef\lowercase_file{\lowercase{
2067 \edef\noexpand\lowercase_file{#1}}}
2068 \lowercase_file
2069 \open_out{\lowercase_file}
2070 \out_line{\percent_char~TEST~FILE.}
2071 \out_line{\percent_char~Created~whilst~debugging~fontinst.}
2072 \close_out{Test~file}
2073 }
2074 %%% From file: fitrig.dtx
2075 \chardef\nin@ty=90
2076 \chardef\@clxxx=180
2077 \chardef\@lxxi=71
2078 \mathchardef\@mmmmlxviii=4068
2079 \chardef\@coeffz=72
2080 \chardef\@coefb=42
2081 \mathchardef\@coefc=840
2082 \mathchardef\@coefd=5040
2083 \def\TG@rem@pt#1{\expandafter\lose_measure\the#1\space}
2084 \def\TG@term#1{
2085 \dimen@\@tempb\dimen@
2086 \advance\dimen@ #1\p@
2087 }
2088 \def\TG@series{
2089 \dimen@\@lxxi\dimen@
2090 \divide \dimen@ \@mmmmlxviii
2091 \edef\@tempa{\TG@rem@pt\dimen@}
2092 \dimen@\@tempa\dimen@
2093 \edef\@tempb{\TG@rem@pt\dimen@}
2094 \divide\dimen@\@coeffz
2095 \advance\dimen@\m@ne\p@
2096 \TG@term\@coefb
2097 \TG@term{-\@coefc}%
2098 \TG@term\@coefd
2099 \dimen@\@tempa\dimen@
2100 \divide\dimen@ \@coefd
2101 }
2102 \def\CalculateSin#1{{%
2103 \if_undefined{sin(\number#1)}\then
2104 \dimen@=#1\p@
2105 \TG@@sin
2106 \x_cs\xdef{sin(\number#1)}{\TG@rem@pt\dimen@}
2107 \fi
2108 }}
2109 \def\CalculateCos#1{{%
2110 \if_undefined{cos(\number#1)}\then
2111 \dimen@=\nin@ty\p@
2112 \advance \dimen@ -#1\p@
2113 \TG@@sin
2114 \x_cs\xdef{cos(\number#1)}{\TG@rem@pt\dimen@}
2115 \fi
2116 }}
2117 \def\TG@@sin{%
2118 \ifdim\TG@reduce>+%
2119 \else\ifdim\TG@reduce<-%
2120 \else\TG@series\fi\fi
2121 }
2122 \def\TG@reduce#1#2{
2123 \dimen@#1#2\nin@ty\p@
2124 \advance\dimen@#2-\@clxxx\p@
2125 \dimen@-\dimen@
2126 \TG@@sin
2127 }
2128 \def\UseSin#1{\csname sin(\number#1)\endcsname}
2129 \def\UseCos#1{\csname cos(\number#1)\endcsname}
2130 \chardef\z@num\z@
2131 \x_cs\let{sin(0)} \z@num
2132 \x_cs\let{cos(0)} \@ne
2133 \x_cs\let{sin(90)} \@ne
2134 \x_cs\let{cos(90)} \z@num
2135 \x_cs\let{sin(-90)}\m@ne
2136 \x_cs\let{cos(-90)}\z@num
2137 \x_cs\let{sin(180)}\z@num
2138 \x_cs\let{cos(180)}\m@ne
2139 \def\CalculateTan#1{{%
2140 \if_undefined{tan(\number#1)}\then
2141 \CalculateSin{#1}%
2142 \CalculateCos{#1}%
2143 \a_dimen\UseCos{#1}\p@
2144 \divide \a_dimen \@iv
2145 \b_dimen\UseSin{#1}\p@
2146 \b_dimen\two@fourteen\b_dimen
2147 \divide\b_dimen\a_dimen
2148 \x_cs\xdef{tan(\number#1)}{\TG@rem@pt\b_dimen}
2149 \fi
2150 }}
2151 \def\UseTan#1{\csname tan(\number#1)\endcsname}
2152 \mathchardef\two@fourteen=16384
2153 \chardef\@iv=4
2154 \x_cs\def{tan(90)}{\errmessage{Infinite tan !}}
2155 \expandafter\let
2156 \csname tan(-90)\expandafter\endcsname \csname tan(90)\endcsname
2157 %%% From file: ficonv.dtx
2158 \def\afmtomtx#1#2{{
2159 \let\setsomething_global=\x_relax
2160 \open_out{\temp_prefix#2.mtx}
2161 \edef\raw_font_name{#2}
2162 \edef\source_font_name{#1}
2163 \x_resetint{italicslant}{0}
2164 \let\italcorr_expression=\uprightitalcorr
2165 \x_setint{minimumkern}{0}
2166 \minimum_kern=\int{minimumkern}
2167 \out_line{\percent_char~Filename:~#2.mtx}
2168 \out_line{\percent_char~Created~by:~tex~\jobname}
2169 \out_line{\percent_char~Created~using:~\string\afmtomtx{#1}{#2}}
2170 \out_line{}
2171 \out_line{\percent_char~This~file~contains~the~
2172 information~of~#1.afm~in~a~form}
2173 \out_line{\percent_char~more~easily~read~by~TeX.~
2174 It~is~used~by~the~fontinst~package.}
2175 \out_line{}
2176 \out_line{\percent_char~THIS~FILE~CAN~BE~DELETED.}
2177 \out_line{}
2178 \out_line{\string\relax}
2179 \out_line{\string\metrics}
2180 \out_line{}
2181 \out_line{\string\needsfontinstversion{\fontinstversion}}
2182 \out_line{}
2183 \catcode`\^^M=12
2184 \catcode`\ =10
2185 \expandafter\afm_line\primitiveinput #1.afm\x_relax
2186 \out_line{}
2187 \out_line{\endmetrics_text}
2188 \close_out{Metrics}
2189 }}
2190 \newcount\minimum_kern
2191 \def\afm_length#1#2{
2192 \a_dimen=#2\afm_unit_dimen
2193 #1=\a_dimen
2194 \divide #1 by \afm_unit_dimen
2195 \advance \a_dimen by -#1\afm_unit_dimen
2196 \ifdim \a_dimen>0.5\afm_unit_dimen
2197 \advance #1 by 1
2198 \else \ifdim \a_dimen<-0.5\afm_unit_dimen
2199 \advance #1 by -1
2200 \fi\fi
2201 \x_relax
2202 }
2203 \newdimen\afm_unit_dimen
2204 \afm_unit_dimen=1000sp
2205 {\catcode`\^^M=12 \gdef\afm_line#1
2206 {\afm_command#1~\end_of_line\afm_line}}
2207 \def\afm_command#1~{\csname~afm-#1\endcsname\gobble_one_line}
2208 \def\gobble_one_line#1\end_of_line{}
2209 \x_cs\def{afm-EndFontMetrics}#1\afm_line{\endinput}
2210 \def\afm_def#1(#2)#3{
2211 \x_cs\def{afm-#1}\gobble_one_line#2\end_of_line{#3}
2212 }
2213 \def\afm_let#1#2{
2214 \expandafter\let \csname afm-#1\expandafter\endcsname
2215 \csname afm-#2\endcsname
2216 }
2217 \afm_def{CharWidth}(#1){\afm_length\char_x_width{#1}}
2218 \afm_def{ItalicAngle}(#1~){\calculate_it_slant{#1}}
2219 \afm_def{XHeight}(#1){
2220 \afm_length\a_count{#1}
2221 \out_line{\string\setint{xheight}{\the\a_count}}}
2222 \afm_def{CapHeight}(#1){
2223 \afm_length\a_count{#1}
2224 \out_line{\string\setint{capheight}{\the\a_count}}}
2225 \afm_def{Ascender}(#1){
2226 \afm_length\a_count{#1}
2227 \out_line{\string\setint{ascender}{\the\a_count}}}
2228 \afm_def{Descender}(#1){
2229 \afm_length\a_count{#1}
2230 \out_line{\string\setint{descender_neg}{\the\a_count}}}
2231 \afm_def{UnderlineThickness}(#1){
2232 \afm_length\a_count{#1}
2233 \out_line{\string\setint{underlinethickness}{\the\a_count}}}
2234 \afm_def{FontBBox}(#1~#2~#3~#4){
2235 \afm_length\a_count{#4}
2236 \out_line{\string\setint{maxheight}{\the\a_count}}
2237 \afm_length\a_count{#2}
2238 \out_line{\string\setint{maxdepth_neg}{\the\a_count}}}
2239 \afm_def{StdVW}(#1){
2240 \afm_length\a_count{#1}
2241 \out_line{\string\setint{verticalstem}{\the\a_count}}}
2242 \afm_def{IsFixedPitch}(#1){
2243 \if\first_char#1=f
2244 \else\out_line{\string\setint{monowidth}{1}}
2245 \fi
2246 }
2247 \afm_def{FontName}(#1~){
2248 \record_transform{\raw_font_name}
2249 {\string\fromafm{\source_font_name}{#1}}{}\iftrue
2250 }
2251 \afm_def{KP}(#1~#2~#3~#4){
2252 \if\first_char#1=.\else
2253 \if\first_char#2=.\else
2254 \afm_length\a_count{#3}
2255 \ifnum \a_count>\minimum_kern
2256 \afm_write_setkern{#1}{#2}{\the\a_count}
2257 \else\ifnum \a_count<-\minimum_kern
2258 \afm_write_setkern{#1}{#2}{\the\a_count}
2259 \fi\fi
2260 \fi\fi
2261 }
2262 \afm_let{KPX}{KP}
2263 \def\afm_write_setkern#1#2#3{\out_line{\string\setkern{#1}{#2}{#3}}}
2264 \afm_def{C}(#1~;#2){\init_afm{#1}\do_list[#2]\afm_char}
2265 \afm_def{CH}(<#1>~;#2){\uppercase{\init_afm{"#1}}\do_list[#2]\afm_char}
2266 \afm_def{CC}(#1~#2~;#3){\init_cc{#1}\do_list[#3]\cc_char}
2267 \newcount\char_slot
2268 \newcount\char_x_width
2269 \newcount\x_width
2270 \newcount\bbox_llx
2271 \newcount\bbox_lly
2272 \newcount\bbox_urx
2273 \newcount\bbox_ury
2274 \let\char_name=\empty_command
2275 \def\init_afm#1{
2276 \char_slot=#1\x_relax
2277 \x_width=\char_x_width
2278 \bbox_llx=0
2279 \bbox_lly=0
2280 \bbox_urx=0
2281 \bbox_ury=0
2282 \let\char_name=\empty_command
2283 }
2284 \def\afm_char{
2285 \eval_expr{
2286 \italcorr_expression\x_width\bbox_llx\bbox_urx\bbox_lly\bbox_ury
2287 }
2288 \out_line{
2289 \ifnum -1<\char_slot
2290 \string\setrawglyph
2291 \else
2292 \string\setnotglyph
2293 \fi
2294 {\char_name}
2295 {\raw_font_name}
2296 {10pt}
2297 {\the\char_slot}
2298 {\the\x_width}
2299 {\the\bbox_ury}
2300 {\number -\bbox_lly}
2301 {\the\result}
2302 }
2303 }
2304 \def\init_cc#1{%
2305 \out_line{\string\setglyph{#1}}
2306 \def\char_name{#1}
2307 }
2308 \def\cc_char{%
2309 \out_lline{\string\samesize{\char_name-not}}
2310 \out_line{\string\endsetglyph}
2311 }
2312 \def\uprightitalcorr#1#2#3#4#5{0}
2313 \def\slanteditalcorr#1#2#3#4#5{\max{\sub{#3}{#1}}{0}}
2314 \def\calculate_it_slant#1{
2315 \edef\theangle{#1}
2316 \CalculateTan{\theangle}
2317 \a_dimen=-\one_thousand sp
2318 \a_dimen=\UseTan{\theangle}\a_dimen
2319 \a_count=\a_dimen
2320 \out_line{\string\setint{italicslant}{\the\a_count}}
2321 \x_resetint{italicslant}{\a_count}
2322 \ifnum 0<\a_count
2323 \let\italcorr_expression=\slanteditalcorr
2324 \else
2325 \let\italcorr_expression=\uprightitalcorr
2326 \fi
2327 }
2328 \def\do_list[~#1~#2;~#3]{
2329 \csname~list-#1\endcsname\gobble_one_semi#2;
2330 \ifx\x_relax#3\x_relax\expandafter\gobble_one
2331 \else\expandafter\identity_one\fi
2332 {\do_list[~#3]}
2333 }
2334 \def\gobble_one_semi#1;{}
2335 \def\list_def#1(#2)#3{\x_cs\def{list-#1}\gobble_one_semi#2~;{#3}}
2336 \list_def{W}(#1~#2){\afm_length\x_width{#1}}
2337 \list_def{WX}(#1){\afm_length\x_width{#1}}
2338 \list_def{WY}(#1){}
2339 \list_def{N}(#1){\def\char_name{#1}}
2340 \list_def{B}(#1~#2~#3~#4){
2341 \afm_length\bbox_llx{#1}
2342 \afm_length\bbox_lly{#2}
2343 \afm_length\bbox_urx{#3}
2344 \afm_length\bbox_ury{#4}
2345 }
2346 \list_def{PCC}(#1~#2~#3){
2347 \afm_length\a_count{#2}
2348 \afm_length\b_count{#3}
2349 \out_lline{\string\glyphpcc{#1}{\the\a_count}{\the\b_count}}
2350 }
2351 \def\definealias#1#2#3{
2352 \expandafter\def \csname GN-#1 \expandafter\endcsname
2353 \expandafter{ \csname g-#2 \expandafter\endcsname
2354 \csname i-#3\endcsname}
2355 }
2356 \def\glyph_alias#1{
2357 \expandafter\expandafter \expandafter\glyph_alias_i
2358 \csname GN-#1\endcsname
2359 }
2360 \def\glyph_alias_i#1#2{
2361 \expandafter\gobble_three \string#1
2362 }
2363 \let\charnameprefix\empty
2364 \def\charnamealias#1{
2365 \if_defined{GN-\charnameprefix#1}\then
2366 \glyph_alias{\charnameprefix#1}
2367 \else\if_defined{GN-#1}\then
2368 \glyph_alias{#1}
2369 \else
2370 #1
2371 \fi\fi
2372 }
2373 \def\alias_incr#1{
2374 \expandafter\expandafter \expandafter\alias_incr_i
2375 \csname GN-#1\endcsname
2376 }
2377 \def\alias_incr_i#1#2{
2378 \ifx#2\x_relax
2379 \mathchardef#2=\@ne
2380 \else
2381 \a_count=#2
2382 \advance\a_count\@ne
2383 \mathchardef#2=\a_count
2384 \fi
2385 }
2386 \def\alias_char_name#1{
2387 \if_defined{GN-\charnameprefix#1}\then
2388 \edef\char_name{
2389 \string\aliased{#1}{\glyph_alias{\charnameprefix#1}}
2390 }
2391 \alias_incr{\charnameprefix#1}
2392 \else\if_defined{GN-#1}\then
2393 \edef\char_name{
2394 \string\aliased{#1}{\glyph_alias{#1}}
2395 }
2396 \alias_incr{#1}
2397 \else
2398 \edef\char_name{#1}
2399 \fi\fi
2400 }
2401 \def\autoaliasafm{
2402 \begingroup
2403 \list_def{N}(##1){\alias_char_name{##1}}
2404 \def\afm_write_setkern##1##2##3{
2405 \out_line{
2406 \string\setkern{\charnamealias{##1}}{\charnamealias{##2}}{##3}
2407 }
2408 }
2409 \def\init_cc##1{%
2410 \edef\char_name{\charnamealias{##1}}
2411 \out_line{\string\setglyph{\char_name}}
2412 }
2413 \list_def{PCC}(##1~##2~##3){
2414 \afm_length\a_count{##2}
2415 \afm_length\b_count{##3}
2416 \out_lline{\string\glyphpcc
2417 {\charnamealias{##1}}{\the\a_count}{\the\b_count}}
2418 }
2419 }
2420 \def\endautoaliasafm{\endgroup}
2421 \def\generalpltomtx#1#2#3#4{{
2422 \let\setsomething_global=\x_relax
2423 \let\setfontdimen=\pl_setfontdimen
2424 \if _#4_ \else
2425 \def\do_slot{\x_cs\let{name-\the\slot_number}\slot_name}
2426 \def\do_boundary{\x_cs\let{name-BOUNDARYCHAR}\slot_name}
2427 \inputetx{#4}
2428 \let\CODINGSCHEME=\ignore_parens
2429 \fi
2430 \pl_to_mtx{#1}{#2}{#3}{\string\generalpltomtx{#1}{#2}{#3}{#4}}
2431 }}
2432 \def\pltomtx#1#2{\generalpltomtx{#1}{#2}{pl}{}}
2433 \def\pl_to_mtx#1#2#3#4{
2434 \edef\raw_font_name{#1}
2435 \open_out{\temp_prefix#2.mtx}
2436 \out_line{\percent_char~Filename:~#2.mtx}
2437 \out_line{\percent_char~Created~by:~tex~\jobname}
2438 \out_line{\percent_char~Created~using:~#4}
2439 \out_line{}
2440 \out_line{\percent_char~This~file~contains~the~
2441 information~of~#1.#3~in~a~form}
2442 \out_line{\percent_char~more~easily~read~by~TeX.~
2443 It~is~used~by~the~fontinst~package.}
2444 \out_line{}
2445 \out_line{\percent_char~THIS~FILE~CAN~BE~DELETED.}
2446 \out_line{}
2447 \out_line{\string\relax}
2448 \out_line{\string\metrics}
2449 \out_line{}
2450 \out_line{\string\needsfontinstversion{\fontinstversion}}
2451 \out_line{}
2452 \lowercase{
2453 \record_transform{#2}{
2454 \string\from#3 \x_cs\ifx{from#3}\frompl {#1} \fi
2455 }{}\iftrue
2456 }
2457 \out_line{}
2458 \catcode`\(=0 \catcode`\)=9
2459 \let\/=\ignore_parens
2460 \let\do_pl_glyph=\x_relax
2461 \primitiveinput #1.#3\x_relax
2462 \do_pl_glyph
2463 \out_line{}
2464 \ifisint{\percent_char boundarychar}\then
2465 \f_count=\int{\percent_char boundarychar}
2466 \x_cs\ifx{name-\the\f_count}\x_relax \else
2467 \out_line{\string\setstr{rightboundary}
2468 {\csname name-\the\f_count\endcsname}
2469 }
2470 \out_line{}
2471 \fi
2472 \fi
2473 \out_line{\endmetrics_text}
2474 \close_out{Metrics}
2475 }
2476 \def\ignore_parens{\bgroup\catcode`(=1 \catcode`)=2 \x_relax
2477 \expandafter\expandafter\expandafter\gobble_parens
2478 \iftrue\expandafter{\else}\fi}
2479 \def\gobble_parens#1{\egroup}
2480 \def\pl_real#1{\pl_realer(#1000)}
2481 \def\pl_realer(#1.#2#3#4#5){#1#2#3#4}
2482 \def\pl_rounded_real(#1.#2#3#4#5){
2483 \global\result=#1#2#3#4\relax
2484 \ifnum \first_char#5= >4
2485 \global\advance \result
2486 \if - \first_char#1= \m@ne \else \@ne \fi
2487 \fi
2488 }
2489 \def\pl_int#1#2{
2490 \ifx#1C `#2
2491 \else\ifx#1D #2
2492 \else\ifx#1O '#2
2493 \else\ifx#1H "#2
2494 \else -1\errmessage{Unknown~PL~number~prefix~`#1'}
2495 \fi\fi\fi\fi
2496 }
2497 \let\FAMILY=\ignore_parens
2498 \let\FACE=\ignore_parens
2499 \let\CHECKSUM=\ignore_parens
2500 \def\HEADER~#1~#2~#3~#4~{}
2501 \def\SEVENBITSAFEFLAG~#1~{}
2502 \let\COMMENT=\ignore_parens
2503 \let\LIG=\ignore_parens
2504 \let\NEXTLARGER=\ignore_parens
2505 \let\VARCHAR=\ignore_parens
2506 \let\VTITLE=\ignore_parens
2507 \let\MAPFONT=\ignore_parens
2508 \let\MAP=\ignore_parens
2509 \def\CODINGSCHEME{\bgroup\catcode`\)=12\x_relax\CODINGSCHEME_cont}
2510 \def\CODINGSCHEME_cont#1){
2511 \egroup
2512 \if_undefined{enc-#1}\then
2513 \errhelp{The~encoding~for~`#1'~has~not~been~declared.^^J
2514 You~should~declare~it~with~
2515 \string\declareencoding{#1}{ETXFILE}.^^J
2516 Press~<RETURN>~to~carry~on~with~fingers~crossed,^^J
2517 or~X~<RETURN>~to~exit.}
2518 \errmessage{Undeclared~encoding~`#1'}
2519 \else
2520 \def\do_slot{\x_cs\let{name-\the\slot_number}\slot_name}
2521 \def\do_boundary{\x_cs\let{name-BOUNDARYCHAR}\slot_name}
2522 \catcode`\(=12 \catcode`\)=12
2523 \x_cs\inputetx{enc-#1}\x_relax
2524 \catcode`\(=0 \catcode`\)=9
2525 \fi
2526 }
2527 \def\DESIGNSIZE~#1~#2~{
2528 \a_dimen=#2pt
2529 \out_line{\string\setdim{designsize}{\the\a_dimen}}
2530 }
2531 \def\DESIGNUNITS~#1~#2~{
2532 \b_dimen=#2pt\x_relax
2533 \ifdim 1pt=\b_dimen \else
2534 \fontinsterror{PL-to-MTX}{Nondefault~unit~used~in~PL~file}
2535 {You~may~continue,~but~the~metrics~for~this~font~will~be~wrong.}
2536 \fi
2537 \out_line{\string\setdim{designunits}{\the\b_dimen}}
2538 }
2539 \def\BOUNDARYCHAR~#1~#2~{
2540 \x_setint{\percent_char boundarychar}{\pl_int{#1}{#2}}
2541 }
2542 \def\pl_setfontdimen#1#2{\x_cs\def{fdimen-#1}{#2}}
2543 \def\PARAMETER~#1~#2~R~#3~{
2544 \f_count=\pl_int{#1}{#2}\x_relax
2545 \if_defined{fdimen-\the\f_count}\then
2546 \pl_rounded_real(#3 0000)
2547 \out_line{\string\setint{\csname fdimen-\the\f_count\endcsname}
2548 {\the\result}}
2549 \fi
2550 }
2551 \let\FONTDIMEN=\x_relax
2552 \def\SLANT{\PARAMETER D~1~}
2553 \pl_setfontdimen{1}{italicslant}
2554 \def\SPACE{\PARAMETER D~2~}
2555 \pl_setfontdimen{2}{interword}
2556 \def\STRETCH{\PARAMETER D~3~}
2557 \pl_setfontdimen{3}{stretchword}
2558 \def\SHRINK{\PARAMETER D~4~}
2559 \pl_setfontdimen{4}{shrinkword}
2560 \def\XHEIGHT{\PARAMETER D~5~}
2561 \pl_setfontdimen{5}{xheight}
2562 \def\QUAD{\PARAMETER D~6~}
2563 \pl_setfontdimen{6}{quad}
2564 \def\EXTRASPACE{\PARAMETER D~7~}
2565 \pl_setfontdimen{7}{extraspace}
2566 \def\NUM#1~#2~#3~{
2567 \ifcase #1\or
2568 \PARAMETER D~8~#2~#3~
2569 \or
2570 \PARAMETER D~9~#2~#3~
2571 \or
2572 \PARAMETER D~10~#2~#3~
2573 \fi
2574 }
2575 \def\DENOM#1~#2~#3~{
2576 \ifcase #1\or
2577 \PARAMETER D~11~#2~#3~
2578 \or
2579 \PARAMETER D~12~#2~#3~
2580 \fi
2581 }
2582 \def\SUP#1~#2~#3~{
2583 \ifcase #1\or
2584 \PARAMETER D~13~#2~#3~
2585 \or
2586 \PARAMETER D~14~#2~#3~
2587 \or
2588 \PARAMETER D~15~#2~#3~
2589 \fi
2590 }
2591 \def\SUB#1~#2~#3~{
2592 \ifcase #1\or
2593 \PARAMETER D~16~#2~#3~
2594 \or
2595 \PARAMETER D~17~#2~#3~
2596 \fi
2597 }
2598 \def\SUPDROP{\PARAMETER D~18~}
2599 \def\SUBDROP{\PARAMETER D~19~}
2600 \def\AXISHEIGHT{\PARAMETER D~22~}
2601 \def\DELIM#1~#2~#3~{
2602 \ifcase #1\or
2603 \PARAMETER D~20~#2~#3~
2604 \or
2605 \PARAMETER D~21~#2~#3~
2606 \fi
2607 }
2608 \def\DEFAULTRULETHICKNESS{\PARAMETER D~8~}
2609 \def\BIGOPSPACING#1~#2~#3~{
2610 \ifcase #1\or
2611 \PARAMETER D~9~#2~#3~
2612 \or
2613 \PARAMETER D~10~#2~#3~
2614 \or
2615 \PARAMETER D~11~#2~#3~
2616 \or
2617 \PARAMETER D~12~#2~#3~
2618 \or
2619 \PARAMETER D~13~#2~#3~
2620 \fi
2621 }
2622 \def\LABEL~#1{\ifx #1B
2623 \expandafter\LABEL_boundarychar
2624 \else
2625 \expandafter\LABEL_slot \expandafter#1
2626 \fi
2627 }
2628 \def\LABEL_slot #1~#2~{
2629 \f_count=\pl_int{#1}{#2}
2630 \edef\a_macro{\a_macro
2631 \x_cs\do_if_defined{name-\the\f_count}
2632 }
2633 }
2634 \def\LABEL_boundarychar OUNDARYCHAR{
2635 \edef\a_macro{\a_macro
2636 \x_cs\do_if_defined{name-BOUNDARYCHAR}
2637 }
2638 }
2639 \def\do_if_defined#1{\ifx #1\x_relax \else \do{#1} \fi}
2640 \def\LIGTABLE{\let\do=\never_do\let\a_macro\empty_command}
2641 \def\STOP{\let\a_macro\empty_command}
2642 \def\SKIP~#1~#2~{\immediate\write16{Warning:~SKIP~instruction~ignored.}}
2643 \def\KRN~#1~#2~R~#3~{
2644 \pl_rounded_real(#3 0000)
2645 \edef\do{\noexpand\write_pl_krn{\pl_int{#1}{#2}}{\the\result}}
2646 \a_macro
2647 \let\do=\never_do
2648 }
2649 \def\write_pl_krn#1#2#3{
2650 \f_count=#1\x_relax
2651 \x_cs\ifx{name-\the\f_count}\x_relax \else
2652 \out_line{\string\setkern{#3}
2653 {\csname name-\the\f_count\endcsname}{#2}
2654 }
2655 \fi
2656 }
2657 \def\CHARWD~R~#1~{\pl_rounded_real(#1 0000) \b_count=\result}
2658 \def\CHARHT~R~#1~{\pl_rounded_real(#1 0000) \c_count=\result}
2659 \def\CHARDP~R~#1~{\pl_rounded_real(#1 0000) \d_count=\result}
2660 \def\CHARIC~R~#1~{\pl_rounded_real(#1 0000) \e_count=\result}
2661 \def\CHARACTER~#1~#2~{
2662 \do_pl_glyph
2663 \a_count=\pl_int{#1}{#2}
2664 \b_count=0
2665 \c_count=0
2666 \d_count=0
2667 \e_count=0
2668 \let\do_pl_glyph=\write_pl_glyph
2669 }
2670 \def\write_pl_glyph{
2671 \x_cs\ifx{name-\the\a_count}\x_relax\else
2672 \out_line{\string\setrawglyph
2673 {\csname~name-\the\a_count\endcsname}
2674 {\raw_font_name}
2675 {\the\a_dimen}
2676 {\the\a_count}
2677 {\the\b_count}
2678 {\the\c_count}
2679 {\the\d_count}
2680 {\the\e_count}}
2681 \fi
2682 }
2683 \def\mtxtopl#1#2{{
2684 \let\setsomething_global=\x_relax
2685 \open_out{#2.pl}
2686 \top_of_pl_hook
2687 \out_line{(COMMENT~raw~font~#2~created~by~fontinst~
2688 v\fontinstversion)}
2689 \out_line{}
2690 \out_line{(COMMENT~Filename:~#2.pl)}
2691 \out_line{(COMMENT~Created~by:~tex~\jobname)}
2692 \out_line{(COMMENT~Created~using:~\string\mtxtopl{#1}{#2})}
2693 \out_line{}
2694 \out_line{(COMMENT~This~file~can~be~turned~into~
2695 a~ligless~TeX~font~with)}
2696 \out_line{(COMMENT~pltotf~#2.pl~#2.tfm)}
2697 \out_line{}
2698 \out_line{(COMMENT~THIS~FILE~CAN~THEN~BE~DELETED.)}
2699 \out_line{}
2700 \out_line{(DESIGNSIZE~R~10.0)}
2701 \out_line{}
2702 \let\setglyph=\iffalse
2703 \let\endsetglyph=\fi
2704 \let\setkern=\gobble_three
2705 \let\setscaledrawglyph=\first_pl_raw_glyph
2706 \def\setscalednotglyph##1##2##3##4##5##6##7##8##9{}
2707 \inputmtx{#1}
2708 \out_line{}
2709 \out_line{(COMMENT~END~OF~FILE~#2.pl)}
2710 \close_out{Raw~font}
2711 }}
2712 \def\first_pl_raw_glyph#1#2#3#4{
2713 \out_line{(DESIGNUNITS~R~\make_factor{#4})}
2714 \let\setscaledrawglyph=\pl_raw_glyph
2715 \pl_raw_glyph{#1}{#2}{#3}{#4}
2716 }
2717 \def\pl_raw_glyph#1#2#3#4#5#6#7#8#9{
2718 \out_line{(CHARACTER~D~\number#5~\space(COMMENT~#1)}
2719 \out_lline{(CHARWD~R~\make_factor{#6})}
2720 \out_lline{(CHARHT~R~\make_factor{#7})}
2721 \out_lline{(CHARDP~R~\make_factor{#8})}
2722 \out_lline{(CHARIC~R~\make_factor{#9})}
2723 \out_lline{)}
2724 }
2725 \def\transformfont#1#2{{
2726 \let\setsomething_global=\x_relax
2727 \unsetstr{afm-name}
2728 \unsetstr{etx-name}
2729 \x_resetint{x-scale}{\one_thousand}
2730 \x_resetint{y-scale}{\one_thousand}
2731 \x_resetint{slant-scale}{0}
2732 #2
2733 \ifisstr{afm-name}\then
2734 \mtxtomtx{\str{afm-name}}{#1}
2735 \mtxtopl{#1}{#1}
2736 \else
2737 \fontinsterror{Transformfont}{
2738 Failed~to~make~transformed~font~#1;\messagebreak
2739 source~font~metrics~file~not~found
2740 }\error_help_a
2741 \fi
2742 }}
2743 \def\fromafm#1{
2744 \if_file_exists{#1.afm}\then
2745 \x_setstr{afm-name}{#1}
2746 \afmtomtx{#1}{#1}
2747 \mtxtopl{#1}{#1}
2748 \fi
2749 }
2750 \def\frommtx#1{
2751 \if_file_exists{#1.mtx}\then \x_setstr{afm-name}{#1} \fi
2752 }
2753 \def\frompl#1{
2754 \if_file_exists{#1.pl}\then
2755 \x_setstr{afm-name}{#1}
2756 \generalpltomtx{#1}{#1}{pl}{}
2757 \fi
2758 }
2759 \def\fromplgivenetx#1#2{
2760 \if_file_exists{#1.pl}\then
2761 \x_setstr{afm-name}{#1}
2762 \generalpltomtx{#1}{#1}{pl}{#2}
2763 \fi
2764 }
2765 \def\fromany#1{
2766 \x_cs\edef{s-afm-name}{#1}
2767 \if_file_exists{#1.mtx}\then\else
2768 \if_file_exists{#1.pl}\then
2769 \generalpltomtx{#1}{#1}{pl}{}
2770 \else
2771 \if_file_exists{#1.afm}\then
2772 \afmtomtx{#1}{#1}
2773 \mtxtopl{#1}{#1}
2774 \else
2775 \if_file_exists{#1.vpl}\then
2776 \generalpltomtx{#1}{#1}{vpl}{}
2777 \else
2778 \unsetstr{afm-name}
2779 \fi\fi\fi\fi
2780 }
2781 \def\scalefont#1#2{
2782 \eval_expr_to\d_count{#1}
2783 \x_resetint{x-scale}{\scale{\d_count}{\int{x-scale}}}
2784 \x_resetint{y-scale}{\scale{\d_count}{\int{y-scale}}}
2785 \x_resetint{slant-scale}{\scale{\d_count}{\int{slant-scale}}}
2786 #2
2787 }
2788 \def\xscalefont#1#2{
2789 \x_resetint{x-scale}{\scale{#1}{\int{x-scale}}}
2790 #2
2791 }
2792 \def\yscalefont#1#2{
2793 \eval_expr_to\d_count{#1}
2794 \x_resetint{y-scale}{\scale{\d_count}{\int{y-scale}}}
2795 \x_resetint{slant-scale}{\scale{\d_count}{\int{slant-scale}}}
2796 #2
2797 }
2798 \def\slantfont#1#2{
2799 \x_resetint{slant-scale}{
2800 \add{\scale{#1}{\int{x-scale}}}{\int{slant-scale}}
2801 }
2802 #2
2803 }
2804 \def\reencodefont#1#2{
2805 #2
2806 \resetstr{etx-name}{#1}
2807 }
2808 \def\mtxtomtx#1#2{{
2809 \let\a_macro=\empty_command
2810 \_a_true
2811 \ifnum \int{x-scale}=\int{y-scale}
2812 \ifnum \int{slant-scale}=\z@
2813 \_a_false
2814 \fi \fi
2815 \if_a_
2816 \a_count=\int{x-scale}
2817 \l_inv_scale\a_count{\int{y-scale}}
2818 \b_count=\int{slant-scale}
2819 \l_inv_scale\b_count{\int{y-scale}}
2820 \edef\a_macro{\a_macro
2821 \string\transformfont{\the\a_count}{\the\b_count}
2822 }
2823 \fi
2824 \open_out{\temp_prefix#2.mtx}
2825 \edef\raw_font_name{#2}
2826 \out_line{\percent_char~Filename:~#2.mtx}
2827 \out_line{\percent_char~Created~by:~tex~\jobname}
2828 \out_line{\percent_char~Created~using:~\string\mtxtomtx{#1}{#2}}
2829 \out_line{}
2830 \out_line{\percent_char~This~file~is~used~by~the~fontinst~package.}
2831 \out_line{}
2832 \out_line{\percent_char~THIS~FILE~CAN~BE~DELETED.}
2833 \out_line{}
2834 \out_line{\string\relax}
2835 \out_line{\string\metrics}
2836 \out_line{}
2837 \out_line{\string\needsfontinstversion{\fontinstversion}}
2838 \out_line{}
2839 \ifisstr{etx-name}\then
2840 \def\do_slot{\x_cs\edef{slots-\slot_name}{\the\slot_number}}
2841 \def\declarepsencoding##1##2##3{
2842 \a_toks={{##1}{##2}{##3}}
2843 \out_line{\string\providepsencoding\the\a_toks}
2844 \ifnum \transform_record_file=\closed_stream \else
2845 \pout_line\transform_record_file
2846 {\string\providepsencoding\the\a_toks}
2847 \fi
2848 }
2849 \directfalse
2850 \inputetx{\str{etx-name}}
2851 \edef\a_macro{\a_macro\string\reencodefont{\str{etx-name}}}
2852 \fi
2853 \record_transform{#2}{\string\frommtx{#1}}{\a_macro}\iftrue
2854 \out_line{}
2855 \mtxtomtx_redefinitions
2856 \inputmtx{#1}
2857 \out_line{}
2858 \out_line{\endmetrics_text}
2859 \close_out{Transformed~metrics}
2860 }}
2861 \def\mtxtomtx_redefinitions{
2862 \let\setint=\mtxtomtx_setint
2863 \let\setdim=\mtxtomtx_setdim
2864 \let\setstr=\mtxtomtx_setstr
2865 \let\setscaledrawglyph=\mtxtomtx_setscaledrawglyph
2866 \let\setscalednotglyph=\mtxtomtx_setscaledrawglyph
2867 \let\setkern=\mtxtomtx_setkern
2868 \let\setglyph=\mtxtomtx_setglyph
2869 \let\glyphpcc=\mtxtomtx_glyphpcc
2870 \let\samesize=\mtxtomtx_samesize
2871 \let\endsetglyph=\mtxtomtx_endsetglyph
2872 \def\aliased{\string\aliased}
2873 }
2874 \let\aliased=\second_of_two
2875 \def\mtxtomtx_setint#1#2{
2876 \def\a_macro{#1}
2877 \ifx \a_macro\italicslant_name
2878 \eval_expr{#2}
2879 \global\multiply \result \int{x-scale}
2880 \a_count=\int{slant-scale}
2881 \multiply \a_count \one_thousand
2882 \advance \a_count \result
2883 \divide \a_count \int{y-scale}\x_relax
2884 \else
2885 \def\do##1{
2886 \def\b_macro{##1}
2887 \ifx \a_macro\b_macro \expandafter\if_false \fi
2888 }
2889 \gobble_one\iftrue \width_ints_list \if_true
2890 \eval_expr_to\a_count{\scale{#2}{\int{y-scale}}}
2891 \else
2892 \eval_expr_to\a_count{\scale{#2}{\int{x-scale}}}
2893 \fi
2894 \fi
2895 \out_line{\string\setint{#1}{\the\a_count}}
2896 }
2897 \def\italicslant_name{italicslant}
2898 \def\width_ints_list{
2899 \do{interword}\do{stretchword}\do{shrinkword}\do{quad}
2900 \do{extraspace}\do{digitwidth}\do{verticalstem}
2901 }
2902 \def\mtxtomtx_setdim#1#2{
2903 \out_line{\string\setdim{#1}{#2}}
2904 }
2905 \def\mtxtomtx_setstr#1#2{
2906 \out_line{\string\setstr{#1}{#2}}
2907 }
2908 \def\mtxtomtx_setscaledrawglyph#1#2#3#4#5#6#7#8#9{
2909 \eval_expr_to\a_count{\scale{#6}{\int{x-scale}}}
2910 \eval_expr_to\b_count{\scale{#7}{\int{y-scale}}}
2911 \eval_expr_to\c_count{\scale{#8}{\int{y-scale}}}
2912 \eval_expr_to\d_count{#9} \eval_expr{#7}
2913 \multiply \d_count \int{x-scale}
2914 \global\multiply \result \int{slant-scale}
2915 \global\advance \result \d_count
2916 \rounded_thousandths
2917 \d_count=\result
2918 \eval_expr{\scale{#4}{\int{y-scale}}}
2919 \ifisstr{etx-name}\then
2920 \bgroup
2921 \let\aliased=\first_of_two
2922 \if_undefined{slots-#1}\then
2923 \egroup \e_count=\m@ne
2924 \else
2925 \expandafter\egroup \expandafter\e_count
2926 \csname slots-#1\endcsname
2927 \fi
2928 \else
2929 \e_count=#5
2930 \fi
2931 \out_line{
2932 \ifnum \e_count>\m@ne
2933 \string\setscaledrawglyph
2934 \else
2935 \string\setscalednotglyph
2936 \fi
2937 {#1}{\raw_font_name}{#3}{\the\result}{\the\e_count}
2938 {\the\a_count}{\the\b_count}{\the\c_count}{\the\d_count}
2939 }
2940 }
2941 \def\mtxtomtx_setkern#1#2#3{
2942 \eval_expr{\scale{\int{x-scale}}{#3}}
2943 \out_line{\string\setkern{#1}{#2}{\the\result}}
2944 }
2945 \def\mtxtomtx_setglyph#1{\out_line{\string\setglyph{#1}}}
2946 \def\mtxtomtx_samesize#1{\out_lline{\string\samesize{#1}}}
2947 \def\mtxtomtx_endsetglyph{\out_line{\string\endsetglyph}}
2948 \def\mtxtomtx_glyphpcc#1#2#3{
2949 \eval_expr_to\b_count{\scale{\int{y-scale}}{#3}}
2950 \eval_expr_to\a_count{#2} \eval_expr{#3}
2951 \multiply \a_count \int{x-scale}
2952 \global\multiply \result \int{slant-scale}
2953 \global\advance \result \a_count
2954 \rounded_thousandths
2955 \out_lline{\string\glyphpcc{#1}{\the\result}{\the\b_count}}
2956 }
2957 \def\reglyphfonts{
2958 \begingroup
2959 \let\setsomething_global=\x_relax
2960 \x_setint{renameweight}{1}
2961 \x_setint{killweight}{-10}
2962 \setcommand\iftokeep##1\then{\ifnum -1<##1}
2963 }
2964 \def\endreglyphfonts{\endgroup}
2965 \def\offmtxcommand#1{
2966 \x_cs\offcommand{reglyph_\expandafter\gobble_one\string#1}
2967 }
2968 \def\onmtxcommand#1{
2969 \x_cs\oncommand{reglyph_\expandafter\gobble_one\string#1}
2970 }
2971 \begingroup
2972 \catcode`\-=11
2973 \gdef\renameglyph#1#2{
2974 \x_cs\edef{slots-#2}{
2975 \noexpand\rename_glyph{#1}\noexpand\i-renameweight
2976 }
2977 }
2978 \endgroup
2979 \def\renameglyphweighted#1#2#3{
2980 \eval_expr{#3}
2981 \x_cs\edef{slots-#2}{\noexpand\rename_glyph{#1}{\the\result}}
2982 }
2983 \begingroup
2984 \catcode`\-=11
2985 \gdef\killglyph#1{
2986 \x_cs\def{slots-#1}{\kill_glyph\i-killweight}
2987 }
2988 \endgroup
2989 \def\killglyphweighted#1#2{
2990 \eval_expr{#2}
2991 \x_cs\edef{slots-#1}{\noexpand\kill_glyph{\the\result}}
2992 }
2993 \def\reglyphfont#1#2{
2994 \fromany{#2}
2995 \ifisstr{afm-name}\then
2996 \reglyph_font{#1}{#2}
2997 \else
2998 \fontinsterror{Reglyph}{Could~not~find~font~metrics~for~#2.}
2999 \error_help_a
3000 \fi
3001 }
3002 \def\reglyph_font#1#2{{
3003 \open_out{\temp_prefix#1.mtx}
3004 \out_line{\percent_char~Filename:~#1.mtx}
3005 \out_line{\percent_char~Created~by:~tex~\jobname}
3006 \out_line{\percent_char~Created~using:~\string\reglyphfont{#1}{#2}}
3007 \out_line{}
3008 \out_line{\percent_char~This~file~is~used~by~the~fontinst~package.}
3009 \out_line{}
3010 \out_line{\percent_char~THIS~FILE~CAN~BE~DELETED.}
3011 \out_line{}
3012 \out_line{\string\relax}
3013 \out_line{\string\metrics}
3014 \out_line{}
3015 \out_line{\string\needsfontinstversion{\fontinstversion}}
3016 \out_line{}
3017 \record_transform{#1}{\string\frommtx{#2}}{\string\reglyphfont}
3018 \iftrue
3019 \out_line{}
3020 \reglyph_redefinitions
3021 \inputmtx{#2}
3022 \out_line{}
3023 \out_line{\endmetrics_text}
3024 \close_out{Reglyphed~metrics}
3025 }}
3026 \def\reglyph_redefinitions{
3027 \let\setint=\reglyph_setint
3028 \let\setdim=\reglyph_setdim
3029 \let\setstr=\reglyph_setstr
3030 \let\setscaledrawglyph=\reglyph_setscaledrawglyph
3031 \let\setscalednotglyph=\reglyph_setscaledrawglyph
3032 \let\setkern=\reglyph_setkern
3033 \let\setglyph=\reglyph_setglyph
3034 \let\glyphpcc=\reglyph_glyphpcc
3035 \let\samesize=\reglyph_samesize
3036 \let\endsetglyph=\reglyph_endsetglyph
3037 }
3038 \def\reglyph_setint#1#2{\out_line{\string\setint{#1}{#2}}}
3039 \def\reglyph_setdim#1#2{\out_line{\string\setdim{#1}{#2}}}
3040 \def\reglyph_setstr#1#2{\out_line{\string\setstr{#1}{#2}}}
3041 \newcount\command_survivance
3042 \def\rename_glyph#1{\def\glyphname{#1}\kill_glyph}
3043 \def\kill_glyph#1{\advance \command_survivance #1\x_relax}
3044 \def\reglyph_setscaledrawglyph#1#2#3#4#5#6#7#8#9{
3045 \command_survivance=0
3046 \def\glyphname{#1}
3047 \csname slots-#1\endcsname
3048 \iftokeep\command_survivance\then
3049 \out_line{
3050 \ifnum #5<\z@
3051 \string\setscalednotglyph
3052 \else
3053 \string\setscaledrawglyph
3054 \fi
3055 {\glyphname}{#2}{#3}{\number#4}{#5}{#6}{#7}{#8}{#9}
3056 }
3057 \fi
3058 }
3059 \def\reglyph_setkern#1#2#3{
3060 \command_survivance=0
3061 \def\glyphname{#1}
3062 \csname slots-#1\endcsname
3063 \let\a_macro=\glyphname
3064 \def\glyphname{#2}
3065 \csname slots-#2\endcsname
3066 \iftokeep\command_survivance\then
3067 \out_line{\string\setkern{\a_macro}{\glyphname}{#3}}
3068 \fi
3069 }
3070 \def\reglyph_setglyph#1{
3071 \command_survivance=0
3072 \def\glyphname{#1}
3073 \csname slots-#1\endcsname
3074 \edef\a_macro{\noexpand\out_line{\string\setglyph{\glyphname}}}
3075 \a_toks=\expandafter{\a_macro}
3076 }
3077 \x_cs\def{off-\string\reglyph_setglyph}#1{\gobble_glyph}
3078 \def\reglyph_glyphpcc#1#2#3{
3079 \def\glyphname{#1}
3080 \csname slots-#1\endcsname
3081 \edef\a_macro{\noexpand\out_lline{
3082 \string\glyphpcc{\glyphname}{#2}{#3}
3083 }}
3084 \a_toks=\expandafter{\the\expandafter\a_toks \a_macro}
3085 }
3086 \def\reglyph_samesize#1{
3087 \def\glyphname{#1}
3088 \csname slots-#1\endcsname
3089 \edef\a_macro{\noexpand\out_lline{
3090 \string\samesize{\glyphname}
3091 }}
3092 \a_toks=\expandafter{\the\expandafter\a_toks \a_macro}
3093 }
3094 \def\reglyph_endsetglyph{
3095 \iftokeep\command_survivance\then
3096 \the\a_toks
3097 \out_line{\string\endsetglyph}
3098 \fi
3099 \a_toks={}
3100 }
3101 %%% From file: filtfam.dtx
3102 \def\latinfamily#1#2{{
3103 \edef\a_macro{#1}
3104 \expandafter\parse_family\a_macro
3105 \empty_command\empty_command\end_parse_family
3106 \installfonts
3107 \if_file_exists{\raw_encoding.mtx}\then
3108 \installfamily{\raw_encoding}{\latex_family}{#2}
3109 \fi
3110 \installfamily{OT1}{\latex_family}{#2}
3111 \installfamily{T1}{\latex_family}{#2}
3112 \installfamily{TS1}{\latex_family}{#2}
3113 \latin_weights
3114 \endinstallfonts
3115 }}
3116 \def\parse_family #1#2#3#4#5\end_parse_family{
3117 \gdef\font_family{#1#2#3}
3118 \gdef\font_variant{#4#5}
3119 \gdef\raw_variant{#4#5}
3120 \gdef\latex_family{#1#2#3#4#5}
3121 \_expert_false
3122 \_oldstyle_false
3123 \ifx#4x
3124 \_expert_true
3125 \gdef\raw_variant{#5}
3126 \gdef\font_variant{#5}
3127 %\setcommand\digit##1{##1}
3128 \else\ifx#4j
3129 \_expert_true
3130 \_oldstyle_true
3131 \gdef\raw_variant{#5}
3132 \gdef\font_variant{#5}
3133 %\setcommand\digit##1{##1oldstyle}
3134 \else\ifx#49
3135 \gdef\latex_family{#1#2#3j#5}
3136 \_expert_true
3137 \_oldstyle_true
3138 \gdef\raw_variant{#5}
3139 \gdef\font_variant{#5}
3140 %\setcommand\digit##1{##1oldstyle}
3141 \else
3142 \_expert_false
3143 \_oldstyle_false
3144 %\setcommand\digit##1{##1}
3145 \fi\fi\fi
3146 \if_oldstyle_
3147 \immediate\write16{INFO>~parse~family~<#1#2#3><#5>~(oldstyle)}
3148 \else\if_expert_
3149 \immediate\write16{INFO>~parse~family~<#1#2#3><#5>~(expert)}
3150 \else
3151 \immediate\write16{INFO>~parse~family~<#1#2#3><#4#5>}
3152 \fi\fi
3153 }
3154 \newif\if_expert_
3155 \newif\if_oldstyle_
3156 \def\latin_weight#1#2{
3157 \gdef\font_weight{#1}%
3158 \gdef\latex_weight{#2}%
3159 \latin_widths
3160 }
3161 \def\latin_width#1#2{
3162 \gdef\font_width{#1}
3163 \gdef\latex_width{#2}
3164 \latin_shapes
3165 }
3166 \def\latin_shape#1#2#3#4#5{
3167 \gdef\font_shape{#1}
3168 \gdef\raw_shape{#2}
3169 \gdef\encoding_shape{#3}
3170 \if_oldstyle_
3171 \gdef\encoding_shape{#3\oldstyle_shape}
3172 \fi
3173 \gdef\latex_shape{#4}
3174 \gdef\encoding_switches{#5}
3175 \immediate\write16{
3176 INFO>~to~make~LaTeX~font~shape~<\latex_family,
3177 \latex_weight,\latex_shape,\latex_width>~seek~
3178 \font_family\font_weight\raw_shape
3179 \raw_variant\raw_encoding\font_width.mtx}
3180 \csname fake_width_\font_width\endcsname
3181 \csname fake_shape_\raw_shape\endcsname
3182 \if_file_exists{
3183 \font_family\font_weight\raw_shape
3184 \raw_variant\raw_encoding\font_width.mtx
3185 }\then
3186 \latin_encodings
3187 \fi
3188 }
3189 \def\fake_shape_{
3190 \if_file_exists{
3191 \font_family\font_weight\raw_shape\raw_variant
3192 \adobe_encoding\font_width.afm
3193 }\then
3194 \fake_shape_raw_encoding
3195 \fi
3196 \if_expert_
3197 \if_file_exists{
3198 \font_family\font_weight\raw_shape\raw_variant
3199 \expert_encoding\font_width.afm
3200 }\then
3201 \fake_shape_expert_encoding
3202 \fi
3203 \fi
3204 }
3205 \def\fake_shape_raw_encoding{
3206 \if_file_exists{
3207 \font_family\font_weight\raw_shape\raw_variant
3208 \raw_encoding\font_width.mtx
3209 }\then % no action required
3210 \else
3211 \immediate\write16{
3212 INFO>~run~\string\transformfont\space\space
3213 <\font_family\font_weight\raw_shape\raw_variant
3214 \raw_encoding\font_width>~from~
3215 <\font_family\font_weight\raw_shape\raw_variant
3216 \adobe_encoding\font_width>
3217 }
3218 \transformfont{
3219 \font_family\font_weight\raw_shape\raw_variant
3220 \raw_encoding\font_width
3221 }{
3222 \reencodefont{\raw_encoding}{
3223 \fromafm{
3224 \font_family\font_weight\raw_shape\raw_variant
3225 \adobe_encoding\font_width
3226 }
3227 }
3228 }
3229 \if_file_exists{ \raw_encoding.mtx }\then
3230 \immediate\write16{
3231 INFO>~run~\string\installrawfont\space
3232 <\font_family\font_weight\font_shape\raw_variant
3233 \raw_encoding\font_width>
3234 <\font_family\font_weight\raw_shape\raw_variant
3235 \raw_encoding\font_width,
3236 \raw_encoding>
3237 <\raw_encoding>
3238 <\raw_encoding>
3239 <\latex_family>
3240 <\latex_weight\latex_width>
3241 <\latex_shape>}
3242 \installrawfont{
3243 \font_family\font_weight\raw_shape\raw_variant
3244 \raw_encoding\font_width
3245 }{ \font_family\font_weight\raw_shape\raw_variant
3246 \raw_encoding\font_width,
3247 \raw_encoding
3248 }{ \raw_encoding
3249 }{ \raw_encoding
3250 }{ \latex_family
3251 }{ \latex_weight\latex_width
3252 }{ \latex_shape
3253 }{}
3254 \fi
3255 \fi
3256 }
3257 \def\fake_shape_expert_encoding{
3258 \if_file_exists{
3259 \font_family\font_weight\raw_shape\raw_variant
3260 \expert_encoding\font_width.mtx
3261 }\then % no action required
3262 \else
3263 \fromafm{
3264 \font_family\font_weight\raw_shape\raw_variant
3265 \expert_encoding\font_width
3266 }
3267 \fi
3268 }
3269 \def\fake_shape_c{
3270 \if_file_exists{
3271 \font_family\font_weight\raw_shape\raw_variant
3272 \adobe_encoding\font_width.afm
3273 }\then
3274 \fake_shape_
3275 \else
3276 % If real smallcaps font doesn't exist, fake it from the roman.
3277 \gdef\raw_shape{}
3278 \if_oldstyle_
3279 \gdef\encoding_shape{cj}
3280 \else
3281 \gdef\encoding_shape{c}
3282 \fi
3283 \fake_shape_
3284 \fi
3285 }
3286 \def\fake_shape_o{
3287 \if_file_exists{
3288 \font_family\font_weight\raw_shape\raw_variant
3289 \adobe_encoding\font_width.afm
3290 }\then
3291 \fake_shape_
3292 \else
3293 \fake_shape_o_raw_encoding
3294 \if_expert_
3295 \fake_shape_o_expert_encoding
3296 \fi
3297 \fi
3298 }
3299 \def\fake_shape_o_raw_encoding{
3300 \if_file_exists{
3301 \font_family\font_weight\raw_variant
3302 \raw_encoding\font_width.mtx
3303 }\then
3304 \if_file_exists{
3305 \font_family\font_weight\font_shape\raw_variant
3306 \raw_encoding\font_width.mtx
3307 }\then % no action required
3308 \else
3309 \immediate\write16{
3310 INFO>~run~\string\transformfont\space\space
3311 <\font_family\font_weight\font_shape\raw_variant
3312 \raw_encoding\font_width>~from~
3313 <\font_family\font_weight\raw_variant
3314 \raw_encoding\font_width>~(faking~oblique)
3315 }
3316 %%% WARNING: famtool.pl relies on this message format!!!
3317 \immediate\write16{
3318 Faking~oblique~font~
3319 \font_family\font_weight\font_shape\raw_variant
3320 \raw_encoding\font_width
3321 \space from~
3322 \font_family\font_weight\raw_variant
3323 \raw_encoding\font_width
3324 }
3325 \transformfont{
3326 \font_family\font_weight\font_shape\raw_variant
3327 \raw_encoding\font_width
3328 }{
3329 \slantfont{\SlantAmount}{
3330 \frommtx{
3331 \font_family\font_weight\raw_variant
3332 \raw_encoding\font_width
3333 }
3334 }
3335 }
3336 \if_file_exists{ \raw_encoding.mtx }\then
3337 \immediate\write16{
3338 INFO>~run~\string\installrawfont\space
3339 <\font_family\font_weight\font_shape\raw_variant
3340 \raw_encoding\font_width>
3341 <\font_family\font_weight\font_shape\raw_variant
3342 \raw_encoding\font_width,
3343 \raw_encoding>
3344 <\raw_encoding>
3345 <\raw_encoding>
3346 <\latex_family>
3347 <\latex_weight\latex_width>
3348 <\latex_shape>}
3349 \installrawfont{
3350 \font_family\font_weight\font_shape\raw_variant
3351 \raw_encoding\font_width
3352 }{ \font_family\font_weight\font_shape\raw_variant
3353 \raw_encoding\font_width,
3354 \raw_encoding
3355 }{ \raw_encoding
3356 }{ \raw_encoding
3357 }{ \latex_family
3358 }{ \latex_weight\latex_width
3359 }{ \latex_shape
3360 }{}
3361 \fi
3362 \fi
3363 \fi
3364 }
3365 \def\fake_shape_o_expert_encoding{
3366 \if_file_exists{
3367 \font_family\font_weight\raw_variant
3368 \expert_encoding\font_width.mtx
3369 }\then
3370 \if_file_exists{
3371 \font_family\font_weight\font_shape\raw_variant
3372 \expert_encoding\font_width.mtx
3373 }\then % no action required
3374 \else
3375 \immediate\write16{
3376 INFO>~run~\string\transformfont\space\space
3377 <\font_family\font_weight\font_shape\raw_variant
3378 \expert_encoding\font_width>~from~
3379 <\font_family\font_weight\raw_variant
3380 \expert_encoding\font_width>~(faking~oblique)
3381 }
3382 %%% WARNING: famtool.pl relies on this message format!!!
3383 \immediate\write16{
3384 Faking~oblique~font~
3385 \font_family\font_weight\font_shape\raw_variant
3386 \expert_encoding\font_width
3387 \space from~
3388 \font_family\font_weight\raw_variant
3389 \expert_encoding\font_width
3390 }
3391 \transformfont{
3392 \font_family\font_weight\font_shape\raw_variant
3393 \expert_encoding\font_width
3394 }{
3395 \slantfont{\SlantAmount}{
3396 \frommtx{
3397 \font_family\font_weight\raw_variant
3398 \expert_encoding\font_width
3399 }
3400 }
3401 }
3402 \fi
3403 \fi
3404 }
3405 \let\fake_shape_i\fake_shape_ % We must do this again!
3406 \newif\if_fake_narrow_
3407 \_fake_narrow_false
3408 \def\fakenarrow#1{
3409 \_fake_narrow_true
3410 \gdef\fake_narrow_width{#1}
3411 }
3412 \def\fake_width_{}
3413 \def\fake_width_c{}
3414 \def\fake_width_n{
3415 \if_fake_narrow_
3416 \if_file_exists{
3417 \font_family\font_weight\raw_shape\raw_variant
3418 \adobe_encoding\font_width.afm
3419 }\then % no action required
3420 \else
3421 \fake_width_n_raw_encoding
3422 \if_expert_
3423 \fake_width_n_expert_encoding
3424 \fi
3425 \fi
3426 \fi
3427 }
3428 \def\fake_width_n_raw_encoding{
3429 \if_file_exists{
3430 \font_family\font_weight\font_shape\raw_variant
3431 \raw_encoding.mtx
3432 }\then
3433 \if_file_exists{
3434 \font_family\font_weight\font_shape\raw_variant
3435 \raw_encoding\font_width.mtx
3436 }\then % no action required
3437 \else
3438 \immediate\write16{
3439 INFO>~run~\string\transformfont\space\space
3440 <\font_family\font_weight\font_shape\raw_variant
3441 \raw_encoding\font_width>~from~
3442 <\font_family\font_weight\font_shape\raw_variant
3443 \raw_encoding>~(faking~narrow)
3444 }
3445 %%% WARNING: famtool.pl relies on this message format!!!
3446 \immediate\write16{
3447 Faking~narrow~font~
3448 \font_family\font_weight\font_shape\raw_variant
3449 \raw_encoding\font_width
3450 \space from~
3451 \font_family\font_weight\font_shape\raw_variant
3452 \raw_encoding
3453 }
3454 \transformfont{
3455 \font_family\font_weight\font_shape\raw_variant
3456 \raw_encoding\font_width
3457 }{
3458 \xscalefont{\fake_narrow_width}{
3459 \frommtx{
3460 \font_family\font_weight\font_shape\raw_variant
3461 \raw_encoding
3462 }
3463 }
3464 }
3465 \if_file_exists{ \raw_encoding.mtx }\then
3466 \immediate\write16{
3467 INFO>~run~\string\installrawfont\space
3468 <\font_family\font_weight\font_shape\raw_variant
3469 \raw_encoding\font_width>
3470 <\font_family\font_weight\font_shape\raw_variant
3471 \raw_encoding\font_width,
3472 \raw_encoding>
3473 <\raw_encoding>
3474 <\raw_encoding>
3475 <\latex_family>
3476 <\latex_weight\latex_width>
3477 <\latex_shape>}
3478 \installrawfont{
3479 \font_family\font_weight\font_shape\raw_variant
3480 \raw_encoding\font_width
3481 }{ \font_family\font_weight\font_shape\raw_variant
3482 \raw_encoding\font_width,
3483 \raw_encoding
3484 }{ \raw_encoding
3485 }{ \raw_encoding
3486 }{ \latex_family
3487 }{ \latex_weight\latex_width
3488 }{ \latex_shape
3489 }{}
3490 \fi
3491 \fi
3492 \fi
3493 }
3494 \def\fake_width_n_expert_encoding{
3495 \if_file_exists{
3496 \font_family\font_weight\font_shape\raw_variant
3497 \expert_encoding.mtx
3498 }\then
3499 \if_file_exists{
3500 \font_family\font_weight\font_shape\raw_variant
3501 \expert_encoding\font_width.mtx
3502 }\then % no action required
3503 \else
3504 \immediate\write16{
3505 INFO>~run~\string\transformfont\space\space
3506 <\font_family\font_weight\font_shape\raw_variant
3507 \expert_encoding\font_width>~from~
3508 <\font_family\font_weight\font_shape\raw_variant
3509 \expert_encoding>~(faking~narrow)
3510 }
3511 %%% WARNING: famtool.pl relies on this message format!!!
3512 \immediate\write16{
3513 Faking~narrow~font~
3514 \font_family\font_weight\font_shape\raw_variant
3515 \expert_encoding\font_width
3516 \space from~
3517 \font_family\font_weight\font_shape\raw_variant
3518 \expert_encoding
3519 }
3520 \transformfont{
3521 \font_family\font_weight\font_shape\raw_variant
3522 \expert_encoding\font_width
3523 }{
3524 \xscalefont{\fake_narrow_width}{
3525 \frommtx{
3526 \font_family\font_weight\font_shape\raw_variant
3527 \expert_encoding
3528 }
3529 }
3530 }
3531 \fi
3532 \fi
3533 }
3534 \def\latin_encoding#1#2#3#4#5{
3535 \gdef\latex_encoding{#4}
3536 \gdef\latex_mtx{#5}
3537 \if_oldstyle_
3538 \gdef\font_encoding{#3}
3539 \else\if_expert_
3540 \gdef\font_encoding{#2}
3541 \else
3542 \gdef\font_encoding{#1}
3543 \fi\fi
3544 \gdef\expert_font{}
3545 \gdef\oldstyle_font{}
3546 \if_expert_
3547 \if_file_exists{
3548 \font_family\font_weight\raw_shape\raw_variant
3549 \expert_encoding\font_width.mtx
3550 }\then
3551 \gdef\expert_font{
3552 \font_family\font_weight\raw_shape\raw_variant
3553 \expert_encoding\font_width,
3554 }
3555 \fi
3556 \fi
3557 \immediate\write16{
3558 INFO>~run~\string\installfont\space
3559 <\font_family\font_weight\font_shape\font_variant
3560 \font_encoding\font_width>
3561 <\font_family\font_weight\raw_shape\raw_variant
3562 \raw_encoding\font_width,
3563 \if_oldstyle_
3564 \ifx\raw_shape\caps_shape
3565 resetosf,
3566 \fi
3567 \fi
3568 \expert_font
3569 \oldstyle_font
3570 \latex_mtx>
3571 <\latex_encoding\encoding_shape>
3572 <\latex_encoding>
3573 <\latex_family>
3574 <\latex_weight\latex_width>
3575 <\latex_shape>}
3576 \installfont{
3577 \font_family\font_weight\font_shape\font_variant
3578 \font_encoding\font_width
3579 }{
3580 \font_family\font_weight\raw_shape\raw_variant
3581 \raw_encoding\font_width,
3582 \if_oldstyle_
3583 \ifx\raw_shape\caps_shape
3584 resetosf,
3585 \fi
3586 \fi
3587 \expert_font
3588 \oldstyle_font
3589 \latex_mtx
3590 }{
3591 \latex_encoding\encoding_shape
3592 }{
3593 \latex_encoding
3594 }{
3595 \latex_family
3596 }{
3597 \latex_weight\latex_width
3598 }{
3599 \latex_shape
3600 }{}
3601 }
3602 \def\latin_weights{
3603 \latin_weight{r}{m}
3604 \latin_weight{k}{m}
3605 \latin_weight{b}{b}
3606 \latin_weight{s}{sb}
3607 \latin_weight{d}{db} % was {d}{sb}, SPQR changed
3608 \latin_weight{m}{mb} % was {m}{m}, UV changed
3609 \latin_weight{c}{eb} % UV added
3610 \latin_weight{h}{eb} % UV added
3611 \latin_weight{x}{eb}
3612 \latin_weight{u}{ub}
3613 \latin_weight{l}{l}
3614 %\latin_weight{j}{el}
3615 %\latin_weight{a}{ul} % UV added
3616 }
3617 \def\latin_widths{
3618 \latin_width{}{}
3619 \latin_width{n}{c}
3620 %latin_width{c}{c}
3621 %latin_width{x}{x}
3622 }
3623 \def\latin_shapes{
3624 \latin_shape{} {} {} {n} {\_textcomp_true }
3625 \latin_shape{c}{c}{} {sc}{\_textcomp_false}
3626 \latin_shape{o}{o}{} {sl}{\_textcomp_true }
3627 \latin_shape{i}{i}{i}{it}{\_textcomp_true }
3628 }
3629 \def\latin_encodings{
3630 \latin_encoding{7t}{9t}{9o}{OT1}{newlatin}
3631 \latin_encoding{8t}{9e}{9d}{T1} {newlatin}
3632 \encoding_switches
3633 \if_textcomp_
3634 \latin_encoding{8c}{9c}{9c}{TS1}{textcomp}
3635 \fi
3636 }
3637 \newif\if_textcomp_
3638
3639 \def\raw_encoding{8r}
3640 \def\adobe_encoding{8a}
3641 \def\expert_encoding{8x}
3642
3643 \def\caps_shape{c}
3644 \def\oldstyle_shape{j}
3645 \def\SlantAmount{167}
3646 %%% From file: fimapgen.dtx
3647 \def\mapfrags_subsystem{Map~fragments~writer}
3648 \def\recordtransforms#1{\open_pout\transform_record_file{#1}}
3649 \def\endrecordtransforms{
3650 \close_pout\transform_record_file{Font~transformation~records}
3651 }
3652 \chardef\transform_record_file=\closed_stream
3653 \let\storemapdata=\gobble_three
3654 \def\record_transform#1#2#3#4{
3655 \ifnum \transform_record_file=\closed_stream \else
3656 \pout_line\transform_record_file{\string\storemapdata{#1}{#2}{#3}}
3657 \fi
3658 #4 \out_line{\string\storemapdata{#1}{#2}{#3}} \fi
3659 }
3660 \def\record_usage#1{
3661 \ifnum \transform_record_file=\closed_stream \else
3662 \pout_line\transform_record_file{\string\makemapentry{#1}}
3663 \fi
3664 }
3665 \let\declarepsencoding=\gobble_three
3666 \let\providepsencoding=\gobble_three
3667 %%% From file: fibasics.dtx
3668 \def\needsfontinstversion#1{{
3669 \a_dimen=#1pt
3670 \b_dimen=\fontinstversion~pt\x_relax
3671 \ifnum\a_dimen>\b_dimen
3672 \immediate\write16{}
3673 \immediate\write16{Warning:~This~file~needs~fontinst~version~#1.}
3674 \immediate\write16{Warning:~You~are~using~version~
3675 \fontinstversion.}
3676 \immediate\write16{Warning:~This~may~cause~errors.}
3677 \immediate\write16{}
3678 \fi
3679 }}
3680 \if_file_exists{fontinst.rc}\then
3681 \primitiveinput fontinst.rc
3682 \else
3683 \immediate\write16{No~file~fontinst.rc.}
3684 \fi
3685 \normalcc
3686 \endinput
3687 %%
3688 %% End of file `cfntinst.sty'.