| 1 |
% EUROSP.MF --- version 3.0 (6 March 2002) --- (c) Harold W. de Wijn |
| 2 |
% EXAMPLE FILE FOR SPECIAL EFFECTS |
| 3 |
% FILE SHOULD BE RENAMED WHENEVER IT IS MODIFIED! |
| 4 |
|
| 5 |
message "EUROSP.MF v3.0 (6 March 2002) - (c) Harold W. de Wijn"; |
| 6 |
|
| 7 |
font_identifier:="EUROSP"; font_size 10pt#; |
| 8 |
u#:=20/36pt#; % values of cmr10 |
| 9 |
letter_fit#:=0pt#; |
| 10 |
cap_height#:=246/36pt#; |
| 11 |
fig_height#:=232/36pt#; |
| 12 |
x_height#:=155/36pt#; |
| 13 |
o#:=6/36pt#; % slightly smaller than for cmr10 |
| 14 |
|
| 15 |
% Switch to the driver file, but return in time to do the specials. |
| 16 |
Return:=1; input euromac; |
| 17 |
|
| 18 |
% ---------- Font dimensions ---------- |
| 19 |
font_slant 0; % most symbols are upright |
| 20 |
font_x_height x_height#; |
| 21 |
font_normal_space 6u#+2letter_fit#; |
| 22 |
font_normal_stretch 3u#; |
| 23 |
font_normal_shrink 2u#; |
| 24 |
font_quad 18u#+4letter_fit#; |
| 25 |
font_extra_space 2u#; |
| 26 |
|
| 27 |
% ---------- Generating symbols ---------- |
| 28 |
"Official euro symbol"; |
| 29 |
BoxHeight#:=cap_height#; C:=1; T:=1; S:=0; |
| 30 |
beginchar("E",0,BoxHeight#,0); draw_euro; endchar; |
| 31 |
|
| 32 |
"Thick"; |
| 33 |
BoxHeight#:=cap_height#; C:=1; T:=4/3; S:=0; |
| 34 |
beginchar("a",0,BoxHeight#,0); draw_euro; endchar; |
| 35 |
|
| 36 |
"Very thick"; |
| 37 |
BoxHeight#:=cap_height#; C:=1; T:=5/3; S:=0; |
| 38 |
beginchar("b",0,BoxHeight#,0); draw_euro; endchar; |
| 39 |
|
| 40 |
"Thin"; |
| 41 |
BoxHeight#:=cap_height#; C:=1; T:=2/3; S:=0; |
| 42 |
beginchar("c",0,BoxHeight#,0); draw_euro; endchar; |
| 43 |
|
| 44 |
"Very thin"; |
| 45 |
BoxHeight#:=cap_height#; C:=1; T:=1/3; S:=0; |
| 46 |
beginchar("d",0,BoxHeight#,0); draw_euro; endchar; |
| 47 |
|
| 48 |
"Dunhill"; |
| 49 |
BoxHeight#:=351/251*cap_height#; |
| 50 |
% Adjust C and T such that width and thickness equal those of the official |
| 51 |
% euro symbol |
| 52 |
T:=(cap_height#+2o#)/(BoxHeight#+2o#); S:=0; |
| 53 |
C:=T; % first approximation |
| 54 |
C:=T/WidthFactor(C,T); % second approximation |
| 55 |
beginchar("e",0,BoxHeight#,0); draw_euro; endchar; |
| 56 |
|
| 57 |
"Tall"; |
| 58 |
BoxHeight#:=2*cap_height#; |
| 59 |
T:=(cap_height#+2o#)/(BoxHeight#+2o#); S:=0; |
| 60 |
C:=T; C:=T/WidthFactor(C,T); |
| 61 |
beginchar("f",0,BoxHeight#,0); draw_euro; endchar; |
| 62 |
|
| 63 |
"Very tall"; |
| 64 |
BoxHeight#:=3*cap_height#; |
| 65 |
T:=(cap_height#+2o#)/(BoxHeight#+2o#); S:=0; |
| 66 |
C:=T; C:=T/WidthFactor(C,T); |
| 67 |
beginchar("g",0,BoxHeight#,0); draw_euro; endchar; |
| 68 |
|
| 69 |
"Narrow"; |
| 70 |
BoxHeight#:=cap_height#; C:=1/2; T:=1; S:=0; |
| 71 |
beginchar("h",0,BoxHeight#,0); draw_euro; endchar; |
| 72 |
|
| 73 |
"Very narrow"; |
| 74 |
BoxHeight#:=cap_height#; C:=1/3; T:=1; S:=0; |
| 75 |
beginchar("i",0,BoxHeight#,0); draw_euro; endchar; |
| 76 |
|
| 77 |
"Wide"; |
| 78 |
BoxHeight#:=cap_height#; C:=2; T:=1; S:=0; |
| 79 |
beginchar("j",0,BoxHeight#,0); draw_euro; endchar; |
| 80 |
|
| 81 |
"Very wide"; |
| 82 |
BoxHeight#:=cap_height#; C:=3; T:=1; S:=0; |
| 83 |
beginchar("k",0,BoxHeight#,0); draw_euro; endchar; |
| 84 |
|
| 85 |
"Leaning backward"; |
| 86 |
BoxHeight#:=cap_height#; C:=1; T:=1; S:=-1/6; |
| 87 |
beginchar("l",0,BoxHeight#,0); draw_euro; endchar; |
| 88 |
|
| 89 |
"Leaning forward"; |
| 90 |
BoxHeight#:=cap_height#; C:=1; T:=1; S:=1/2; |
| 91 |
beginchar("m",0,BoxHeight#,0); draw_euro; endchar; |
| 92 |
|
| 93 |
"Leaning very forward"; |
| 94 |
BoxHeight#:=cap_height#; C:=1; T:=1; S:=1; |
| 95 |
beginchar("n",0,BoxHeight#,0); draw_euro; endchar; |
| 96 |
|
| 97 |
"Mirrored"; |
| 98 |
BoxHeight#:=cap_height#; C:=1; T:=1; S:=0; |
| 99 |
begingroup; |
| 100 |
save add_transform; |
| 101 |
def add_transform = identity % w=box width in pixels |
| 102 |
reflectedabout ((1/2w,0),(1/2w,h)); enddef; % h=box height in pixels |
| 103 |
beginchar("o",0,BoxHeight#,0); draw_euro; endchar; |
| 104 |
endgroup; |
| 105 |
|
| 106 |
"Rotated"; |
| 107 |
BoxHeight#:=cap_height#; C:=1; T:=1; S:=0; |
| 108 |
begingroup; |
| 109 |
save add_transform; |
| 110 |
def add_transform= identity |
| 111 |
rotatedabout ((1/2w,1/2h),180); enddef; |
| 112 |
beginchar("p",0,BoxHeight#,0); draw_euro; endchar; |
| 113 |
endgroup; |
| 114 |
|
| 115 |
"Tilted"; |
| 116 |
BoxHeight#:=cap_height#; C:=1; T:=1; S:=0; |
| 117 |
begingroup; |
| 118 |
save add_transform; |
| 119 |
def add_transform= identity |
| 120 |
rotatedabout ((LeftMargin+0.638OuterDiameter,1/2h),5); enddef; |
| 121 |
beginchar("q",0,BoxHeight#,0); draw_euro; endchar; |
| 122 |
endgroup; |
| 123 |
|
| 124 |
bye |