Debian Codegraph @

texmf-dist/fonts/source/public/doublestroke/dsrom.mf

raw
1 % The Computer Modern Roman family of fonts (by D. E. Knuth, 1979--1985)
2 % Modified for Double Stroke Characters (by Olaf Kummer, 1995)
3
4 % This file was renamed from {\tt roman.mf} to {\tt dsrom.mf}
5 % and modified for double stroke characters by Olaf Kummer, 1995.
6 % The parameters doublestroke_curvedist and doublestroke_twist
7 % were added by Olaf Kummer, 1996.
8 % Version 1.0
9
10 mode_setup; font_setup;
11
12 % New parameters
13 if unknown doublestroke_thin#: doublestroke_thin#:=cap_hair#; fi
14 if unknown doublestroke_thick#: doublestroke_thick#:=cap_stem#; fi
15 if unknown doublestroke_dist#: doublestroke_dist#:=0.9cap_stem#; fi
16 if unknown doublestroke_curvedist#: doublestroke_curvedist#:=1.1cap_stem#; fi
17
18 if unknown doublestroke_twist:
19 boolean doublestroke_twist; doublestroke_twist:=serifs;
20 fi
21
22 % Calculate new parameters
23 define_whole_blacker_pixels(doublestroke_thick,doublestroke_thin);
24 define_whole_pixels(doublestroke_dist,doublestroke_curvedist);
25
26 % Add new macros
27
28 % Fit stroke to curve
29 def curve_stroke(suffix @)(expr xpos,width,patha,pathb) =
30 x@1l=x@2l=xpos=x@1r-width=x@2r-width;
31 y@1l=y@1r=2h; y@2l=y@2r=-h;
32 z@3=(patha)intersectionpoint([email protected]@2l);
33 z@4=(pathb)intersectionpoint([email protected]@2l);
34 z@5=(pathb)intersectionpoint([email protected]@2r);
35 z@6=(patha)intersectionpoint([email protected]@2r);
36 fill z@3--z@4--z@5--z@6--cycle;
37 enddef;
38
39 input dsromu; % upper case (majuscules)
40 input dsromo; % other characters
41
42 bye.