summaryrefslogtreecommitdiff
path: root/language/telugu/telfonts.awk
blob: dd515e156c6693ab593d009c5157b0ea386aa58d (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
% This file is part of the TeluguTeX Software Package.
%Copyright (c) 1991 Lakshmankumar Mukkavilli
%
%The TeluguTeX Software Package is distributed in the hope that
%it will be useful,but WITHOUT ANY WARRANTY.  No author or distributor
%accepts responsibility to anyone for the consequences of using it
%or for whether it serves any particular purpose or works at all,
%unless he says so in writing.  Refer to the TeluguTeX Software Package
%General Public License for full details.
%
%Everyone is granted permission to copy, modify and redistribute
%the TeluguTeX Software Package, but only under the conditions described in the
%TeluguTeX Software Package General Public License.   A copy of this license is
%supposed to have been given to you along with TeluguTeX Software Package so you
%can know your rights and responsibilities.  It should be in a
%file named CopyrightLong.  Among other things, the copyright notice
%and this notice must be preserved on all copies.  
%%%%%%%%
% This file specifies the slant, pen_width, font_size and pen shapes
% for generating various font sizes/styles. Typically this file
% would be broken up into several files. 
% It is very easy to extract any parameter file. Each specification      
% is delimited by  the name of the font(enclosed in percent signs)
% and a pair of percent signs occuring in first two columns.
% 
%teloffset%    generates TeX macros to define codes & offsets
input telmode;
font_size 10pt#;
slant:=0;
pen_width#:=0.3pt#;
vardef offsets_only=
  proofing:=-1;
  fontmaking:=0;
  tracingtitles:=0;
enddef;
input telparam;  
%%
%tel10%
input telmode;
font_size 10pt#;
slant:=0;
pen_width#:=0.35pt#;
input telparam;  
%%
%tel10nx%  non-uniform pen(x-axis)
input telmode;
font_size 10pt#;
slant:=0;
pen_width#:=0.5pt#;
vardef special_telpen =
    pickup pencircle xscaled (pen_width/2) yscaled (pen_width);
enddef;
input telparam;  
%%
%tel10ny%  non-uniform pen(y-axis)
input telmode;
font_size 10pt#;
slant:=0;
pen_width#:=0.48pt#;
vardef special_telpen =
    pickup pencircle xscaled pen_width yscaled (pen_width/2);
enddef;
input telparam;  
%%
%tel10b%
input telmode;
font_size 10pt#;
slant:=0;
pen_width#:=0.5pt#;
input telparam;  
%%
%tel10s%
input telmode;
font_size 10pt#;
slant:=1/4;
pen_width#:=0.4pt#;
input telparam;  
%%
%tel11%
input telmode;
font_size 11pt#;
slant:=0;
pen_width#:=0.41pt#;
input telparam;  
%%
%tel11nx% non-uniform pen(x_axis)
input telmode;
font_size 11pt#;
slant:=0;
pen_width#:=0.62pt#;
vardef special_telpen =
    pickup pencircle xscaled (pen_width/2) yscaled (pen_width);
enddef;
input telparam;  
%%
%tel11ny% non-uniform pen(y-axis)
input telmode;
font_size 11pt#;
slant:=0;
pen_width#:=0.60pt#;
vardef special_telpen =
    pickup pencircle xscaled pen_width yscaled (pen_width/2);
enddef;
input telparam;  
%%
%tel11b%
input telmode;
font_size 11pt#;
slant:=0;
pen_width#:=0.57pt#;
input telparam;  
%%
%tel11s%
input telmode;
font_size 11pt#;
slant:=1/4;
pen_width#:=0.56pt#;
input telparam;  
%%
%tel12%
input telmode;
font_size 12pt#;
slant:=0;
pen_width#:=0.5pt#;
input telparam;  
%%
%tel12nx%  non-uniform pen(x-axis)
input telmode;
font_size 12pt#;
slant:=0;
pen_width#:=0.74pt#;
vardef special_telpen =
    pickup pencircle xscaled (pen_width/2) yscaled (pen_width);
enddef;
input telparam;  
%%
%tel12ny%  non-uniform pen(y-axis)
input telmode;
font_size 12pt#;
slant:=0;
pen_width#:=0.65pt#;
vardef special_telpen =
    pickup pencircle xscaled pen_width yscaled (pen_width/2);
enddef;
input telparam;  
%%
%tel12b%
input telmode;
font_size 12pt#;
slant:=0;
pen_width#:=0.68pt#;
input telparam;  
%%
%tel12s%
input telmode;
font_size 12pt#;
slant:=1/4;
pen_width#:=0.61pt#;
input telparam;  
%%
%tel15%
input telmode;
font_size 15pt#;
slant:=0;
pen_width#:=0.68pt#;
input telparam;  
%%
%tel15b%
input telmode;
font_size 15pt#;
slant:=0;
pen_width#:=0.8pt#;
input telparam;  
%%
%tel15s%
input telmode;
font_size 15pt#;
slant:=1/4;
pen_width#:=0.74pt#;
input telparam;  
%%
%tel18%
input telmode;
font_size 18pt#;
slant:=0;
pen_width#:=0.86pt#;
input telparam;  
%%
%tel18b%
input telmode;
font_size 18pt#;
slant:=0;
pen_width#:=1.05pt#;
input telparam;  
%%
%tel18s%
input telmode;
font_size 18pt#;
slant:=1/4;
pen_width#:=1.00pt#;
input telparam;  
%%
%tel20%
input telmode;
font_size 20pt#;
slant:=0;
pen_width#:=1.05pt#;
input telparam;  
%%
%tel20b%
input telmode;
font_size 20pt#;
slant:=0;
pen_width#:=1.25pt#;
input telparam;  
%%
%tel20s%
input telmode;
font_size 20pt#;
slant:=1/4;
pen_width#:=1.10pt#;
input telparam;  
%%
%tel25%
input telmode;
font_size 25pt#;
slant:=0;
pen_width#:=1.25pt#;
input telparam;  
%%
%tel25b%
input telmode;
font_size 25pt#;
slant:=0;
pen_width#:=1.70pt#;
input telparam;  
%%
%tel25s%
input telmode;
font_size 25pt#;
slant:=1/4;
pen_width#:=1.35pt#;
input telparam;  
%%
%tel30%
input telmode;
font_size 30pt#;
slant:=0;
pen_width#:=1.75pt#;
input telparam;  
%%
%tel30s%
input telmode;
font_size 30pt#;
slant:=1/4;
pen_width#:=1.8pt#;
input telparam;  
%%
%tel35%
input telmode;
font_size 35pt#;
slant:=0;
pen_width#:=2.30pt#;
input telparam;  
%%
%tel35s%
input telmode;
font_size 35pt#;
slant:=1/4;
pen_width#:=2.40pt#;
input telparam;  
%%
%tel40%
input telmode;
font_size 40pt#;
slant:=0;
pen_width#:=2.75pt#;
input telparam;  
%%
%tel40s%
input telmode;
font_size 40pt#;
slant:=1/4;
pen_width#:=2.85pt#;
input telparam;  
%%
%tel55%
input telmode;
font_size 55pt#;
slant:=0;
pen_width#:=3.15pt#;
input telparam;  
%%
%tel55s%
input telmode;
font_size 55pt#;
slant:=1/4;
pen_width#:=3.25pt#;
input telparam;  
%%
%tel72%
% generate big characters,  sc_height to des_depth is 1 inch
input telmode;
font_size 72pt#;
slant:=0;
pen_width#:=3.8pt#;
input telparam;  
%%
%tel100%
% generate big characters
input telmode;
font_size 100pt#;
slant:=0;
pen_width#:=5.0pt#;
input telparam;  
%%
%tel172%
% generate very very big characters, x_height is 1 inch
input telmode;
font_size 172pt#;
slant:=0;
pen_width#:=6.0pt#;
%pen_width#:=1.3pt#;
input telparam;  
%%
%telspa%
% genarates characters with stripes
input telmode;
font_size 72pt#;
slant:=0;
pen_width#:=3.2pt#;
% 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.
    cullit;
    picture Normalchar;
         Normalchar:=currentpicture;
    clearit;
% Depending on the output device, pen size(0.28pt) may need to be
% changed.
    pickup pencircle scaled 0.28pt; 
    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;
    picture Stripeoverlay;
         Stripeoverlay:=currentpicture;
    currentpicture:=Stripeoverlay-Reversevideo;
enddef;
input telparam;  
%%
%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;  
%%
%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;  
%%
%tel2602%
% generate all the symbols in proof mode
mode=proof;
font_size 10pt#;
slant:=0;
pen_width#:=0.3pt#;
input telparam;
%%
%tel2602t%
% test individual symbols in the font
mode=proof;
font_size 10pt#;
boolean testing; testing:=true;
slant:=0;
pen_width#:=0.3pt#;
input telparam;
%%