summaryrefslogtreecommitdiff
path: root/language/telugu/mffiles/telspb.mf
blob: 9c424502ed10ae7c58cc5998ee748bcd2e850c6f (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
%telspb%
% generate characters filled with tiny dots
input telmode;
%mode:=proof;
%boolean testing; testing := true;
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 tiny dots.
    cullit;
    picture Normalchar;
         Normalchar:=currentpicture;
    clearit;
% Depending on the output device, pen size  (0.5pt) may need to be
% changed.
    pickup pencircle scaled 0.5pt; 
    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,stepsizes(u/4 and uh/4) may need to be
% changed.
    for g=0 step u/4 until w:
      for f=-d step uh/4 until h:
         draw(g,f);
      endfor;
    endfor;
    picture Dottedoverlay;
         Dottedoverlay:=currentpicture;
    currentpicture:=Dottedoverlay-Reversevideo;
enddef;
input telparam;  
%%