Debian Codegraph @

texmf-dist/fonts/source/public/niceframe/umrand.mf

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % The MF-macros of the border-project %
3 % This file has version number 1.2. %
4 % 19.06.1993 %
5 % (c) by Andreas Schrell, Wuppertal %
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7
8 mode_setup;
9
10 penwi# := 0.1pt#;
11 penwid# := 0.2pt#;
12 penwidd# := 0.6pt#;
13
14 charsize# := 10pt#;
15
16 font_size charsize#;
17 font_x_height charsize#;
18 font_quad charsize#;
19 font_normal_space 0pt#;
20 font_normal_shrink 0pt#;
21 font_normal_stretch 0pt#;
22
23 normw# := charsize#;
24 normh# := charsize#;
25 define_pixels(normw,normh);
26
27 def ow = hround(xscal*normw) enddef;
28 def oh = vround(normh) enddef;
29
30 xscal:=1;
31
32 define_blacker_pixels(penwi,penwid,penwidd); penwidow := penwid;
33
34 if unknown write_white_engine:
35 boolean write_white_engine;
36 write_white_engine := false;
37 fi
38 if write_white_engine:
39 % for penwi its ok to become 1 pixel width, but...
40 penwid := max(penwid,2);
41 penwidd := max(penwidd,3);
42 fi;
43
44 def sec(expr n) =
45 u := (w/n);
46 v := (h/n);
47 enddef;
48
49 def CenterRotation(expr W,r) =
50 ((r) shifted (-.5ow,-.5oh) rotated W shifted (.5w,.5h))
51 enddef;
52
53 def CenterRot(expr W) =
54 currenttransform := identity
55 shifted (-.5ow,-.5oh) rotated W shifted (.5w,.5h)
56 enddef;
57
58
59
60 def CenterMirror(expr xs,ys,r) =
61 ((r) shifted (-.5ow,-.5oh) xscaled (xs) yscaled (ys) shifted (.5ow,.5oh))
62 enddef;
63
64 endinput
65