summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/source/public/itrans/telspc.mf
blob: c2ae45d132e748587a4b7e4158d4f2c765e988bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%telspc%
% generates striped characters with shading
input telmode;
font_size 72pt#;
slant:=0;
pen_width#:=2.5pt#;
% Following code(with minor modifications) is taken from the article,  
% The ABC's of Special Effects by Georgia K. M. Tobin,
% that appeared in TUGboat, Volume 9(1988), No. 1
vardef special_effects=
% creates characters filled with stripes and followed by a shadow.
    cullit;
    picture Normalchar;
         Normalchar:=currentpicture;
    clearit;
% Depending on the output device, pen size(0.1pt) may need to be
% changed.
    pickup pencircle scaled 0.1pt; 
    filldraw (0,-d)--(w,-d)--
         (w,h)--(0,h)--cycle;
    picture Blackbox;
         Blackbox:=currentpicture;
    picture Reversevideo;
         Reversevideo:=Blackbox-Normalchar;
    clearit;
% Depending on the output device,stepsize(uh/3) may need to be
% changed.
    for f=-d step uh/3 until h:
      draw(0,f)--(w,f);
    endfor;
    currentpicture:=
                   currentpicture-Reversevideo;
    cullit;
    picture Stripedchar;
         Stripedchar:=currentpicture;
    clearit;
% Depending on the output device,offset(1.5pt) may need to be
% changed.
    currentpicture:=Normalchar shifted(1.5pt,-1.5pt);
    picture Shadow;
           Shadow:=currentpicture;
    clearit;
    currentpicture:=Shadow-Normalchar;
    cullit;
    picture Shadowonly;
           Shadowonly:=currentpicture;
    clearit;

    currentpicture:=Shadowonly+Stripedchar;
enddef;
input telparam;  
%%