summaryrefslogtreecommitdiff
path: root/fonts/knot/knot5.mf
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/knot/knot5.mf
Initial commit
Diffstat (limited to 'fonts/knot/knot5.mf')
-rw-r--r--fonts/knot/knot5.mf39
1 files changed, 39 insertions, 0 deletions
diff --git a/fonts/knot/knot5.mf b/fonts/knot/knot5.mf
new file mode 100644
index 0000000000..cbe52ef84c
--- /dev/null
+++ b/fonts/knot/knot5.mf
@@ -0,0 +1,39 @@
+mode_setup;
+
+scale# := 0.5pt#;
+knotwid# = 8scale#;
+croswid# = knotwid#;
+thin# = 1scale#;
+thick# = 2scale#;
+sqwid# = 25scale#;
+sqht# = 25scale#;
+define_pixels(scale, thick, thin);
+define_blacker_pixels(knotwid, croswid);
+font_normal_space sqwid#;
+def --- = .. tension 2 .. enddef;
+numeric indist;
+numeric knotstyle.ll, knotstyle.rr, knotstyle.l, knotstyle.r, knotstyle.c;
+numeric knotstyle.solid;
+% A knotstroke is composed of up to five strokes: l ll c rr r
+% Each line can be drawn five ways. If knotstyle.x | | | | |
+% is 0 it is not drawn, if it is 1 it is drawn with | | | | |
+% the thin pen and if 2 it is drawn with the thick pen. | | | | |
+% -1 and -2 undraw it with the thin & thick pen | | | | |
+% respectively. knotstyle.solid can have four different | | | | |
+% values. If it is zero, no solid filling is done. If | | | | |
+% 1 then the stroke is filled from l to r. If it is |xxxxxxxxxxx|
+% 2 it is filled from ll to rr. Lastly if it is | |xxxxxxx| |
+% 3 it is filled from l to ll and rr to r. |x| | |x|
+
+indist := 1/4;
+knotstyle.l = 1;
+knotstyle.r = 1;
+knotstyle.ll = 1;
+knotstyle.rr = 1;
+knotstyle.c = 1;
+knotstyle.solid = 0;
+input doknots
+
+input bits
+
+end.