Debian Codegraph @

texmf-dist/fonts/source/public/cmbright/ebpseudo.mf

raw
1 % ebpseudo.mf
2 % [= expseudo.mf, changed by Walter Schmidt, see (CMBR)]
3 %
4 % (c) Copyright 1995, 1996, 1997 J"org Knappen
5 %
6 % This file is part of the EC Bright fonts version 1.0
7 %
8 % This file contains pseudoparameters which are not entered in the
9 % parameter files, but are computed from the initial parameter set.
10 % There are also ad hoc parameters needed only once, and scratch
11 % parameters with different values at each occuerence (like |theta|).
12 %
13 version_check(1,0); % |version_check| was introduced in dc1.3
14
15 % Diameters of dots
16
17 numeric idot_diam#,udot_diam#,pdot_diam#;
18 % (CMBR)
19 % |idot_diam#| for dots on i and j, must fit stem width
20 % |udot_diam#| for the umlaut dots
21 pdot_diam#:=if monospace: 5/4 fi\\ dot_size#; % punctuation dots
22
23
24 % |heavy_hair| occurs in italic lowercase `e'. Since there are many
25 % accented versions of it, it is declared once here
26
27 vardef heavy_hair=hround .2[hair,stem] enddef;
28
29 % |qvair| (quotes vair) for the french quotes
30
31 vardef qvair=max(round(xvair),fine+epsilon) enddef;
32
33 % |limit_dist| is used in |put_accent| and |put_cross|
34 % (the value of |u| is changed by |mono_adjust|, hence the global setting)
35
36 vardef limit_dist=5/4u enddef;
37
38 % (CMBR)
39 % Don't compute lc_trema_height from x_height; leave it
40 % to the designer to specify ldot_height,
41 % then compute lc_trema_height:=x_height+ldot_height, but not > cap_height.
42 % Just the same way as dot_height must be given for uppercase letters!
43 numeric lc_trema_height#;
44 lc_trema_height# = min(cap_height#,x_height#+ldot_height#);
45
46
47 % More parametrisations for accents from csaccent.mf (csfonts):
48
49 numeric uc_acc_height, uc_acc_height#,
50 lc_acute_height, lc_acute_height#,
51 lc_hachek_height, lc_hachek_height#,
52 accent_u, accent_u#,
53 accent_thin,
54 uc_acc_shift, asc_acc_shift;
55 if unknown circ_weight: circ_weight:=1; fi
56
57 %uc_acc_height# = cap_height#+asc_height#-x_height#;
58 uc_acc_height# = cap_height#+acc_height#;
59 lc_acute_height# = asc_height#;
60 lc_hachek_height# = hi.x_height#+acc_height#;
61 accent_u# = u#; % unexpanded dimension unit
62
63 vardef accent_thin = if thin_join > crisp: thin_join else: crisp+eps fi enddef;
64
65 vardef uc_acc_shift = cap_height - x_height enddef;
66 vardef asc_acc_shift = asc_height - x_height enddef;
67
68 numeric cap_accent_height, cap_accent_height#;
69 %cap_accent_height# = uc_acc_height#;
70 cap_accent_height# = cap_height# + acc_height#;
71
72 % (CMBR)
73 def pseudo_setup =
74 idot_diam:=stem';
75 idot_diam#:=stem'/hppp;
76 udot_diam:=min(stem', hround(.85dot_size));
77 udot_diam#:=udot_diam/hppp;
78 define_whole_blacker_pixels(pdot_diam);
79 define_whole_vertical_pixels(lc_trema_height);
80 define_whole_vertical_pixels(uc_acc_height,lc_acute_height,
81 lc_hachek_height);
82 define_pixels(accent_u);
83 define_whole_vertical_pixels(cap_accent_height);
84 % LAST MINUTE EXTRA FONT SETUP
85 %%% define_pixels prepare_pen
86 if not serifs: fisp#:=1/3[fine#,crisp#]; define_whole_pixels(fisp);
87 prepare_pen fisp; fi
88 if known ogonek_pen#:
89 define_whole_pixels(ogonek_pen); prepare_pen ogonek_pen;
90 fi
91 enddef;
92
93 endinput;