summaryrefslogtreecommitdiff
path: root/fonts/knitting
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/knitting
Initial commit
Diffstat (limited to 'fonts/knitting')
-rw-r--r--fonts/knitting/README21
-rw-r--r--fonts/knitting/docs/knitexamples.pdfbin0 -> 92519 bytes
-rw-r--r--fonts/knitting/docs/knitexamples.tex271
-rw-r--r--fonts/knitting/docs/knitkey.pdfbin0 -> 223877 bytes
-rw-r--r--fonts/knitting/docs/knitkey.tex530
-rw-r--r--fonts/knitting/docs/knitting-doc.pdfbin0 -> 477772 bytes
-rw-r--r--fonts/knitting/docs/knitting-doc.tex1597
-rw-r--r--fonts/knitting/fonts/afm/knitg_sc_in.afm261
-rw-r--r--fonts/knitting/fonts/afm/knitg_sc_out.afm261
-rw-r--r--fonts/knitting/fonts/afm/knitgg.afm262
-rw-r--r--fonts/knitting/fonts/afm/knitgn.afm262
-rw-r--r--fonts/knitting/fonts/afm/knitgp.afm261
-rw-r--r--fonts/knitting/fonts/afm/knitmg.afm184
-rw-r--r--fonts/knitting/fonts/afm/knitml.afm184
-rw-r--r--fonts/knitting/fonts/afm/knitmn.afm184
-rw-r--r--fonts/knitting/fonts/afm/knitmp.afm183
-rw-r--r--fonts/knitting/fonts/afm/knitmr.afm184
-rw-r--r--fonts/knitting/fonts/afm/knitn_sc_in.afm169
-rw-r--r--fonts/knitting/fonts/afm/knitn_sc_out.afm169
-rw-r--r--fonts/knitting/fonts/afm/knitnl.afm170
-rw-r--r--fonts/knitting/fonts/afm/knitnn.afm170
-rw-r--r--fonts/knitting/fonts/afm/knitnp.afm169
-rw-r--r--fonts/knitting/fonts/afm/knitnr.afm170
-rw-r--r--fonts/knitting/fonts/afm/knitwg.afm262
-rw-r--r--fonts/knitting/fonts/afm/knitwn.afm262
-rw-r--r--fonts/knitting/fonts/afm/knitwp.afm261
-rw-r--r--fonts/knitting/fonts/map/knitfont.map23
-rw-r--r--fonts/knitting/fonts/source/knit_dimens.mf112
-rw-r--r--fonts/knitting/fonts/source/knit_grid_cables.mf593
-rw-r--r--fonts/knitting/fonts/source/knit_nogrid_cables.mf703
-rw-r--r--fonts/knitting/fonts/source/knit_symbols.mf1163
-rw-r--r--fonts/knitting/fonts/source/knitg_sc_in.mf24
-rw-r--r--fonts/knitting/fonts/source/knitg_sc_out.mf24
-rw-r--r--fonts/knitting/fonts/source/knitgg.mf23
-rw-r--r--fonts/knitting/fonts/source/knitgn.mf22
-rw-r--r--fonts/knitting/fonts/source/knitgp.mf22
-rw-r--r--fonts/knitting/fonts/source/knitmg.mf22
-rw-r--r--fonts/knitting/fonts/source/knitml.mf27
-rw-r--r--fonts/knitting/fonts/source/knitmn.mf22
-rw-r--r--fonts/knitting/fonts/source/knitmp.mf23
-rw-r--r--fonts/knitting/fonts/source/knitmr.mf27
-rw-r--r--fonts/knitting/fonts/source/knitn_sc_in.mf24
-rw-r--r--fonts/knitting/fonts/source/knitn_sc_out.mf24
-rw-r--r--fonts/knitting/fonts/source/knitnl.mf27
-rw-r--r--fonts/knitting/fonts/source/knitnn.mf20
-rw-r--r--fonts/knitting/fonts/source/knitnp.mf23
-rw-r--r--fonts/knitting/fonts/source/knitnr.mf27
-rw-r--r--fonts/knitting/fonts/source/knitwg.mf23
-rw-r--r--fonts/knitting/fonts/source/knitwn.mf23
-rw-r--r--fonts/knitting/fonts/source/knitwp.mf23
-rw-r--r--fonts/knitting/fonts/tfm/knitg_sc_in.tfmbin0 -> 1232 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitg_sc_out.tfmbin0 -> 1232 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitgg.tfmbin0 -> 2136 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitgn.tfmbin0 -> 2136 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitgp.tfmbin0 -> 2136 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitmg.tfmbin0 -> 1576 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitml.tfmbin0 -> 2556 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitmn.tfmbin0 -> 2556 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitmp.tfmbin0 -> 1252 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitmr.tfmbin0 -> 2556 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitn_sc_in.tfmbin0 -> 1224 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitn_sc_out.tfmbin0 -> 1220 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitnl.tfmbin0 -> 2520 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitnn.tfmbin0 -> 2520 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitnp.tfmbin0 -> 1220 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitnr.tfmbin0 -> 2520 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitwg.tfmbin0 -> 2108 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitwn.tfmbin0 -> 2108 bytes
-rw-r--r--fonts/knitting/fonts/tfm/knitwp.tfmbin0 -> 2108 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitg_sc_in.pfbbin0 -> 21758 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitg_sc_out.pfbbin0 -> 21891 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitgg.pfbbin0 -> 37455 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitgn.pfbbin0 -> 49641 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitgp.pfbbin0 -> 22253 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitmg.pfbbin0 -> 20391 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitml.pfbbin0 -> 41830 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitmn.pfbbin0 -> 51009 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitmp.pfbbin0 -> 17521 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitmr.pfbbin0 -> 41928 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitn_sc_in.pfbbin0 -> 19136 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitn_sc_out.pfbbin0 -> 19205 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitnl.pfbbin0 -> 43013 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitnn.pfbbin0 -> 51741 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitnp.pfbbin0 -> 16698 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitnr.pfbbin0 -> 43269 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitwg.pfbbin0 -> 43078 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitwn.pfbbin0 -> 49977 bytes
-rw-r--r--fonts/knitting/fonts/type1/knitwp.pfbbin0 -> 21217 bytes
-rw-r--r--fonts/knitting/tex/latex/knitting.sty899
-rw-r--r--fonts/knitting/tex/latex/uknit.fd30
-rw-r--r--fonts/knitting/tex/plain/knitting.tex1018
91 files changed, 11438 insertions, 0 deletions
diff --git a/fonts/knitting/README b/fonts/knitting/README
new file mode 100644
index 0000000000..649dead845
--- /dev/null
+++ b/fonts/knitting/README
@@ -0,0 +1,21 @@
+This package is written to make it possible to write cable and lace
+charts for knitting patterns using plain TeX or LaTeX. It provides fonts
+of appropriate symbols and macros for their use.
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3 of this license or (at your option) any
+later version.
+The latest version of the license is in
+ http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of
+LaTeX version 2003/06/01 or later.
+
+As per the LPPL, no restrictions are placed on running this package. In
+particular, no restrictions are placed by the package author on selling
+or distributing patterns typeset using this package. Not all LaTeX
+packages may be used in commercial products; if you use other packages
+to produce a PDF or paper document, you must check their documentation
+to see if you are allowed to sell the result.
+
+For more information, see the documentation file knitting-doc.pdf. \ No newline at end of file
diff --git a/fonts/knitting/docs/knitexamples.pdf b/fonts/knitting/docs/knitexamples.pdf
new file mode 100644
index 0000000000..952bacbfc0
--- /dev/null
+++ b/fonts/knitting/docs/knitexamples.pdf
Binary files differ
diff --git a/fonts/knitting/docs/knitexamples.tex b/fonts/knitting/docs/knitexamples.tex
new file mode 100644
index 0000000000..e9e4e3ea22
--- /dev/null
+++ b/fonts/knitting/docs/knitexamples.tex
@@ -0,0 +1,271 @@
+% knitexamples.tex
+%
+% Provides examples of usage of the knitting package
+%
+% author: Ariel Barton
+%
+% Copyright Ariel Barton, 2010
+%
+% The contents of the files knitkey.tex and knitexamples.tex
+% may be copied and/or modified in other files without
+% restriction or need for acknowledgement.
+%
+% The work as a whole may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3 of this license or (at your option) any
+% later version.
+% The latest version of the license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2003/06/01 or later.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The complete list of files considered part of this work is in
+% the file `knitting-doc.pdf' and its source code `knitting-doc.tex'.
+%
+% Date: 2019/04/03
+%
+% Version: 3
+
+\documentclass[draft]{article}
+
+\usepackage[chartsonly]{knitting}
+
+\usepackage{calc}
+
+%\textwidth = 3in
+
+\begin{document}
+
+\knitgrid
+
+\settowidth{\textwidth}{\begin{tabular}{|c|l|l|}
+\textknit{>}&Knit 2 together&Purl 2 together\\
+\end{tabular}}
+
+\begin{smallpage}
+\noindent\begin{tabular}{|c|l|l|}
+\hline
+& Right side & Wrong side\\\hline
+\textknit{-}&Knit&Purl\\
+\textknit{=}&Purl&Knit\\
+\textknit{>}&Knit 2 together&Purl 2 together\\
+\textknit{<}&Slip, slip, knit&Slip, slip, purl\\
+\hline
+\end{tabular}
+\end{smallpage}
+
+\ifchartsonly \else Odd-number ribbed braid \fi
+
+\knitgrid
+\rnevenonly
+
+\chart[right]{
+=--==\!==----==\!=
+\-{14}
+=--==\!==CCkk==\!=
+=--==\!==----==\!=
+=CCpp\!ggKKCCpp\!=
+~~~\_\_~~~~~~\_\_~
+===\!----====\!--=
+===\!ccKK====\!--=
+===\!----====\!--=
+~~~\_\_~~~~~~\_\_~
+=ggKK\!CCppggKK\!=
+=--==\!==----==\!=
+\-{14}
+\vskip 0.5\knitlinewd
+}
+\rnnormal
+
+\ifchartsonly \else Even-number ribbed braid \fi
+
+\knitnogrid
+\newdimen\knitlinewd
+\setlength{\knitlinewd}{1.2pt}
+% Zigzagging lines will look better if we make them a little wider
+\chart[oddleft]{
+=--==\!==----==\!==--=
+\-{18}
+=--==\!==CCkk==\!==--=
+=--==\!==----==\!==--=
+=CCpp\!ggKKCCpp\!ggKK=
+~~~\_\_~~~~~~\_\_~
+===\!----====\!----===
+===\!ccKK====\!ccKK===
+===\!----====\!----===
+~~~\_\_~~~~~~\_\_~
+=ggKK\!CCppggKK\!CCpp=
+=--==\!==----==\!==--=
+\-{18}
+\vskip 0.5\knitlinewd
+}
+\rnnormal
+
+\ifchartsonly \else Twining leaves \fi
+
+\knitnogrid
+\definecolor{knitlinecolor}{rgb}{0,0,0.8}
+\definecolor{rncolor}{rgb}{0,0,0.8}
+\definecolor{rnarrowcolor}{rgb}{0,0,0.6}
+
+\rnevenonly
+\stitchcountchart[right]{
+===,,,,,,===--===,,,,,,===
+===,,,,,,===--==,,,\>3,,,===
+===,,,,,,===--==,,---,,===
+===,,,,,,===--==,,>-<,,===
+===,,,,,,===--==,-----,===
+===,,,,,,===--==,>---<,===
+===,,,,,,===--==-------===
+===,,,,,,===--==--O-O--===
+===,,,,,,===--==,-----,===
+\overline{===,,,\>3,,,==--==,-O-O-,===}
+===,,---,,==--==,,---,,===
+===,,>-<,,==--==,,O-O,,===
+===,-----,==--==-,,,,,,===
+===,>---<,==--=pK,,,,,,===
+===-------==--=-=,,,,,,===
+===--O-O--==--pK=,,,,,,===
+===,-----,==---==,,,,,,===
+===,-O-O-,==-kK=,,,\>3,,,===
+===,,---,,==--==,,---,,===
+===,,O-O,,==--==,,>-<,,===
+===,,,,,,-==--==,-----,===
+===,,,,,,Kp=--==,>---<,===
+===,,,,,,=-=--==-------===
+===,,,,,,=Kp--==--O-O--===
+===,,,,,,==---==,-----,===
+\overline{%
+===,,,,,,==Kk-==,-O-O-,===}
+===,,,,,,===--==,,---,,===
+===,,,,,,===--==,,O-O,,===
+===,,,,,,===--==-,,,,,,===
+===,,,,,,===--=pK,,,,,,===
+===,,,,,,===--=-=,,,,,,===
+===,,,,,,===--pK=,,,,,,===
+===,,,,,,===---==,,,,,,===
+===,,,,,,===-kK==,,,,,,===
+===,,,,,,===--===,,,,,,===
+}
+\rnnormal
+
+\definecolor{knitlinecolor}{rgb}{0.7,0,0}
+\definecolor{rncolor}{rgb}{0.6,0,0}
+\definecolor{rnarrowcolor}{rgb}{0.45,0,0}
+
+\ifchartsonly \else Print o' the Wave \fi
+
+\knitgrid
+
+\resetrnfalse
+\setcounter{rownumber}{99}
+\setcounter{rownumberskip}{2}
+
+\chart[right]{
+<O<O-----O))><((O<O----
+-<O<O---O))>--<((O<O---
+--<O<O-O))>----<((O<O--
+----O>O))><((O-----O>O>
+---O>O))>--<((O---O>O>-
+--O>O))>----<((O-O>O>--
+<O<O-----O))><((O<O----
+-<O<O---O))>--<((O<O---
+--<O<O-O))>----<((O<O--
+----O>O))><((O-----O>O>
+---O>O))>--<((O---O>O>-
+--O>O))>----<((O-O>O>--
+~~~\numberrow{20}{5}{1}
+}
+
+\resetrntrue
+\setcounter{rownumberskip}{1}
+
+
+\ifchartsonly \else Colorwork \fi
+
+\knitwide
+
+\definecolor{green}{rgb}{0,0.6,0.1}
+\definecolor{lightgreen}{rgb}{0.5,1,0.5}
+\definecolor{yellow}{rgb}{1,1,0.35}
+
+
+% Enclosing the \catcode `\^=\active and the chart in braces
+% means that ^ will go back to its usual math meaning after the chart
+{
+ %We turn ^ into an active character
+ \catcode `\^=\active
+ % And then we can define it like a command
+ \renewcommand{^}{\noindent{\purlpass{\color{lightgreen}}\purlbackground{-}}}
+
+ \chart[right]{
+ \purlpass{\color{blue}}
+ % = produces blue
+ -|--------------|
+ -|=--=--=--=--=-|
+ =|--=--=-=--=--=|
+ ^|^=^^=^^^=^^=^^|
+ ^|=^^=^^=^^=^^=^|
+ \purlpass{\color{green}}
+ % = produces green
+ =|^^=^^=^=^^=^^=|
+ ^|^=^^=^^^=^^=^^|
+ \renewcommand{^}{\noindent{\purlpass{\color{yellow}}\purlbackground{-}}}
+ % ^ produces yellow
+ ^|=^^=^^=^^=^^=^|
+ =|^^=^^=^=^^=^^=|
+ ^|=^^=^^=^^=^^=^|
+ \renewcommand{^}{\noindent{\purlpass{\color{lightgreen}}\purlbackground{-}}}
+ % ^ produces light green
+ ^|^=^^=^^^=^^=^^|
+ =|^^=^^=^=^^=^^=|
+ \purlpass{\color{blue}}
+ % = produces blue
+ ^|=^^=^^=^^=^^=^|
+ ^|^=^^=^^^=^^=^^|
+ =|--=--=-=--=--=|
+ -|=--=--=--=--=-|
+ -|--------------|
+ }
+}
+
+\ifchartsonly \else Repeats \fi
+
+\renewcommand{\printrightrownumber}[1]{%
+ \knitleftarrowhead
+ \textnormal{\color{rncolor}%
+ #1 (\thestitchcountout\ sts)}}
+
+\newcommand\threepartrow[3]{%
+ % Count the stitches, counting the middle stitches 4 times
+ \mainpass{\countstitches{#1 #2#2#2#2 #3}}%
+ % Print the row
+ #1\|#2\|#3
+ % Print a bar if we have a stitch count mismatch
+ \mainpass{\stitchcountwarningbar}}
+
+\knitgrid
+\resetrnfalse
+\setcounter{rownumber}{12}
+\setcounter{rownumberskip}{2}
+
+% Setting stitchcountin to any number less than -99 suppresses the
+% warning bar on the first row.
+\setcounter{stitchcountin}{-100}
+
+\chart[right]{
+ ~~~~~~~~\hskip\knitlinewd %
+ \mainpass{\makebox[18\stitchwd][c]{\color{rncolor}\textnormal{%
+ Repeat 4 times}}} \nonumber ``
+ % The `` is necessary for proper vertical alignment
+ \threepartrow{-O------}{..-----OAO-----..-}{-----O-}
+ ~\threepartrow{-O-----}{..----O>-<O----..-}{----O-}
+ ~~\threepartrow{-O----}{..<--O>OAO<O-->..-}{---O-}
+ ~~~\threepartrow{-O---}{.<--O>O>-<O<O-->.-}{--O-}
+ ~~~~\threepartrow{-O--}{<--O>O>---<O<O-->-}{-O-}
+ ~~~~~\threepartrow{-O-}{..------\narrowincrease{7}------..-}{O-}
+ }
+
+\end{document}
diff --git a/fonts/knitting/docs/knitkey.pdf b/fonts/knitting/docs/knitkey.pdf
new file mode 100644
index 0000000000..e86cbe4c20
--- /dev/null
+++ b/fonts/knitting/docs/knitkey.pdf
Binary files differ
diff --git a/fonts/knitting/docs/knitkey.tex b/fonts/knitting/docs/knitkey.tex
new file mode 100644
index 0000000000..fc50643144
--- /dev/null
+++ b/fonts/knitting/docs/knitkey.tex
@@ -0,0 +1,530 @@
+% knitkey.tex
+%
+% This file includes suggested meanings for the symbols in
+% the knitting package.
+%
+% author: Ariel Barton
+%
+% Copyright Ariel Barton, 2010
+%
+% The contents of the files knitkey.tex and knitexamples.tex
+% may be copied and/or modified in other files without
+% restriction or need for acknowledgement.
+%
+% The work as a whole may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3 of this license or (at your option) any
+% later version.
+% The latest version of the license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2003/06/01 or later.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The complete list of files considered part of this work is in
+% the file `knitting-doc.pdf' and its source code `knitting-doc.tex'.
+%
+% Date: 2019/04/03
+%
+% Version: 3
+
+\documentclass{amsart}
+\usepackage{knitting}
+\usepackage[colorlinks]{hyperref}
+
+% Choose your chart symbol font
+\knitnogrid
+\knitwide
+\knitmixed
+\knitgrid
+
+% \ifdesigner lets me easily hide all my comments to the designer and
+% just write a stitch key.
+\newif \ifdesigner
+\designertrue
+% \designerfalse
+
+% The commands to draw chart rows
+% (I'm just not happy with {tabular})
+
+\newlength{\symbolcolwidth}
+\newlength{\singlecolwidth}
+\newlength{\doublecolwidth}
+\newcommand{\setcolwidths}[1]{
+ \setlength{\symbolcolwidth}{#1}
+ \addtolength{\symbolcolwidth}{1pt}
+ \setlength{\doublecolwidth}{\textwidth}
+ \addtolength{\doublecolwidth}{-4\tabcolsep}
+ \addtolength{\doublecolwidth}{-1.2pt} % Width of 3 rules
+ \addtolength{\doublecolwidth}{-\symbolcolwidth}
+ \setlength{\singlecolwidth}{0.5\doublecolwidth}
+ \addtolength{\singlecolwidth}{-1\tabcolsep}
+ \addtolength{\singlecolwidth}{-0.2pt} % Half the width of a rule
+ }
+
+\newcommand\keyrow[3]{\par\allowbreak\hrule\par\nopagebreak\noindent
+ \vrule\hfill
+ % \vrule produces rules that are the height of the tallest thing on
+ % the line
+ \begin{minipage}{\symbolcolwidth}\centering#1\end{minipage}%
+ \hfill\vrule\hfill
+ \begin{minipage}{\singlecolwidth}
+ \raisebox{1pt}{\strut}#2\raisebox{-1pt}{\strut}\end{minipage}%
+ \hfill\vrule\hfill
+ \begin{minipage}{\singlecolwidth}
+ \raisebox{1pt}{\strut}#3\raisebox{-1pt}{\strut}\end{minipage}%
+ \hfill\vrule
+ \par\nointerlineskip}
+
+\newcommand\dblkeyrow[2]{\par\allowbreak\hrule\par\nopagebreak\noindent
+ \vrule\hfill
+ \begin{minipage}{\symbolcolwidth}\centering#1\end{minipage}%
+ \hfill\vrule\hfill
+ \begin{minipage}{\doublecolwidth}
+ \raisebox{1pt}{\strut}#2\raisebox{-1pt}{\strut}\end{minipage}%
+ \hfill\vrule
+ \par\nointerlineskip}
+
+\begin{document}
+
+\begin{fullpages}
+
+\ifdesigner
+Any knitting chart should have a key. This file provides a key of
+suggested definitions for most of the symbols. If you find it
+convenient, you have permission to simply copy and paste the relevant
+sections of this file to your pattern. No acknowledgement is required.
+
+The following symbols are meant to be used for increases, decreases,
+and special instructions; their
+exact definition should vary from pattern to pattern.
+
+\begin{quote}
+\textknit{H}
+\textknit{v}
+\textknit{V}
+\textknit{6}
+\textknit{7}
+\textknit{8}
+\textknit{9}
+\textknit{\narrowincrease{3}}
+\textknit{\pnarrowincrease{3}}
+\textknit{\wideincrease{3}}
+\quad
+\textknit{!}
+\textknit{2}
+\textknit{\narrowdecrease{3}}
+\textknit{\pnarrowdecrease{3}}
+\textknit{\widedecrease{3}}
+\quad
+\textknit{*}
+\textknit{\knitbox{etc.}{2}}
+\end{quote}
+
+\definecolor{darkgrey}{gray}{0.3}
+
+The Craft Yarn Council of America suggests a \href{http://www.craftyarncouncil.com/chart_knit.html}{slightly different set of symbols}. In particular, they want to use
+
+\begin{itemize}
+
+\item \textknit{)} and \textknit{(} for single decreases (where I have \textknit{>} and \textknit{<})
+
+\item \textknit{v} and \textknit{6} for slipped stitches (where I have \textknit{s} and \textknit{\purlbackground{s}})
+
+\item Solid black dots \textknit{\knitbox{{$\bullet$}}{1}} for bobbles
+
+\item Solid dark squares \textknit{{\purlpass{\color{darkgrey}}\mainpass[=]{``}}} for no-stitch boxes
+
+\item
+\textknit{\rlap{\raisebox{-1pt}{\hskip1.3pt \footnotesize\textnormal{\textsf{3}}}}%
+\mainpass[(]{\hskip1pt\rule[-\stitchdp]{0pt}{\stitchht}\raisebox{1pt}[0pt][0pt]{(}\hskip-1pt}}
+and \textknit{\mainpass[)]{\hskip-1pt\rule[-\stitchdp]{0pt}{\stitchht}\raisebox{1pt}[0pt][0pt]{)}\hskip1pt}%
+\llap{\raisebox{-1pt}{\footnotesize\textnormal{\textsf{3}}\hskip1.3pt}}}
+for double decreases (and
+\textknit{\rlap{\raisebox{-1pt}{\hskip1.3pt \footnotesize\textnormal{\textsf{4}}}}%
+\mainpass[(]{\hskip1pt\rule[-\stitchdp]{0pt}{\stitchht}\raisebox{1pt}[0pt][0pt]{(}\hskip-1pt}}
+and \textknit{\mainpass[)]{\hskip-1pt\rule[-\stitchdp]{0pt}{\stitchht}\raisebox{1pt}[0pt][0pt]{)}\hskip1pt}%
+\llap{\raisebox{-1pt}{\footnotesize\textnormal{\textsf{4}}\hskip1.3pt}}}
+for triple decreases)
+
+\item \textknit{7}, \textknit{8}, and \textknit{9} instead of \textknit{y}, \textknit{u}, and \textknit{z}.
+
+\end{itemize}
+\textknit{{\purlpass{\color{darkgrey}}\mainpass[=]{``}}}
+is harder to get out of \TeX\ than the grid symbol {\knitgrid\textknit{,}} and is less clear than the nongrid symbol {\knitnogrid\textknit{,}}. The rest of my symbols are different because I think they are clearer, prettier, or allow for more different stitches to be indicated. (\textknit{v} looks like an increase to me, and the CYCA doesn't distinguish between \textknit{l} and \textknit{L}). \fi
+
+\clearpage
+
+\section{General symbols}
+
+\ifdesigner
+If you do not use twisted make-1 increases (or if you use \textknit{m}
+for them) you may wish to substitute \textknit{t} for \textknit{b}.
+If you do use \textknit{t} or \textknit{x}, and you don't care about the
+distinction between \textknit{b} and \textknit{q}, you may wish to
+substitute \textknit{\knitbox{B}{1}} for \textknit{b}.
+
+\textknit{(} and \textknit{)} are meant to indicate biased stitches, that is, stitches worked between increases and decreases. These are needed in charts for machine knitting; they also can make the chart easier to visualize.
+
+%If you use bobbles, be sure to define ssp tbl somewhere.
+
+\medskip
+
+\fi
+
+\settowidth{\dimen0}{\textknit{s} or \textknit{S}}
+\setcolwidths{\dimen0} % The argument is the width of the widest thing in the left column
+
+\keyrow{Symbol}{Right side instructions}{Wrong side instructions}
+\keyrow{\textknit{-}}{Knit}{Purl}
+\keyrow{\textknit{=}}{Purl}{Knit}
+\dblkeyrow{\textknit{\knitbox{12}{3}}}{Knit (RS) or purl (WS) the number of stitches listed in the center of the box.}
+\dblkeyrow{\textknit{\purlbox{12}{3}}}{Purl (RS) or knit (WS) the number of stitches listed in the center of the box.}
+\keyrow{\textknit{)} or \textknit{(}}{Knit}{Purl}
+\keyrow{\textknit{b}}{Knit through back loop}{Purl through back loop}
+\keyrow{\textknit{B}}{Purl through back loop}{Knit through back loop}
+\dblkeyrow{\textknit{q}}{Slip 1 as if to knit, return to right needle, and knit (RS) or purl (WS) through front loop. This twists the stitch, but in the opposite direction from \textknit{b}.}
+\dblkeyrow{\textknit{Q}}{As for \textknit{q}, but this time purl on WS and knit on RS.}
+\dblkeyrow{\textknit{s} or \textknit{S}}{Slip one as if to purl with yarn held to the wrong side.}
+\dblkeyrow{\textknit{\purlbackground{s}} or \textknit{\purlbackground{S}}}
+{Slip one as if to purl with yarn held to the right side.}
+\dblkeyrow{\textknit{[} or \textknit{]}}{Slip one as if to knit with yarn held to the wrong side.}
+\dblkeyrow{\textknit{\purlbackground{[}} or \textknit{\purlbackground{]}}}{Slip one as if to knit with yarn held to the right side.}
+\keyrow{\textknit{\bobble{3}}}
+{(Knit 1, yarn over, knit 1) in next stitch, turn, purl 3, turn, slip 1 knitwise, knit 2 together, pass slipped stitch over}
+{(Purl 1, yarn over, purl 1) in next stitch, turn, knit 3, turn, purl 3 together or slip 1 purlwise, ssp tbl, pass slipped stitch over}
+
+\ifdesigner\hrule\medskip
+If you use bobbles, be sure to define ssp tbl somewhere.
+\clearpage\fi
+
+\keyrow{\textknit{\bobble{5}}}
+{(Knit 1, yarn over, knit 1, yarn over, knit 1) in next stitch. Turn, purl 5, turn, knit 5, turn, purl 5, turn. Quadruple decrease: slip 2 as if to knit, knit 3 together, pass slipped sts over}
+{(Purl 1, yarn over, purl 1, yarn over, purl 1) in next stitch. Turn, knit 5, turn, purl 5, turn, knit 5, turn. Quadruple decrease: purl 5 together or slip 2 as if to purl, sssp tbl, pass 2 slipped sts over}
+\dblkeyrow{\textknit{"} or \textknit{""}}{Wrap and turn: Move yarn between needles to right side of work, slip 1 stitch as if to purl, move yarn to wrong side of work (wrapping it around the slipped stitch), slip stitch back to the left needle, and turn work.}
+\ifgrid\dblkeyrow{\textknit{,} or \textknit{.}}{No stitch; ignore these squares} \fi
+\dblkeyrow{\textknit{@}}{Beaded stitch}
+\dblkeyrow{\textknit{h}}{Drop stitch from needle}
+\keyrow{\textknit{\widesymbol{*}{3}}}{Purl 3 together but do not remove from left needle. Knit same 3 stitches together. Then purl same 3 stitches together and remove from left needle.}{Knit 3 together but do not remove from left needle. Purl same 3 stitches together. Then knit same 3 stitches together and remove from left needle.}
+\keyrow{\textknit{111}}{Slip 1 as if to knit, knit 2, pass slipped stitch over both knitted stitches}{Slip 1 as if to purl, purl 2, pass slipped stitch over both purled stitches}
+\dblkeyrow{\textknit{???}}{Wrapped stitches: Knit 3 (RS) or purl 3 (WS) and then slide these three stitches to a cable needle. Move yarn to the right side and wrap yarn from left to right across these three stitches, then move yarn to wrong side and wrap yarn from right to left across these three stitches. You have just wrapped the yarn all the way around these three stitches once. Wrap yarn in this direction 2 more times, then slip stitches from cable needle to right needle and continue knitting.}
+\hrule
+
+\clearpage
+
+\setcolwidths{3\stitchwd}
+
+\keyrow{\textknit{+++}}
+{Horizontal cable (worked throughout with yarn held to back):
+\par\emph{First stitch}: Slip 1 as to knit. Insert left needle through last 2 stitches on right needle from right to left and remove right needle. Slip 1 as if to purl.
+\par\emph{Subsequent stitches}: Knit 1, then work as for the first stitch.}
+{Horizontal cable (worked throughout with yarn held to front):
+\par\emph{First stitch}: Slip 1 from right needle to left needle. Slip 2 as if to knit 2 together. Slip 1 from right needle back to left needle.
+\par\emph{Subsequent stitches}: Purl 1, then work as for the first stitch.}
+\keyrow{\textknit{/}}
+{Special horizontal cable (worked in the middle of a horizontal cable): Slip 2 as to k2tog, then slip 1 stitch from right needle back to left needle.}
+{Slip 2 as to SSK. Insert left needle through these two stitches from right to left and remove right needle. Slip 1 as if to purl.}
+\hrule
+
+\medskip
+
+\ifdesigner
+
+A horizontal cable should (usually) be preceded by a yarn over and followed by a decrease. You may wish to write the yarn over or decrease as part of the instructions for a horizontal cable:
+
+\medskip
+
+\setcolwidths{\stitchwd}
+{\ifgrid\else \knitgrid\fi
+
+\keyrow{\textknit{\char21}}
+{Yarn over. Slip 1 as to knit. Insert left needle through last 2 stitches on right needle from right to left and remove right needle. Slip 1 as if to purl.}{Purl 2 together}
+\keyrow{\textknit{\char20}}
+{Knit 1. Slip 1 as to knit. Insert left needle through last 2 stitches on right needle from right to left and remove right needle. Slip 1 as if to purl.}
+{Purl 1. Slip 1 from right needle to left needle. Slip 2 as if to knit 2 together. Slip 1 from right needle back to left needle.}
+\keyrow{\textknit{+}}{SSK or SKP}{Yarn over. Slip 1 from right needle to left needle. Slip 2 as if to knit 2 together. Slip 1 from right needle back to left needle.}
+}
+\hrule
+
+\fi
+
+\clearpage
+
+\section{Increases}
+
+\ifdesigner Some charts work better if a double increase \textknit{W} takes up three squares instead of one. In the grid font, the best-looking way to do this is to use \verb|\widesymbol{W}{3}|.
+The symbols \textknit{0} and \textknit{\#} have no predetermined definitions; use them for whatever you need.
+
+\medskip
+
+\fi
+
+\setcolwidths{\stitchwd}
+\dblkeyrow{\textknit{O}}{Yarn over}
+\dblkeyrow{\textknit{U}}{Cast on}
+\dblkeyrow{\textknit{t}}{Pick up the yarn between the stitch just worked and the next stitch by inserting the right-hand needle from back to front. Slip this lifted stitch to left needle, purlwise. Knit (RS) or purl (WS) through the back loop. This produces a twisted make-1 increase slanting to the left.}
+\dblkeyrow{\textknit{T}}{As for \textknit{t}, but this time purl on WS and knit on RS.}
+\dblkeyrow{\textknit{x}}{Pick up the yarn between the stitch just worked and the next stitch by inserting the right-hand needle from front to back. Slip this lifted stitch to left needle, purlwise. Knit (RS) or purl (WS) through the front loop. This produces a twisted make-1 increase slanting to the right.}
+\dblkeyrow{\textknit{X}}{As for \textknit{x}, but this time purl on WS and knit on RS.}
+\dblkeyrow{\textknit{m}}{Twisted make-1: pick up the yarn between the stitch just worked and the next stitch, twist and knit it (RS) or twist and purl it (WS).}
+\dblkeyrow{\textknit{M}}{Twisted purlwise make-1: pick up the yarn between the stitch just worked and the next stitch, twist and purl it (RS) or twist and knit it (WS).}
+\keyrow{\textknit{i}}{Pick up the stitch just below the next one to be worked, and knit it.}{Pick up the stitch just below the last stitch that was worked, and purl it.}
+\keyrow{\textknit{I}}{Pick up the stitch just below the next one to be worked, and purl it.}{Pick up the stitch just below the last stitch that was worked, and knit it.}
+\keyrow{\textknit{j}}{Pick up the stitch just below the last stitch that was worked, and knit it.}{Pick up the stitch just below the next one to be worked, and purl it.}
+\keyrow{\textknit{J}}{Pick up the stitch just below the last stitch that was worked, and purl it.}{Pick up the stitch just below the next one to be worked, and knit it.}
+\keyrow{\textknit{y}}{Knit through front loop and then the back loop of the next stitch. Or, to better match with \textknit{u}: Slip 1 as if to knit and return to left needle, then knit 1 through back loop and then 1 through front loop of the slipped stitch.}{Slip 1 as if to knit and return to left needle, then purl through \textbf{front loop} (twisting the stitch) but do not remove the left needle. Pick up the front strand of the stitch with left needle, and purl it without twisting.}
+\keyrow{\textknit{u}}{Mirror image of \textknit{y}: Knit 1 through back loop but do not remove left needle. Pick up the back loop of the stitch just worked and knit it without twisting.}{Purl through front loop and then the back loop of the next stitch.}
+\dblkeyrow{\textknit{v\llap{`'}}}{Purl 1, then knit 1 both in the same stitch}
+\dblkeyrow{\textknit{v\llap{'`}}}{Knit 1, then purl 1 both in the same stitch}
+\dblkeyrow{\textknit{z}}{Insert needle as if to knit (RS) or purl (WS). Wrap the yarn around the needle twice, and pull this doubled strand of yarn through as if it were a normal stitch.}
+\dblkeyrow{\textknit{Z}}{As \textknit{z}, but wrap your yarn three times.}
+\dblkeyrow{\textknit{w}}{Make 3 from 1: Knit (RS) or purl (WS) 1 through back loop, then through front loop of the same stitch, and slide stitch off the left needle. Then pick up the front strand of the stitch just worked, twist it and knit or purl it.}
+\dblkeyrow{\textknit{W}}{As for \textknit{w}, but purl all stitches on RS and knit all stitches on WS.}
+\keyrow{\textknit{E}}{(Knit 1, purl 1, knit 1) in next stitch}{(Purl 1, knit 1, purl 1) in next stitch}
+\keyrow{\textknit{\&}}{(Purl 1, knit 1, purl 1) in next stitch}{(Knit 1, purl 1, knit 1) in next stitch}
+\keyrow{\textknit{Y}}{(Knit 1, yarn over, knit 1) in next stitch}{(Purl 1, yarn over, purl 1) in next stitch}
+\hrule
+
+\clearpage
+
+\section{Decreases}
+
+\ifdesigner
+Purl decreases produce strong diagonal lines on the wrong side. You
+may wish to use \textknit{;} for p2tog and \textknit{:} for SSP tbl if
+you wish to clearly indicate which way these diagonal lines slant.
+
+You may also think that \textknit{4} and \textknit{5} look better in your pattern than \textknit{<} and \textknit{>}; their definitions may be interchanged.
+
+\nopagebreak
+
+\medskip
+\fi
+
+\setcolwidths{\stitchwd}
+\keyrow{\textknit{>}}{Knit 2 together}{Purl 2 together or slip 1, purl 1, pass slipped stitch over}
+\keyrow{\textknit{<}}{SSK: Slip 1 as to knit, slip 1 as to knit, insert left needle through both slipped stitches and knit the two stitches together as one; or\par SKP: slip 1 as to knit, knit 1, pass slipped stitch over}{SSP tbl: Slip 2 as if to SSK, slide stitches back to left needle (they will have reversed their orientation), then purl 2 together through back loop.}
+\keyrow{\textknit{4}}{Twisted decrease: knit 2 together through back loop}{Purl 2 together through back loop}
+\keyrow{\textknit{5}}{Slip 2 as if to SSK, return to left needle, and knit 2 together through front loop}{Slip 2 as if to SSK, return to left needle, and purl 2 together through front loop}
+\keyrow{\textknit{:}}{Purl 2 together or slip 1, purl 1, pass slipped stitch over}{Knit 2 together}
+\keyrow{\textknit{;}}{SSP tbl}{SSK or SKP}
+\keyrow{\textknit{f}}{Bind off knitwise}{Bind off purlwise}
+\keyrow{\textknit{F}}{Bind off purlwise}{Bind off knitwise}
+\keyrow{\textknit{A}}{Slip 1 as if to knit, knit 2 together, pass slipped stitch over}{Slip 1 as if to purl, SSP tbl, pass slipped stitch over}
+\keyrow{\textknit{3}}{Slip 1 as if to purl, SSP tbl, pass slipped stitch over}{Slip 1 as if to knit, knit 2 together, pass slipped stitch over}
+\keyrow{\textknit{R}}{Knit 3 together}{Purl 3 together or slip 2 as to purl, purl 1, pass slipped stitches over}
+\keyrow{\textknit{L}}{SSSK or slip 2 as if to knit, knit 1 stitch, pass slipped stitches over}{Slip 3 stitches, one by one, as to knit. Return to left needle and purl 3 together through back loop.}
+\keyrow{\textknit{r}}{Double decrease worked as follows: SSK or SKP; slip stitch just formed to left needle; pass next stitch over; slip 1 as if to purl}{Slip 1 as if to purl; SSP tbl; pass slipped stitch over}
+\keyrow{\textknit{l}}{Slip 1 as if to knit; knit 2 together; pass slipped stitch over}{Purl 2 together; slip stitch just formed to left needle; pass next stitch over; slip 1 as if to purl}
+\keyrow{\textknit{a}}{Slip 2 as if to k2tog; knit 1; pass two slipped stitches over}{Slip 2 as if to SSK. Insert left needle through these two stitches \textbf{from right to left}. (This is similar to inserting the right needle as if to k2tog.) Remove right needle, then purl 3 stitches together.}
+\hrule\clearpage
+
+\setcolwidths{5\stitchwd}
+\keyrow{\textknit{\widedecrease{5}}}{Quadruple decrease: Slip 2 as to knit.
+*Pass 2nd stitch on left needle over 1st stitch, slip 1 as to purl, pass 2nd stitch on right needle over
+first stitch, return first stitch on right needle to left needle.* Repeat from * to * once, then purl 1 stitch (which now has had four other
+stitches passed over it).}
+{Quadruple decrease: Slip 3 as to purl, slip 2 as to knit. Return last 3 stitches
+to right needle. *Pass 2nd stitch on left needle over 1st stitch, slip 1 as to purl, pass 2nd stitch on right needle over
+first stitch, return first stitch on right needle to left needle.* Repeat from * to * once, then knit 1 stitch.}
+\hrule
+
+\clearpage
+
+\section{Cable Symbols}
+
+\ifdesigner
+
+This is a comprehensive list of the cable symbols available in the grid
+fonts; more non-grid cable symbols are possible. (A few examples are at the end of this document.)
+
+\medskip
+
+\fi
+
+% There are three different symbols for most of the cable crossings,
+% and two different symbols for most of the twist crossings.
+
+% These macros make it easy to change our keys to show more than one set of definitions.
+
+% Key showing two or three symbols
+%\newcommand\cableset[3]{\textknit{#1}\ifknitsymbol\else\par\vspace{3pt}\textknit{#2}\par\vspace{3pt}\textknit{#3}\fi}
+\newcommand\cableset[3]{\textknit{#1}\ifknitsymbol\else\hspace{3pt}\textknit{#2}\fi}
+\newcommand\twistset[2]{\textknit{#1}\ifknitsymbol\else\hspace{3pt}\textknit{#2}\fi}
+
+% Most basic key
+%\newcommand\cableset[3]{\textknit{#1}}
+%\newcommand\twistset[2]{\textknit{#1}}
+
+% Key with white cable symbols
+%\newcommand\cableset[3]{\textknit{#3}}
+%\newcommand\twistset[2]{\textknit{#1}}
+
+%\setcolwidths{4\stitchwd}
+\setcolwidths{8.5\stitchwd}
+\dblkeyrow{\cableset{kK}{kN}{kD}}{Slip 2 as if to knit 2 together. Return to left needle, then knit 2 (RS) or purl 2 (WS), (\textbf{not} together!) through back loop.}
+\dblkeyrow{\cableset{Kk}{Kn}{Kd}}{Slip 2 as if to SSK. Insert left needle through both slipped stitches from right to left, as if to k2tog. Remove right needle, then knit 2 (RS) or purl 2 (WS) through front loop.}
+\dblkeyrow{\twistset{pK}{pN}}{Slip 2 as if to knit 2 together. Return to left needle, then knit 1 through back loop, purl 1 through back loop. Or: Slip 1 to cable neeble and hold in back; knit 1; purl 1 from cable needle.}
+\dblkeyrow{\twistset{Kp}{Ko}}{Slip 2 as if to SSK. Insert left needle through both slipped stitches from right to left, as if to k2tog. Remove right needle, then purl 1, knit 1. Or: Slip 1 to cable neeble and hold in front; knit 1; purl 1 from cable needle.}
+\dblkeyrow{\textknit{pP}}{Slip 2 as if to knit 2 together. Return to left needle, then purl 2 (RS) or knit 2 (WS) through back loop.}
+\dblkeyrow{\textknit{Pp}}{Slip 2 as if to SSK. Insert left needle through both slipped stitches from right to left, as if to k2tog. Remove right needle, then purl 2 (RS) or knit 2 (WS) through front loop.}
+%
+\keyrow{\cableset{kKK}{kKN}{kKD}}{{Slip 1 to cable needle and hold in back; knit 2; knit 1 from cable needle}}{{Slip 2 to cable needle and hold in back; purl 1; purl 2 from cable needle}}
+\keyrow{\cableset{KKk}{KKn}{KKd}}{{Slip 2 to cable needle and hold in front; knit 1; knit 2 from cable needle}}{{Slip 1 to cable needle and hold in front; purl 2; purl 1 from cable needle}}
+\keyrow{\twistset{pKK}{pKN}}{{Slip 1 to cable needle and hold in back; knit 2; purl 1 from cable needle}}{{Slip 2 to cable needle and hold in back; knit 1; purl 2 from cable needle}}
+\keyrow{\twistset{KKp}{KKo}}{{Slip 2 to cable needle and hold in front; purl 1; knit 2 from cable needle}}{{Slip 1 to cable needle and hold in front; purl 2; knit 1 from cable needle}}
+\keyrow{\textknit{pPP}}{{Slip 1 to cable needle and hold in back; purl 2; purl 1 from cable needle}}{{Slip 2 to cable needle and hold in back; knit 1; knit 2 from cable needle}}
+\keyrow{\textknit{PPp}}{{Slip 2 to cable needle and hold in front; purl 1; knit 2 from cable needle}}{{Slip 1 to cable needle and hold in front; knit 2; knit 1 from cable needle}}
+%
+\keyrow{\cableset{kKKK}{kKKN}{kKKD}}{{Slip 1 to cable needle and hold in back; knit 3; knit 1 from cable needle}}{{Slip 3 to cable needle and hold in back; purl 1; purl 3 from cable needle}}
+\keyrow{\cableset{KKKk}{KKKn}{KKKd}}{{Slip 3 to cable needle and hold in front; knit 1; knit 3 from cable needle}}{{Slip 1 to cable needle and hold in front; purl 3; purl 1 from cable needle}}
+\keyrow{\twistset{pKKK}{pKKN}}{{Slip 1 to cable needle and hold in back; knit 3; purl 1 from cable needle}}{{Slip 3 to cable needle and hold in back; knit 1; purl 3 from cable needle}}
+\keyrow{\twistset{KKKp}{KKKo}}{{Slip 3 to cable needle and hold in front; purl 1; knit 3 from cable needle}}{{Slip 1 to cable needle and hold in front; purl 3; knit 1 from cable needle}}
+\keyrow{\textknit{pPPP}}{{Slip 1 to cable needle and hold in back; purl 3; purl 1 from cable needle}}{{Slip 3 to cable needle and hold in back; knit 1; knit 3 from cable needle}}
+\keyrow{\textknit{PPPp}}{{Slip 3 to cable needle and hold in front; purl 1; knit 3 from cable needle}}{{Slip 1 to cable needle and hold in front; knit 3; knit 1 from cable needle}}
+\hrule
+
+\clearpage
+
+\renewcommand\cableset[3]{\textknit{#1}}
+\renewcommand\twistset[2]{\textknit{#1}}
+\setcolwidths{5\stitchwd}
+\keyrow{\cableset{kkK}{kkN}{kkD}}{{Slip 2 to cable needle and hold in back; knit 1; knit 2 from cable needle}}{{Slip 1 to cable needle and hold in back; purl 2; purl 1 from cable needle}}
+\keyrow{\cableset{Kkk}{Kkn}{Kkd}}{{Slip 1 to cable needle and hold in front; knit 2; knit 1 from cable needle}}{{Slip 2 to cable needle and hold in front; purl 1; purl 2 from cable needle}}
+\keyrow{\twistset{ppK}{ppN}}{{Slip 2 to cable needle and hold in back; knit 1; purl 2 from cable needle}}{{Slip 1 to cable needle and hold in back; knit 2; purl 1 from cable needle}}
+\keyrow{\twistset{Kpp}{Kpo}}{{Slip 1 to cable needle and hold in front; purl 2; knit 1 from cable needle}}{{Slip 2 to cable needle and hold in front; purl 1; knit 2 from cable needle}}
+\keyrow{\textknit{ppP}}{{Slip 2 to cable needle and hold in back; purl 1; purl 2 from cable needle}}{{Slip 1 to cable needle and hold in back; knit 2; knit 1 from cable needle}}
+\keyrow{\textknit{Ppp}}{{Slip 1 to cable needle and hold in front; purl 2; knit 1 from cable needle}}{{Slip 2 to cable needle and hold in front; knit 1; knit 2 from cable needle}}
+%
+\keyrow{\cableset{kkKK}{kkKN}{kkKD}}{{Slip 2 to cable needle and hold in back; knit 2; knit 2 from cable needle}}{{Slip 2 to cable needle and hold in back; purl 2; purl 2 from cable needle}}
+\keyrow{\cableset{KKkk}{KKkn}{KKkd}}{{Slip 2 to cable needle and hold in front; knit 2; knit 2 from cable needle}}{{Slip 2 to cable needle and hold in front; purl 2; purl 2 from cable needle}}
+\dblkeyrow{\twistset{ppKK}{ppKN}}{Slip 2 to cable needle and hold in back; knit 2; purl 2 from cable needle}
+\dblkeyrow{\twistset{KKpp}{KKpo}}{Slip 2 to cable needle and hold in front; purl 2; knit 2 from cable needle}
+\keyrow{\textknit{ppPP}}{{Slip 2 to cable needle and hold in back; purl 2; purl 2 from cable needle}}{{Slip 2 to cable needle and hold in back; knit 2; knit 2 from cable needle}}
+\keyrow{\textknit{PPpp}}{{Slip 2 to cable needle and hold in front; purl 2; purl 2 from cable needle}}{{Slip 2 to cable needle and hold in front; knit 2; knit 2 from cable needle}}
+%
+\keyrow{\cableset{kkKKK}{kkKKN}{kkKKD}}{{Slip 2 to cable needle and hold in back; knit 3; knit 2 from cable needle}}{{Slip 3 to cable needle and hold in back; purl 2; purl 3 from cable needle}}
+\keyrow{\cableset{KKKkk}{KKKkn}{KKKkd}}{{Slip 3 to cable needle and hold in front; knit 2; knit 3 from cable needle}}{{Slip 2 to cable needle and hold in front; purl 3; purl 2 from cable needle}}
+\keyrow{\twistset{ppKKK}{ppKKN}}{{Slip 2 to cable needle and hold in back; knit 3; purl 2 from cable needle}}{{Slip 3 to cable needle and hold in back; knit 2; purl 3 from cable needle}}
+\keyrow{\twistset{KKKpp}{KKKpo}}{{Slip 3 to cable needle and hold in front; purl 2; knit 3 from cable needle}}{{Slip 2 to cable needle and hold in front; purl 3; knit 2 from cable needle}}
+\keyrow{\textknit{ppPPP}}{{Slip 2 to cable needle and hold in back; purl 3; purl 2 from cable needle}}{{Slip 3 to cable needle and hold in back; knit 2; knit 3 from cable needle}}
+\keyrow{\textknit{PPPpp}}{{Slip 3 to cable needle and hold in front; purl 2; knit 3 from cable needle}}{{Slip 2 to cable needle and hold in front; knit 3; knit 2 from cable needle}}
+%
+\hrule
+
+\clearpage
+
+\setcolwidths{6\stitchwd}
+\keyrow{\cableset{kkkK}{kkkN}{kkkD}}{{Slip 3 to cable needle and hold in back; knit 1; knit 3 from cable needle}}{{Slip 1 to cable needle and hold in back; purl 3; purl 1 from cable needle}}
+\keyrow{\cableset{Kkkk}{Kkkn}{Kkkd}}{{Slip 1 to cable needle and hold in front; knit 3; knit 1 from cable needle}}{{Slip 3 to cable needle and hold in front; purl 1; purl 3 from cable needle}}
+\keyrow{\twistset{pppK}{pppN}}{{Slip 3 to cable needle and hold in back; knit 1; purl 3 from cable needle}}{{Slip 1 to cable needle and hold in back; knit 3; purl 1 from cable needle}}
+\keyrow{\twistset{Kppp}{Kppo}}{{Slip 1 to cable needle and hold in front; purl 3; knit 1 from cable needle}}{{Slip 3 to cable needle and hold in front; purl 1; knit 3 from cable needle}}
+\keyrow{\textknit{pppP}}{{Slip 3 to cable needle and hold in back; purl 1; purl 3 from cable needle}}{{Slip 1 to cable needle and hold in back; knit 3; knit 1 from cable needle}}
+\keyrow{\textknit{Pppp}}{{Slip 1 to cable needle and hold in front; purl 3; knit 1 from cable needle}}{{Slip 3 to cable needle and hold in front; knit 1; knit 3 from cable needle}}
+%
+\keyrow{\cableset{kkkKK}{kkkKN}{kkkKD}}{{Slip 3 to cable needle and hold in back; knit 2; knit 3 from cable needle}}{{Slip 2 to cable needle and hold in back; purl 3; purl 2 from cable needle}}
+\keyrow{\cableset{KKkkk}{KKkkn}{KKkkd}}{{Slip 2 to cable needle and hold in front; knit 3; knit 2 from cable needle}}{{Slip 3 to cable needle and hold in front; purl 2; purl 3 from cable needle}}
+\keyrow{\twistset{pppKK}{pppKN}}{{Slip 3 to cable needle and hold in back; knit 2; purl 3 from cable needle}}{{Slip 2 to cable needle and hold in back; knit 3; purl 2 from cable needle}}
+\keyrow{\twistset{KKppp}{KKppo}}{{Slip 2 to cable needle and hold in front; purl 3; knit 2 from cable needle}}{{Slip 3 to cable needle and hold in front; purl 2; knit 3 from cable needle}}
+\keyrow{\textknit{pppPP}}{{Slip 3 to cable needle and hold in back; purl 2; purl 3 from cable needle}}{{Slip 2 to cable needle and hold in back; knit 3; knit 2 from cable needle}}
+\keyrow{\textknit{PPppp}}{{Slip 2 to cable needle and hold in front; purl 3; knit 2 from cable needle}}{{Slip 3 to cable needle and hold in front; knit 2; knit 3 from cable needle}}
+%
+\ifdim \stitchwd > \stitchht \else
+\keyrow{\cableset{kkkKKK}{kkkKKN}{kkkKKD}}{{Slip 3 to cable needle and hold in back; knit 3; knit 3 from cable needle}}{{Slip 3 to cable needle and hold in back; purl 3; purl 3 from cable needle}}
+\keyrow{\cableset{KKKkkk}{KKKkkn}{KKKkkd}}{{Slip 3 to cable needle and hold in front; knit 3; knit 3 from cable needle}}{{Slip 3 to cable needle and hold in front; purl 3; purl 3 from cable needle}}
+\dblkeyrow{\twistset{pppKKK}{pppKKN}}{Slip 3 to cable needle and hold in back; knit 3; purl 3 from cable needle}
+\dblkeyrow{\twistset{KKKppp}{KKKppo}}{Slip 3 to cable needle and hold in front; purl 3; knit 3 from cable needle}
+\keyrow{\textknit{pppPPP}}{{Slip 3 to cable needle and hold in back; purl 3; purl 3 from cable needle}}{{Slip 3 to cable needle and hold in back; knit 3; knit 3 from cable needle}}
+\keyrow{\textknit{PPPppp}}{{Slip 3 to cable needle and hold in front; purl 3; purl 3 from cable needle}}{{Slip 3 to cable needle and hold in front; knit 3; knit 3 from cable needle}}
+\fi
+\hrule
+
+\clearpage
+
+\setcolwidths{6\stitchwd}
+%\newcommand\cablepair[2]{\textknit{#1}}
+\newcommand\cablepair[2]{\textknit{#1}\ifknitsymbol\else \par\vspace{7pt}\par\textknit{#2}\fi}
+
+\noindent
+\keyrow{\cablepair{Kpk}{Kpd}}{
+\emph{Easy method}: Slip 1 to cable needle and hold in front, knit 1, purl 1, and then knit 1 from cable needle. \par
+\emph{Better-looking method}:
+Slip 1 to CN and hold to front.
+Slip 2 as if to knit 2 together, return to left needle, then knit 1 through back loop, purl 1 through back loop. Knit 1 from cable needle.}
+{\emph{Easy method}: Slip 2 to cable needle and hold in front, purl 1, and then knit 1, purl 1 from cable needle. \par
+\emph{Better-looking method}:
+Slip 2 to CN and hold to front. Purl 1. Rotate the cable needle through a half-turn (180 degrees) by pulling the left tip towards you;
+this will switch the two stitches with the left stitch passing in front. Knit 1 through back loop, purl 1 through back loop.}
+\keyrow{\cablepair{KKpkk}{KKpkd}}
+{\emph{Easy method}: Slip 2 to cable needle and hold in front, knit 2, purl 1, and then knit 2 from cable needle. \par
+\emph{Better-looking method}:
+Slip 2 to CN and hold to front.
+Slip 1 to a second CN and hold in back.
+Knit 2, purl 1 from the second (back) CN, then knit 2 from the first (front) CN.}
+{\emph{Easy method}: Slip 3 to cable needle and hold in front, purl 2, and then knit 1, purl 2 from cable needle. \par
+\emph{Better-looking method}:
+Slip 3 to CN and hold to front. Purl 2. Slip leftmost stitch from CN back to left needle and move CN to the back.
+Knit 1 from left needle, then purl 2 from CN.}
+\ifdim \stitchwd > \stitchht \else
+\keyrow{\cablepair{KKppkk}{KKppkd}}
+{\emph{Easy method}: Slip 2 to cable needle and hold in front, knit 2, purl 2, and then knit 2 from cable needle. \par
+\emph{Better-looking method}:
+Slip 2 to CN and hold to front.
+Slip 2 to a second CN and hold in back.
+Knit 2, purl 2 from the second (back) CN, then knit 2 from the first (front) CN.}
+{\emph{Easy method}: Slip 4 to cable needle and hold in front, purl 2, and then knit 2, purl 2 from cable needle. \par
+\emph{Better-looking method}:
+Slip 4 to CN and hold to front. Purl 2. Slip leftmost 2 stitches from CN back to left needle and move CN to the back.
+Knit 2 from left needle, then purl 2 from CN.}
+\fi
+\keyrow{\cablepair{kpK}{kpD}}
+{\emph{Easy method}: Slip 2 to CN and hold in back, knit 1, then purl 1, knit 1 from CN. \par
+\emph{Better-looking method}: Slip 2 to CN and hold in back, knit 1.
+Rotate the cable needle through a half-turn (180 degrees) by pulling the right tip towards you;
+this will switch the two stitches with the right stitch passing in front. Purl 1 through back loop, knit 1 through back loop. }
+{\emph{Easy method}: Slip 1 to CN and hold in back, purl 1, knit 1, then purl 1 from CN. \par
+\emph{Better-looking method}:
+Slip 1 to CN and hold to back.
+Slip 2 as if to SSK, insert left needle through slipped stitches from right to left, remove right needle,
+purl 1, knit 1. Purl 1 from CN.}
+\keyrow{\cablepair{kkpKK}{kkpKD}}
+{\emph{Easy method}: Slip 3 to CN and hold in back, knit 2, then purl 1, knit 2 from CN. \par
+\emph{Better-looking method}:
+Slip 3 to CN and hold in back, knit 2.
+Slip leftmost stitch from CN back to left needle and move CN to the front.
+Purl 1 from left needle, then knit 2 from CN.}
+{\emph{Easy method}: Slip 2 to CN and hold in back, purl 2, knit 1, then purl 2 from CN. \par
+\emph{Better-looking method}: Slip 2 to CN and hold in back. Slip 1 to a second CN and hold in front.
+Purl 2 from left needle, knit 1 from second (front) CN, then purl 2 from first (back) CN.}
+\ifdim \stitchwd > \stitchht \else
+\keyrow{\cablepair{kkppKK}{kkppKD}}
+{\emph{Easy method}: Slip 4 to CN and hold in back, knit 2, then purl 2, knit 2 from CN. \par
+\emph{Better-looking method}:
+Slip 4 to CN and hold in back, knit 2.
+Slip leftmost 2 stitches from CN back to left needle and move CN to the front.
+Purl 2 from left needle, then knit 2 from CN.}
+{\emph{Easy method}: Slip 2 to CN and hold in back, purl 2, knit 2, then purl 2 from CN. \par
+\emph{Better-looking method}: Slip 2 to CN and hold in back. Slip 2 to a second CN and hold in front.
+Purl 2 from left needle, knit 2 from second (front) CN, then purl 2 from first (back) CN.}
+\fi
+\hrule
+
+\clearpage
+
+\knitnogrid
+
+\keyrow{\textknit{peKK}}{{Slip 1 to cable needle and hold in back; knit 2; make 1 purlwise (by picking up any strand of yarn which is convenient); purl 1 from cable needle}}{{Slip 2 to cable needle and hold in back; knit 1; make 1 knitwise; purl 2 from cable needle}}
+
+\keyrow{\textknit{pkKK}}{{Slip 2 to cable needle and hold in back; knit 2; knit 1 from cable needle, purl 1 from cable needle}}{{Slip 2 to cable needle and hold in back; knit 1; purl 1; purl 2 from cable needle}}
+\keyrow{\textknit{kpKK}}{{Slip 2 to cable needle and hold in back; knit 2; purl 1 from cable needle, knit 1 from cable needle}}{{Slip 2 to cable needle and hold in back; purl 1; knit 1; purl 2 from cable needle}}
+
+\hrule
+
+\end{fullpages}
+
+\end{document}
+
+
+
+
diff --git a/fonts/knitting/docs/knitting-doc.pdf b/fonts/knitting/docs/knitting-doc.pdf
new file mode 100644
index 0000000000..c721277ffe
--- /dev/null
+++ b/fonts/knitting/docs/knitting-doc.pdf
Binary files differ
diff --git a/fonts/knitting/docs/knitting-doc.tex b/fonts/knitting/docs/knitting-doc.tex
new file mode 100644
index 0000000000..da025bef97
--- /dev/null
+++ b/fonts/knitting/docs/knitting-doc.tex
@@ -0,0 +1,1597 @@
+% knitting-doc.tex
+%
+% Provides documentation for the knitting package
+%
+% author: Ariel Barton
+%
+% Copyright Ariel Barton, 2010-2019
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3 of this license or (at your option) any
+% later version.
+% The latest version of the license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2003/06/01 or later.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The complete list of files considered part of this work is in
+% the file `knitting-doc.pdf' and later in this file.
+%
+% Date: 2019/04/03
+%
+% Version: 3
+
+\documentclass[draft]{amsart}
+% Do not remove the [draft] option; we need it to explain something
+% in Section 5.
+
+\usepackage{knitting}
+
+\raggedbottom
+
+\definecolor{gray}{gray}{0.8}
+\definecolor{lightblue}{rgb}{0.5,0.5,1}
+
+\usepackage{color,verbatim}
+\hyphenation{auto-number-chart}
+
+\usepackage[draft=false,pdfborder={0 0 0}]{hyperref}
+\DeclareRobustCommand{\SkipTocEntry}[5]{}
+
+\title{The \textsf{knitting} package}
+
+\author{Ariel Barton}
+
+\renewcommand\sectionautorefname{Section}
+\renewcommand\subsectionautorefname{Section}
+
+\begin{document}
+
+\maketitle
+
+\tableofcontents
+
+%\listoffigures
+
+%\listoftables
+
+This package was written to make knitting charts using \LaTeX\ or plain
+\TeX. It consists of several PostScript fonts of knitting symbols,
+font-support documents, and packages of commands.
+
+Here's an example of the code and output:
+\begin{center}
+\begin{minipage}[b]{108pt}
+\obeylines\parindent=0pt\tt
+\verb|\chart{|
+=CCppggKKCCppggKK=
+===KKkk====KKkk===
+=ggKKCCppggKKCCpp=
+=--====kkKK====--=
+=CCppggKKCCppggKK=
+===KKkk====KKkk===
+=ggKKCCppggKKCCpp=
+\verb|}|
+\end{minipage}
+\quad
+\begin{minipage}[t]{220pt}
+\chart{
+\nonumber``
+=CCppggKKCCppggKK=
+===KKkk====KKkk===
+=ggKKCCppggKKCCpp=
+=--====kkKK====--=
+=CCppggKKCCppggKK=
+===KKkk====KKkk===
+=ggKKCCppggKKCCpp=
+\nonumber``
+}
+
+\end{minipage}
+\end{center}
+
+More examples may be found in the file \texttt{knitexamples.tex} and in
+later sections of this document.
+
+\section{License}
+
+This work (the \textsf{knitting} package) consists of all files listed
+in \autoref{sec:manifest}. It is copyright Ariel Barton, 2011--2019.
+
+This work may be distributed and/or modified under the
+conditions of the \LaTeX\ Project Public License, either
+version 1.3 of this license or (at your option) any
+later version.
+The latest version of the license is in
+\begin{quote}
+\href {http://www.latex-project.org/lppl.txt}
+{http://www.latex-project.org/lppl.txt}
+\end{quote}
+and version 1.3 or later is part of all distributions of
+\LaTeX\ version 2003/06/01 or later.
+
+This work has the LPPL maintenance status ``author-maintained''.
+
+The \LaTeX\ project license above gives the conditions under which you
+may redistribute or modify the fonts and files listed in
+\autoref{sec:manifest}. This license (loosely speaking) allows you to
+pass around copies of the package provided you redistribute it in its
+entirety. In addition, any part, no matter how large or small, of the
+files \texttt{knitkey.tex} and \texttt{knitexamples.tex}, \emph{and
+these two files only}, may be freely copied, verbatim or modified, into
+any document you write, without restriction.
+
+As per the conditions of the LPPL, no restrictions are placed on running
+this package (i.e., compiling \LaTeX\ documents that use this package).
+In particular, no restrictions are placed by the package author on
+selling or distributing patterns typeset using this package. Not
+all \LaTeX\ packages may be used in commercial products; if you use
+other packages to produce a PDF or paper document, you must check their
+documentation to see if you are allowed to sell the result.
+
+Suggestions and questions may be sent to the package author at
+\texttt{origamist@\allowbreak gmail.com}.
+
+\section{Installation}
+
+This package involves many supporting files. They should be put in
+appropriate places. Your distribution of \TeX\ may be able to do this
+for you. If it can't, you'll have to place them yourself.
+
+Most modern \TeX\ distributions have a folder, usually named
+\texttt{texmf}, where you can store supporting files for the packages
+you add yourself.\footnote{If you're using Mac\TeX, this folder should
+be \texttt{Users\slash username\slash Library\slash texmf}. If it isn't
+there, create it.
+
+If you're using MiK\TeX, it is possible to designate any folder you like
+as the root of your local tree, that is, the place where you store
+supporting files. Instructions may be found at
+\href{http://docs.miktex.org/manual/localadditions.html\#id573803}
+{\texttt{http:/\slash docs.miktex.org\slash manual\slash localadditions.html\allowbreak\#id573803}}
+or through the manual which should have come with MiKTeX.
+
+Any time you add supporting files to a local MiKTeX root, you have to
+refresh the file name database; see
+\href{http://docs.miktex.org/manual/configuring.html\#fndbupdate}
+{\texttt{http:/\slash docs.miktex.org\slash manual\slash configuring.html\allowbreak\#fndbupdate}}. }
+All supporting files should be sorted into specific subfolders of
+\texttt{texmf}. The sorting rules are:
+\begin{itemize}
+\item \texttt{.fd} and \texttt{.sty} files go in \verb.texmf/tex/latex.
+\item \texttt{.tex} files go in \verb.texmf/tex/plain.
+\item \texttt{.tfm} files go in \verb.texmf/fonts/tfm.
+%\item \texttt{.vf} files go in \verb.texmf/fonts/vf.
+\item \texttt{.pfb} files go in \verb.texmf/fonts/type1.
+\item \texttt{.map} files go in \verb.texmf/fonts/map.
+%\item \texttt{.enc} files go in \verb.texmf/fonts/enc.
+\item \texttt{.mf} files go in \verb.texmf/fonts/source.
+\item \texttt{.afm} files go in \verb.texmf/fonts/afm.
+%\item \texttt{.ttf} files go in \verb.texmf/fonts/truetype.
+\end{itemize}
+In all cases they can go in sub-subfolders; for example, \texttt{.tfm}
+files may be put into \texttt{texmf/fonts\slash tfm/knit} and not
+\texttt{texmf/fonts/tfm}.
+
+If you're using some other distribution, you may have some entirely
+different place where you can put these files. Your distribution's
+documentation should tell you where.
+
+If you really can't figure out where to put the files, if you're in a
+hurry, or if you're using someone else's computer and don't want to mess
+with their \texttt{texmf} folder, just dump every file you think you
+might need into the same folder as the document that uses the package.
+(This is probably all the \texttt{.tfm}, \texttt{.pfb}, and
+\texttt{.map} files, plus the \texttt{.sty} and \texttt{.fd} files if
+you are using \LaTeX\ or the \texttt{.tex} file if you are using plain
+\TeX.)
+
+You aren't done! \TeX\ now knows everything it needs to do its job and
+\emph{arrange} the characters in the font, and so your document will
+compile, but the postprocessing software (your DVI viewer, your printer,
+or the PDF files that pdf\/\TeX\ produces) don't know about the fonts
+themselves.
+
+There's a simple way to tell pdf\/\TeX\ about the fonts: use the command
+\begin{quote}\verb|\pdfmapfile{+knitfont.map}|\end{quote}
+This map line can go in
+\texttt{knitting.sty} or the file that uses the package.
+
+%You may need to downoad the file \texttt{T1-WGL4.enc}. I got this file
+% from
+%\begin{quote}\raggedright
+%\href{http://ctan.binkerton.com/info/german/MiKTeX-WinEdt-TrueType-Anleitung/T1-WGL4.enc}
+%{\texttt{http://ctan.binkerton.com/info/german/MiKTeX-WinEdt-\allowbreak TrueType-Anleitung\slash T1-WGL4.enc}}
+%\end{quote}
+%It goes in \texttt{texmf/fonts/enc}.
+
+The advantage to this is that it involves nothing outside of the
+document you are compiling.
+On the other hand, it can be annoying to have to say that everywhere.
+And this doesn't work at all if you decide you want to produce DVI files
+and use a postprocessor such as \textsf{dvips}.
+
+With Mac\TeX, I can
+cause \textsf{dvips}, \textsf{dvipdfm}, and pdf\/\TeX\ to know about
+these fonts by opening a Terminal window (command prompt) and typing
+{\tt updmap -{}-enable Map=knitfont.map}.
+
+With MiK\TeX, I need to say \texttt{initexmf -{}-edit-config-file
+updmap} and then add the line \texttt{Map knitfont.map} to the file
+which opens, then run \texttt{updmap} from the command line.
+
+Something similar should work with most distributions; it is always wise
+to check and see what your distribution's documentation says about
+\texttt{updmap} before using it.
+
+\section{Using the package}
+
+Here is a minimal \LaTeX\ document that will produce a knitting pattern with a chart:
+
+\bigskip
+
+\begin{minipage}{0.45\textwidth}
+\begin{verbatim}
+\documentclass{article}
+\usepackage{knitting}
+\begin{document}
+Here is my chart:
+\chart{
+--OAO--
+<O---O>
+-<O-O>-
+}
+\end{document}
+\end{verbatim}
+\end{minipage}
+\hfill
+\begin{minipage}{0.45\textwidth}
+Here is my chart:
+\chart{
+--OAO--
+<O---O>
+-<O-O>-
+}
+\end{minipage}
+
+\bigskip
+
+Here is a minimal plain \TeX\ document that will do the same thing:
+
+\bigskip
+
+\begin{minipage}{0.45\textwidth}
+\begin{verbatim}
+\input knitting
+Here is my chart:
+\chart{
+--OAO--
+<O---O>
+-<O-O>-
+}
+\bye
+\end{verbatim}
+\end{minipage}
+\hfill
+\begin{minipage}{0.45\textwidth}
+Here is my chart:
+\chart{
+--OAO--
+<O---O>
+-<O-O>-
+}
+\end{minipage}
+
+\bigskip
+
+\begin{figure}
+\caption{The normal symbols}\label{fig:symbols}
+\newcommand\knitrow[1]{\texttt{#1}&\knitgrid\textknit{#1}&\knitnogrid \textknit{#1}\\}
+\newcommand\displaypair[2]{\texttt{#2}&\knitgrid\textknit{#1}&\knitnogrid \textknit{#1}\\}
+\begin{tabular}[t]{|ccc|}
+\hline
+\knitrow{-}
+\knitrow{=}
+\knitrow{<}
+\knitrow{>}
+\knitrow{;}
+\knitrow{:}
+\knitrow{L}
+\knitrow{R}
+\knitrow{l}
+\knitrow{r}
+\knitrow{A}
+\knitrow{a}
+\knitrow{!}
+\knitrow{2}
+\knitrow{3}
+\knitrow{4}
+\knitrow{5}
+\knitrow{m}
+\knitrow{M}
+\knitrow{O}
+\knitrow{*}
+\hline
+\end{tabular}
+\hfill
+\begin{tabular}[t]{|ccc|}
+\hline
+\knitrow{t}
+\knitrow{T}
+\knitrow{x}
+\knitrow{X}
+\knitrow{b}
+\knitrow{B}
+\knitrow{q}
+\knitrow{Q}
+\knitrow{v}
+\knitrow{V}
+\knitrow{y}
+\knitrow{u}
+\knitrow{0}
+\knitrow{\#}
+\knitrow{w}
+\knitrow{W}
+\knitrow{E}
+\knitrow{\&}
+\knitrow{Y}
+\knitrow{6}
+\knitrow{@}
+%\knitrow{0}
+\hline
+\end{tabular}
+\hfill
+\begin{tabular}[t]{|ccc|}
+\hline
+\knitrow{(}
+\knitrow{)}
+\knitrow{i}
+\knitrow{I}
+\knitrow{j}
+\knitrow{J}
+\knitrow{h}
+\knitrow{H}
+\knitrow{s}
+\knitrow{S}
+\knitrow{[}
+\knitrow{]}
+\knitrow{z}
+\knitrow{Z}
+\knitrow{9}
+\knitrow{U}
+\knitrow{f}
+\knitrow{F}
+\knitrow{7}
+\knitrow{8}
+\knitrow{"}
+\hline
+\end{tabular}
+\hfill
+\begin{tabular}[t]{|ccc|}
+\hline
+\knitrow{""}
+\knitrow{,.,}
+\knitrow{'`'}
+\knitrow{111}
+\knitrow{???}
+\knitrow{+++}
+\knitrow{+/+}
+\displaypair{\|}{\char`\\|}
+\displaypair{\!}{\char`\\!}
+\knitrow{kK}
+\knitrow{pK}
+\displaypair{\bobble 5}{\char`\\\char`\@5}
+\displaypair{\narrowincrease 5}{\char`\\<5}
+\displaypair{\narrowdecrease 5}{\char`\\>5}
+\displaypair{\pnarrowincrease 5}{\char`\\[5}
+\displaypair{\pnarrowdecrease 5}{\char`\\]5}
+\displaypair{\wideincrease{4}}{}
+\displaypair{\widedecrease{4}}{}
+&\knitgrid\textknit{\knitbox{3}{3}}&\knitmixed\textknit{\Knit{3}{3}}\\
+\hline
+\multicolumn{3}{p{1.85in}}{\rule{0pt}{10pt}See \autoref{sec:fancystitches} for the commands for the last eight rows.}
+\end{tabular}
+\end{figure}
+
+To draw your own chart, you first need access to various knitting symbols. They are produced inside charts using normal letters: \texttt{A} produces \textknit{A}, \texttt{O} produces \textknit{O}, and so on. An almost-complete typing key is provided in \autoref{fig:symbols}. The file \texttt{knitkey.tex} contains my suggested meanings for all the available symbols.
+
+Ways to modify these symbols are described in \autoref{sec:fancystitches}.
+
+Some commands to change the overall appearance of the charts or the document are given in \autoref{sec:fourfonts}.
+
+Sometimes a part of a knitting chart (usually a repeat) should be outlined; the machinery to do so is described in \autoref{sec:outline}.
+
+Some miscellaneous commands, including control over the various grays and colors used in knitting charts, are described in \autoref{sec:color}. The behavior of spaces and carriage returns in the input is described in \autoref{sec:spacein}.
+
+Cable symbols such as {\knitgrid\textknit{Kk} or \knitmixed\textknit{Kk}} are complicated; they are described in \autoref{sec:cables}.
+
+Finally, \textsf{knitting} will count rows and stitches for you automatically; the machinery to do so is described in
+\autoref{sec:rowcount} and
+\autoref{sec:counting}.
+
+
+These sections describe the commands defined by \textsf{knitting}.
+Many of these commands (indicated
+with $\star$s and not bullets) only work inside of a knitting chart, to
+avoid conflicts: \verb|\overline|, for example, already has a meaning
+$\overline{xy}$ in math mode.
+
+The command \verb|\chart| is fairly complicated, and as such, may be prone to strange behavior when used with other commands. An alternative command, \verb|\textknit|, may be used inside of, for example, a tabular environment with less risk of unexpected behavior. This is useful for writing chart keys.
+
+Most of the commands labeled with $\star$ do \emph{not} work in concert
+with \verb|\textknit|. Also, \textknit{\#} and
+\textknit{\&} must be accessed with \verb|\textknit{\#}| and
+\verb|\textknit{\&}|, not \verb|\textknit{#}| and \verb|\textknit{&}|.
+(Unadorned \verb|#| and~\verb|&| may be used with \verb|\chart|.)
+
+
+
+\subsection{Stitch symbols produced or modified with commands}
+\label{sec:fancystitches}
+
+You can generate new symbols with the command \verb|\knitbox|: \textknit{\knitbox{a}{1}} \textknit{\knitbox{Cable 6 left}{6}}. A great many strange symbols are available by using math symbols:
+\begin{quote}
+\verb|\knitbox{$\vspace{-1.5pt}\heartsuit$}{1}| \chart{\knitbox{$\vspace{-1.5pt}\heartsuit$}{1}}. \end{quote}
+However, these may look a little incongruous with the rest of the font, so use with care.
+
+Here are some other commands that produce particular symbols:
+
+\medskip
+
+\newcommand\myminitable[1]{\begin{tabular}[t]{@{}lc@{}}#1
+\end{tabular}}
+
+
+\noindent
+\begin{tabular}{lcc}
+Command&\texttt{\char`\\chart}-only shorthand&Symbol\\
+\texttt{\char`\\wideincrease\char`\{3\char`\}}& & \textknit{\wideincrease{3}}\\
+\texttt{\char`\\widedecrease\char`\{3\char`\}}& & \textknit{\widedecrease{3}}\\
+\texttt{\char`\\bobble\char`\{3\char`\}}&\verb|\@| & \textknit{\bobble{3}}\\
+\texttt{\char`\\narrowincrease\char`\{3\char`\}}&\verb|\<| & \textknit{\narrowincrease{3}}\\
+\texttt{\char`\\narrowdecrease\char`\{3\char`\}}&\verb|\>| & \textknit{\narrowdecrease{3}}\\
+\texttt{\char`\\pnarrowincrease\char`\{3\char`\}}&\verb|\[| & \textknit{\pnarrowincrease{3}}\\
+\texttt{\char`\\pnarrowdecrease\char`\{3\char`\}}&\verb|\]| & \textknit{\pnarrowdecrease{3}}\\
+& $\sim$& Empty space
+\end{tabular}
+
+\medskip
+
+The arguments to \verb|\wideincrease| and \verb|\widedecrease| must be numbers; they are the width (in stitches). The arguments to \verb|\bobble| and so on may be any text (although you will probably use numbers). The \texttt{\char`\\chart}-only shorthand may be used inside \verb|\chart|s but not inside \verb|\textknit|.
+
+The $\sim$ should be used on the edges of non-rectangular charts:
+\bigskip
+
+\begin{minipage}{0.45\textwidth}
+\begin{verbatim}
+====
+~===
+~~==
+~~~=
+\end{verbatim}
+\end{minipage}
+\hfill
+\begin{minipage}{0.45\textwidth}
+\chart{
+====
+~===
+~~==
+~~~=
+}
+\end{minipage}
+
+\bigskip
+You can also use $\sim$ inside a chart, although \verb|`|, \verb|'| or \verb|.| may be better choices. (Do not use $\sim$ on its own line; if you need a blank line in a cable chart, use~\verb|`|.)
+
+Here are some commands that modify or reaarrange existing symbols in odd ways:
+
+\begin{itemize}
+
+\item \verb|\purlbackground|. I use a gray background to indicate simple purls, and also the purl version of more complicated stitches: \textknit{<} for slip, slip, knit, and \textknit{;} for purl 2 together. You can get \textknit{3} instead of \textknit{A} by typing~\texttt{3} instead of~\texttt{A}, but I didn't have space to provide a purl version of every symbol; so the only way to get \textknit{\purlbackground{r}} is with \verb|\purlbackground{r}|.
+
+\item \verb|\widesymbol| places a symbol or sequence of symbols in a box of a given width: {\knitgrid \verb|\widesymbol{W}{2}| \textknit{\widesymbol{W}{2}}}. In other words, \verb|\widesymbol| behaves like \verb|\knitbox|, but typesets its first argument using the knit symbol font rather than a Roman font.
+
+\item \verb|\cableleft| and \verb|\cableright| will produce the most general possible cable symbols. While there are simple methods to get {\knitnogrid \textknit{kkKK}} (see \autoref{sec:cables}), these let you get such obscure symbols as \textknit{\cableright{*}{-Q-}} or even (in concert with \verb|\bobble| and \verb|\knitbox|) \textknit{\cableleft{\narrowincrease{3}\knitbox{knit}{2}}{\purlbox{purl}{2}\bobble{3}}}. \verb|\cableforeground| and \verb|\cablebackground| may be used for similar effects.
+
+\end{itemize}
+
+\noindent
+And here are some commands designed to deal with long sequences of knits and purls in a chart, although \verb|\knitbox| can be used to generate other symbols:
+
+\begin{itemize}
+
+\item \verb|\knit| and \verb|\purl|. These macros take one argument each and type out that many plain knit or plain purl symbols.
+
+\item \verb|\Knit|, \verb|\Purl|, \verb|\knitbox|, \verb|\purlbox|. These macros were designed to produce appropriate shorthand for ``Knit or purl 12 stitches, regardless of how many are actually shown''. The first argument is text to appear inside the box; the second is the desired width of the box (in units of one stitch).
+
+They look like this:
+\begin{quote}\raggedright
+\knitgrid
+\verb|\knitgrid|\\
+\verb|\Knit{12}{5}| \textknit{\Knit{12}{5}}
+\verb|\knitbox{12}{5}| \textknit{\knitbox{12}{5}}\\
+\verb|\Purl{12}{5}| \textknit{\Purl{12}{5}}
+\verb|\purlbox{12}{5}| \textknit{\purlbox{12}{5}}
+\knitmixed
+\verb|\knitmixed|\\
+\verb|\Knit{12}{5}| \textknit{\Knit{12}{5}}
+\verb|\knitbox{12}{5}| \textknit{\knitbox{12}{5}}\\
+\verb|\Purl{12}{5}| \textknit{\Purl{12}{5}}
+\verb|\purlbox{12}{5}| \textknit{\purlbox{12}{5}}
+\knitnogrid
+\verb|\knitnogrid|\\
+\verb|\Knit{12}{5}| \textknit{\Knit{12}{5}}
+\verb|\knitbox{12}{5}| \textknit{\knitbox{12}{5}}\\
+\verb|\Purl{12}{5}| \textknit{\Purl{12}{5}}
+\verb|\purlbox{12}{5}| \textknit{\purlbox{12}{5}}
+\end{quote}
+
+Normally, the first argument is centered inside the box. However, you can offset the label with an optional first argument. This is the displacement to the right in half-stitches; to get a displacement to the left, use negative numbers.
+
+If you want to make these characters more obvious, you can change the colors for the knit and purl boxes (and the generated {\knitnogrid \textknit{=}s and \textknit{-}s}) by redefining the commands \verb|\knitboxforeground|, \verb|\purlboxforeground|, \verb|\knitboxbackground|, \verb|\purlboxbackground|; by default, they are blank and \verb|\color{purlgray}| (or \verb|\purlgray|).
+
+\begin{quote}\raggedright
+\knitnogrid
+\verb?\definecolor{purlboxbg}{gray}{0.57}?\\
+\verb?\definecolor{purlboxfg}{gray}{0.2}?\\
+\verb?\renewcommand\purlboxbackground{\color{purlboxbg}}?\\
+\verb?\renewcommand\purlboxforeground{\color{purlboxfg}}?\\
+\verb?\textknit{Kp\Purl[-1]{12}{6}}?
+\definecolor{purlboxbg}{gray}{0.57}
+\definecolor{purlboxfg}{gray}{0.2}
+\renewcommand\purlboxbackground{\color{purlboxbg}}
+\renewcommand\purlboxforeground{\color{purlboxfg}}
+\textknit{Kp\Purl[-1]{12}{6}}
+\end{quote}
+
+\end{itemize}
+
+\subsection[Overall appearance]{The four knitting fonts and other commands affecting overall appearance}
+
+\label{sec:fourfonts}
+\begin{itemize}
+
+\item There are four available knitting fonts. They are selected with
+the commands \verb|\knitgrid|, \verb|\knitnogrid|, \verb|\knitwide|,
+\verb|\knitmixed|. These commands should be used outside the chart they
+are to affect. See \autoref{fig:fourfonts} or the end of this section for a discussion of when each
+font should be used.
+
+\item In \LaTeX, you can change the sizes of the chart symbols with the
+usual commands \verb|\small|, \verb|\large|, etc.
+
+In plain \TeX, use the command \verb|\changeknitsize|, which takes one
+argument (the desired size). After \verb|\changeknitsize{10pt}| (the
+default size), five lines of a knitting chart will take up as much
+vertical space as five lines of 10-point text. This means that chart
+cells are 12 (not 10) points tall.
+
+\item The package option \verb|chartsonly| (\LaTeX) or the command
+\verb|\chartsonly| (plain \TeX) causes charts to be typeset in small PDF
+files which can be easily included in other documents, or converted to
+image files for use on a webpage.
+
+If you would also like to bundle your chart key into a little PDF, you
+can do it with the environment \verb|smallpage| (\LaTeX) or
+\verb|\smallpage| and \verb|\endsmallpage| (plain \TeX).
+
+The charts will automatically be the right width. The pages you generate
+with \verb|smallpage| will be the natural width of their contents; this
+is usually \verb|\textwidth| (\LaTeX) or \verb|\hsize| (plain \TeX).
+
+For some reason, \verb|smallpage| won't work if your small page only has
+one line. Also, your PDF viewer may cut off a few pixels around the
+edges.
+
+This command doesn't work with dvi-\TeX; this is a pdf\/\TeX\ command
+only.
+
+\item \texttt{fullpages}. Changing page dimensions mid-document in
+\LaTeX\ is hard, but a knitting pattern writer might want several pages
+of instructions with the usual large \LaTeX\ margins followed by several
+pages of charts with smaller margins. The environment \texttt{fullpages}
+does this. (Changing margins in plain \TeX\ is easy enough that
+\texttt{knitting.tex} has no special commands for it.)
+
+The \textsf{geometry} package now has the ability to change page
+dimensions mid-document, which affords much more flexibility than the
+\texttt{fullpages} environment; the \texttt{fullpages} environment is
+retained only for reasons of backwards compatibility.
+
+\end{itemize}
+
+\begin{figure}
+\caption{Suggested use of the fonts}
+\label{fig:fourfonts}
+\medskip
+\small
+\begin{tabular}[b]{lcp{220pt}}
+Font & Example & Suggested use \\
+\texttt{\char`\\knitgrid} & \knitgrid \textknit{A-Kp-} & Most simple patterns\\
+\texttt{\char`\\knitwide} & \knitwide \textknit{AKp-} & Colorwork\\
+\texttt{\char`\\knitmixed} & \knitmixed \textknit{A-Kp-} & Patterns with complicated cables; patterns that use \texttt{\char`\\Knit} and \texttt{\char`\\Purl} to deal with altered stitch counts \\
+\texttt{\char`\\knitnogrid} & \knitnogrid \textknit{A-Kp-} & Patterns that use empty squares (``no stitch'' symbols) to deal with altered stitch counts\\
+\end{tabular}
+\end{figure}
+
+
+The suggested uses of the four knitting fonts are summarized in \autoref{fig:fourfonts}.
+I prefer to draw most charts with \texttt{\char`\\knitgrid}. However, there are some situations where each of the other four fonts is more useful.
+
+The cells in the \texttt{\char`\\knitwide} fonts are the approximate dimensions of a knit stitch, so a colorwork chart done using the \texttt{\char`\\knitwide} font will look more like the finished piece than a colorwork chart done using \texttt{\char`\\knitgrid}.
+However, if a chart does not display wrong-side rows, the chart will not have the same proportions as the finished result. Also, lace is often blocked severely, and cables pull in. Thus, such charts will not have the same proportions as the finished piece, even if drawn with \texttt{\char`\\knitwide}; \texttt{\char`\\knitgrid} is probably a better choice.
+
+The \texttt{\char`\\knitgrid} cables look better than the \texttt{\char`\\knitnogrid} cables; however, wide cables, as well as cables involving increases, decreases, ribbing, and so on, can be expressed much more clearly with \texttt{\char`\\knitnogrid} or \texttt{\char`\\knitmixed}.
+
+Finally, many knitting patterns exist that have more stitches in some rows than in others. This is usually expressed by using special ``no stitch'' symbols:
+
+\bigskip
+
+\noindent
+\begin{minipage}[t]{60pt}
+\knitnogrid
+\chart{
+-.A.-
+-----
+-.w.-}
+\end{minipage}
+\hfill
+\begin{minipage}[t]{60pt}
+\knitmixed
+\chart{
+-.A.-
+-----
+-.w.-}
+\end{minipage}
+\hfill
+\begin{minipage}[t]{60pt}
+\knitgrid
+\chart{
+-.A.-
+-----
+-.w.-}
+\end{minipage}
+
+\bigskip
+
+It is my feeling that the empty gaps of \texttt{\char`\\knitnogrid} are the clearest way to express this, and thus \texttt{\char`\\knitnogrid} should be preferred in charts that involve ``no stitch'' blocks.
+
+However, in some patterns, we can omit knit or purl symbols to keep the chart the same width. This is best done using \texttt{\char`\\purlbox} or \texttt{\char`\\Purl}:
+
+\bigskip
+
+\noindent
+\begin{minipage}[t]{108pt}
+\knitnogrid
+\chart{
+====A====
+\purlbox{4}{3}---\purlbox{4}{3}
+====w====}
+\end{minipage}
+\hfill
+\begin{minipage}[t]{108pt}
+\knitmixed
+\chart{
+====A====
+\Purl{4}{3}---\Purl{4}{3}
+====w====}
+\end{minipage}
+\hfill
+\begin{minipage}[t]{108pt}
+\knitgrid
+\chart{
+====A====
+\purlbox{4}{3}---\purlbox{4}{3}
+====w====}
+\end{minipage}
+
+\bigskip
+
+You may feel that such things look better if a grid is involved. (I do.) This is a way to avoid ``no stitch'' boxes with \texttt{\char`\\knitgrid} or \texttt{\char`\\knitmixed}; again, the presence of complicated cables probably determines which you should use.
+
+
+\clearpage\subsection{Repeat outlines}
+\label{sec:outline}
+
+As illustrated in \autoref{fig:outlineex}, there are ways to outline part of a knitting chart.
+
+\begin{figure}
+\caption{Outline examples}\label{fig:outlineex}
+
+%\renewcommand \printrightrownumber[1]{\knitleftarrowhead\smash{\rule[-\stitchdp]{1pt}{\stitchht}}{\color{rncolor}\textnormal{#1}}}
+
+\medskip
+
+\advance\hsize 60pt
+\noindent \hskip -30pt
+\begin{minipage}[b]{3.2in}
+\obeylines
+\rlap{\texttt{\char`\\definecolor\char`\{knitlinecolor\char`\}\char`\{rgb\char`\}\char`\{0,0.5,0.8\char`\}}}
+\verb?\chart[right]{?
+\verb? ---|---|- ?
+\verb? -\overline{--|---|-}?
+\verb?~\={2}~\={2}~ \\ -|---|--- ?
+\verb?~\={2}~\={2}~ \\ ---|---|- ?
+\verb?\vspace{12pt}?
+\verb? -\cableleft{--\!}{--}--?
+\verb? \-{7} \\ ---\!---\!-?
+\verb? -\overline*{--\!---\!-}?
+\verb?~\_\_~\_\_~ \\ -\!---\!---?
+\verb?~\_\_~\_\_~ \\ ---\!---\!-?
+\vspace{0pt}
+\verb?}?
+\end{minipage}%
+\hfill
+\begin{minipage}[b]{105pt}
+\knitnogrid
+\definecolor{knitlinecolor}{rgb}{0,0.5,0.8}
+\chart[right]{
+ ---|---|-
+ -\overline{--|---|-}
+~\={2}~\={2}~ \\ -|---|---
+~\={2}~\={2}~ \\ ---|---|-
+\vspace{12pt}
+ -\cableleft{--\!}{--}--
+ \-{7} \\ ---\!---\!-
+ -\overline*{--\!---\!-}
+~\_\_~\_\_~ \\ -\!---\!---
+~\_\_~\_\_~ \\ ---\!---\!-
+\vspace{12pt}
+}
+\chart{}
+\vspace{0pt}
+\end{minipage}%
+\hfill
+\begin{minipage}[b]{110pt}
+\knitgrid
+\definecolor{knitlinecolor}{rgb}{0,0.5,0.8}
+\chart[right]{
+ \\ ---|---|-
+ -\overline{--|---|-}
+~\={2}~\={2}~ \\ -|---|---
+~\={2}~\={2}~ \\ ---|---|-
+\vspace{12pt}
+\vspace{12pt}
+ \-{7} \\ ---\!---\!-
+ -\overline*{--\!---\!-}
+~\_\_~\_\_~ \\ -\!---\!---
+~\_\_~\_\_~ \\ ---\!---\!-
+\vspace{12pt}
+}
+\vspace{0pt}
+\end{minipage}
+\end{figure}
+
+
+\begin{itemize}
+
+\item[$\star$] \verb|\overline| and \verb|\underline| take one argument and typeset it, then put a colored bar over or under it. This is designed to provide a way to outline vertical pattern repeats.
+
+These commands have starred and unstarred forms. \verb|\overline| spreads the chart rows to make room for the line; it should be used for lines that go all the way across the chart. \verb|\overline*| does not (the lines overlap the chart a bit) and so should be used for lines that go only partway across the chart.
+
+\item[$\star$] A line that goes across the chart can be specified with \verb|\-|, which takes an argument (the width of the overlining in stitches). This has starred forms and unstarred forms, like \verb|\overline|.
+
+\item[$\star$] The character \texttt{|} and the command \verb?\|? produce a vertical line suitable for outlining horizontal pattern repeats. The command \verb?\!? produces a slightly different vertical line: like \verb|\overline*|, it will overlap the adjacent cells to avoid disrupting the alignment of columns. Thus, \texttt{|} and \verb?\|? should be used with \verb|\overline|, while \verb|\!| should be used with \verb|\overline*|.
+
+\item[$\star$] You may prefer to specify horizontal lines on their own, without interleaving them with the chart symbols using \verb|\overline|. This may be done, but implementation is complicated.
+
+You can get short horizontal lines to go with \verb?\!? by using \verb|\_|; it should be positioned using tildes~\texttt{\char`\~}.
+
+If you want to use short horizontal lines between two \verb?\|?s, you should use the command \verb|\=|, which like \verb|\-| takes an argument. (This will look wrong if you use it at the edge of a chart; it's better to use \verb|\overline| or \verb|\underline|.)
+
+\end{itemize}
+
+\clearpage
+
+\subsection{Colors and miscellaneous commands}
+\label{sec:color}
+
+\textsf{knitting} uses several colors and shades of gray to draw charts. You can customize these.
+
+The \LaTeX\ package \texttt{knitting.sty} loads the \textsf{color} package and uses it to define colors; so the color of purl stitches is accessed via \verb|\color{purlgray}|. If you want a different purl color, you can use \textsf{color}'s \verb|\definecolor| syntax to change \verb|{purlgray}|. This is especially useful if you want to write two-color colorwork charts.
+
+\texttt{knitting.tex} defines \verb|\purlgray| itself, using syntax that works for pdf\/\TeX\ and \textsf{dvips}, but possibly not other drivers. If you insist on using plain \TeX\ and another driver, you are assumed to know enough to edit \texttt{knitting.tex} to compensate. Redefining colors in plain \TeX\ is complicated and driver-dependent; read \texttt{knitting.tex} itself to get an idea of the color definition syntax.
+
+\begin{itemize}
+
+\item \verb|purlgray| is the color of the purl background.
+
+\item \texttt{gridcolor} is the color of the grid lines in the grid fonts.
+
+\item \texttt{knitlinecolor} controls the lines produced by \verb?\!?,~\verb?|?, \verb|\=|, \verb|\_|, \verb|\-|, \verb|\overline|, and \verb|\underline|.
+
+\item \texttt{rncolor} is used by \verb|\printrownumber| and \texttt{\char`\\print\-stitch\-count} so that the row numbers and stitch counts cannot be mistaken for parts of the chart proper. The color \texttt{rnarrowcolor} is used for just the small arrows in left and right row numbers. See \autoref{sec:rowcount} and \autoref{sec:counting}.
+
+\end{itemize}
+
+There are also some commands you might want to use:
+
+\begin{itemize}
+
+\item \verb|\purlpass|, \verb|\gridpass|, \verb|\mainpass|. \verb|\chart| and \verb|\textknit| compile their argument twice: once in gray, for the purl background, and then once in black for the foreground. They then put them on top of each other. (The grid fonts do a third pass, in the middle, for just the grid; this lets us have grid lines that are gray rather than black.) \verb|\purlpass| takes one mandatory argument (something to do only during the purl pass) and one optional first argument (something to do during the other two passes.) These let you produce a variety of effects:
+\begin{quote}
+\verb|\purlpass{\color{blue}} pK| \textknit{\purlpass{\color{blue}} pK}
+\end{quote}
+
+\item \verb|\knitlinewd|, \verb|\gridwidth|, \verb|\stitchwd|, \verb|\stitchht|, and \verb|\stitchdp| store most of the dimensional information about the knitting fonts.\footnote{Grid cells are designed to be 12pt (or 16.3pt) by 12pt, and extend slightly below the baseline. In \LaTeX, \texttt{\char`\\ stitchht} is 12pt. In plain \TeX, \texttt{\char`\\ stitchht} is 12pt$-$\texttt{\char`\\ stitchdp}. This is because the plain \TeX\ \texttt{\char`\\ raise} macro and the \LaTeX\ \texttt{\char`\\ raisebox} macro work differently.}
+
+It is inadvisable to change any of these (except \verb|\knitlinewd|); a \the\gridwidth\ grid is built into the fonts, and changing \verb|\gridwidth| won't change it, just mess up any code that relies on \verb|\gridwidth|.
+
+You can change \verb|\knitlinewd| with \verb|\setlength|; however, \verb|\knitlinewd| is defined by \textsf{knitting} in a complicated way so as to change gracefully with changing knit sizes, and so it is probably best to say \verb|\newdimen| \verb|\knitlinewd| (not \verb|\newlength|\allowbreak\verb|{\knitlinewd}|) first.
+
+If you use one of these parameters outside of a \verb|\chart| or \verb|\textknit|, you may get error messages about undefined fonts. To fix them, use \verb|\knitgrid|, \verb|\knitnogrid| or \verb|\knitwide| again.
+
+\item The boolean variables \verb|\ifgrid|, \verb|\ifknitsymbol| and \verb|\ifchartsonly| are standard \TeX\ conditionals: they may be used as
+\begin{center}\verb|\ifgrid| Grid code \verb|\else| Nongrid code \verb|\fi|
+\end{center}
+
+They are useful if you haven't decided yet how you want to format your document, or if you want to compile it several times with slightly different results. (\verb|\ifgrid| distinguishes between \verb|\knitnogrid| and the other three options; \verb|\ifknitsymbol| distinguishes between \verb|\knitnogrid|\slash\verb|\knitmixed| and \verb|\knitgrid|\slash\verb|\knitwide|.)
+
+\item In \LaTeX, you get sans serif text (the font inside the knit boxes) and roman text (the row number/stitch count font) with the usual commands \verb|\textsf| and \verb|\textnormal|. In plain \TeX, you can get these fonts with \verb|\knitsf| and \verb|\knitrm|.
+
+\end{itemize}
+
+\subsection{Spaces in the input}
+\label{sec:spacein}
+
+A normal space in the source code in a knitting chart, like a space in math mode, is ignored.
+In a knitting chart, unlike in normal text, you want to prescribe all your line breaks. For convenience, knitting charts have the macro \verb|\obeylines| built in, so that a single $\langle$return$\rangle$ produces a new paragraph (and therefore a new line), like a double $\langle$return$\rangle$ usually does.
+
+If you want two or more lines in the source code to produce one line on the chart, end all but the last with the comment character~\verb|%|.
+
+Unfortunately, the trick I use to make $\langle$return$\rangle$s trigger new lines is delicate; specifically, if you put your chart inside another command, it stops working. (It works fine inside environments.) (Similarly, \verb?|? and \verb?#? are redefined inside knitting charts, so that \verb?|? produces a colored bar \textknit{\|} and \verb?#? produces a symbol \textknit{\#}. If your chart ends up inside a command, \verb?|? will produce a plain black bar and \verb?#? will produce an error; use \verb?\|? and \verb?\#? instead.)
+
+So if you want to embed your chart inside another command, you have to end each line with a \verb|\par|, \verb|\\|, or a double $\langle$return$\rangle$ (blank line).
+
+\let \saveknitlinewd \knitlinewd
+
+\begin{figure}[h]
+\caption{The effects of embedding charts in commands and environments}
+\par\bigskip\par
+\begin{minipage}[b]{2.5in}
+\begin{verbatim}
+\newdimen\knitlinewd
+\setlength{\knitlinewd}{4pt}
+\parbox{77pt}{
+\chart{
+tt|
+AA\|%
+--\\
+==|==\\}
+}
+\end{verbatim}
+\end{minipage}%
+\hskip -108pt
+\begin{minipage}[b]{80pt}
+\newdimen\knitlinewd
+\setlength{\knitlinewd}{4pt}
+\parbox{80pt}{
+\chart{
+tt|
+AA\|%
+--\\
+==|==\\}}
+\vspace{24pt}
+\end{minipage}%
+\hskip 12pt
+\begin{minipage}[b]{2.5in}
+\begin{verbatim}
+\newdimen\knitlinewd
+\setlength{\knitlinewd}{4pt}
+\begin{center}
+\chart{
+tt|
+AA\|%
+--\\
+==|==\\}
+\end{center}
+\end{verbatim}
+\end{minipage}%
+\hskip -84pt
+\begin{minipage}[b]{55pt}
+\newdimen\knitlinewd
+\setlength{\knitlinewd}{4pt}
+\begin{center}
+\chart{
+tt|
+AA\|%
+--\\
+==|==\\}
+\end{center}
+\vspace{24pt}
+\end{minipage}
+\end{figure}
+
+\let \knitlinewd \saveknitlinewd
+
+
+
+\section{Ligatures and cables}
+\label{sec:cables}
+
+\TeX\ has a built-in ligature mechanism that lets it get {?`fire--fly?} instead of {?{}`f{}ire-{}-f{}ly?} when you type \texttt{?{}`fire--fly?}. \textsf{knitting} uses this for wide horizontal sequences such as \textknit{???}. The ligature mechanism also lets you generate the reverse of \textknit{"}: \texttt{-"}, \texttt{="} and \texttt{""} produce \textknit{-"}, \textknit{="}, and \textknit{""}, respectively.
+
+However, the ligature mechanism really comes into its own when making cable symbols.
+
+\subsection{Symbolic cables}
+\knitnogrid
+
+In the fonts which represent ``knit 1'' by a vertical bar symbol (\verb|\knitnogrid|\slash\verb|\knitmixed|), cables look like this: \textknit{kkKK} or {\knitmixed\textknit{kkKK}}. The symbols are a stylized representation of what you must do to produce the cables.
+
+The keys \texttt{k},~\texttt{p}, \texttt{K}, and \texttt{P} produce raised or lowered knit and purl symbols, and the ligature mechanism adds in the underbars or slant connectors automatically.
+
+So:
+\begin{quote}
+\noindent\hfil\parbox{108pt}{
+\tt kkKK\\
+KKpp\\
+kpkpKPKP}
+\parbox{108pt}{\chart{
+kkKK\\
+KKpp\\
+kpkpKPKP}}
+\end{quote}
+
+Some allowance for peculiar cables has been made. You can get a front increase or decrease with \texttt{N}~or \texttt{D}, or a back increase or decrease with \texttt{n}, \texttt{d}, \texttt{e}, or~\texttt{o}:
+\texttt{nedoND} \textknit{nedoND}.
+
+All of the symbols present in the font can be used in cables with the help of \verb|\cableleft| and \verb|\cableright|: \verb|\cableleft{AOA}{=*=}| \textknit{\cableleft{AOA}{=*=}}.
+
+If you have a lot of cables involving the same obscure symbol, you may wish to use the commands \verb|\cableforeground| and \verb|\cablebackground| instead:
+
+\begin{center}
+\begin{minipage}[b]{224pt}
+\obeylines
+\verb?\renewcommand\${\cableforeground{b}}?
+\verb?\renewcommand\#{\cablebackground{b}}?
+\verb?\chart{?
+\verb? -\$\$\#\#-?
+\verb? -\$\$kk- ?
+\verb? \$\#--\#\$}?
+\end{minipage}
+\quad
+\begin{minipage}[b]{108pt}
+ \renewcommand\${\cableforeground{b}}
+ \renewcommand\#{\cablebackground{b}}
+ \chart{
+ -\$\$\#\#-
+ -\$\$kk-
+ \$\#--\#\$
+ }
+\end{minipage}
+\end{center}
+
+Be aware that the implementation of \verb|\cablebackground| is such that only cable connectors are drawn in the main pass; the symbols are drawn during the purl pass, and so \verb|\cablebackground| interacts in unexpected ways with color effects and with \verb|\purlpass|.
+
+Explaining to \textsf{knitting} when one cable starts and another ends can be hard: \texttt{pKKKKp} probably means \textknit{pKK KKp}, but it could mean \textknit{pK KKKp} or \textknit{pKKK Kp}, and the ligature mechanism isn't smart enough to default to \textknit{pKK KKp}, let alone read your mind. So you have to tell it what you want.
+
+There are two ways to do this. You can put a space in: \texttt{ppKK KKpp}. You can also use the characters \texttt{c},~\texttt{g}, \texttt{C}, and~\texttt{G}: these behave just like \texttt{k},~\texttt{p}, \texttt{K}, and~\texttt{P}, except that they are only allowed to show up in the left part of a cable.
+
+Some limited debugging mechanisms are available. A sequence of background cables \texttt{kkp} which is not paired with a sequence of foreground stitches is not a cable; it is an orphaned half-cable. If for some reason you want an orphaned half-cable \textknit{\cableright{==}{}}, use \verb|\cableleft| or \verb|\cableright| with an empty argument.
+
+Orphaned half-cables produced by other methods (unaccompanied \texttt{pp}) are probably due to a typographical error which must be fixed. So they are made obvious. If you have an orphaned half-cable somewhere, the last square will be shaded: \texttt{ppKKKKpp} produces \textknit{ppKKKKpp} since the terminal \texttt{p}s are not part of a full cable.
+
+So:
+\begin{center}
+\begin{minipage}[b]{108pt}
+\obeylines\parindent=0pt\tt
+=DKp,,pKD DKp,,pKD=
+===----====----===
+===KKkk====KKkk===
+===----====----===
+=ppKKCCppggKKCCpp=
+=--====----====--=
+=--====kkKK====--=
+=--====----====--=
+=KKepgeKKCCepgeKK=
+,==----=,,=----==,
+\end{minipage}
+\quad
+\begin{minipage}[t]{224pt}
+\chart{
+=DKp,,gKD DCp,,gKD=
+===----====----===
+===KKkk====KKkk===
+===----====----===
+=ppKKCCppggKKCCpp=
+=--====----====--=
+=--====kkKK====--=
+=--====----====--=
+=KKepgeKKCCepgeKK=
+,==----=,,=----==,
+}
+\end{minipage}
+\end{center}
+
+\subsection{Stylized cables}
+\knitgrid
+
+In the fonts which represent ``knit 1'' by an empty box (\verb|\knitgrid|\slash\verb|\knitwide|), cables look like this: \textknit{kkKK}. The symbols are a stylized sketch of how the cables actually look.
+
+The letters \texttt{kpcgKPCG} work for simple cables as in the non-grid
+font. These cables are fairly limited. You can cross 1, 2, or 3 stitches
+over 1, 2, or 3 stitches, going left or right. The letters
+\texttt{kpcgKPCG} will let you draw purl-over-purl, knit-over-purl, or
+knit-over-knit cables.
+
+Twelve special cable symbols are also possible:
+\begin{center}
+\textknit{kpK~Kpk~kkpKK~KKpkk~kkppKK~KKppkk}\\
+\textknit{kpD~Kpd~kkpKD~KKpkd~kkppKD~KKppkd}\\
+\end{center}
+You get these by putting \texttt{p}s (not \texttt{g}s) between the \texttt{k}s and \texttt{K}s.\footnote{{The rules for these cables are actually more complicated. The only way to get \knitnogrid\textknit{kkpKK}, the nogrid equivalent of \knitgrid\textknit{kkpKK}, is by typing \texttt{kkpKK} or some equivalent with \texttt{c}s and~\texttt{g}s. In the grid font, you can't use \texttt{g} for the middle purl stitch. More importantly, the fonts don't check to make sure you typed exactly \texttt{kkpKK}. The only grid cable that can start with \texttt{kkp} is \textknit{kkp}; so \texttt{kkp} followed by any number of \texttt{K}s will produce \textknit{kkpKKKKK}.}}
+
+In the wide-cell grid font, for technical reasons no symbols more than five cells wide are available; so while \knitwide\textknit{pK} is available, a wider version of \knitgrid\textknit{kkppKK} is not.
+
+The keys \texttt{N},~\texttt{n}, \texttt{e}, \texttt{o}, \texttt{d} and~\texttt{D} have a different function here.
+
+If a knit-over-knit cable ends with a \texttt{d} or \texttt{D} instead of \texttt{k} or \texttt{K}, the result will have a solid white background instead of a gray one. The letters \texttt{n}, \texttt{N}, \texttt{e} and \texttt{o} produce symbols that are hybrids of twist and cable symbols.\footnote{A \texttt{k}, \texttt{p}, \texttt{K}, or \texttt{P} after a \texttt{n}, \texttt{e}, \texttt{o}, \texttt{d}, \texttt{N}, or \texttt{D} starts a new cable; you don't need to use \texttt{C}, \texttt{G}, \texttt{c}, \texttt{g} or spaces to separate them.}
+\begin{center}
+\begin{minipage}[b]{108pt}
+\obeylines\parindent=0pt\tt
+kkDD~kkNN~ppNN
+KKdd~KKnn~KKoo
+\end{minipage}
+\quad
+\begin{minipage}[t]{224pt}
+\chart{
+kkDD~kkNN~ppNN
+KKdd~KKnn~KKoo
+}
+\end{minipage}
+\end{center}
+\texttt{e} and \texttt{o} have the same effect.
+
+Again, orphaned half-cables are indicated with diagonal hash marks \textknit{kk}.
+
+Some special effects are possible. You can get fancy with the colors of these symbols:\footnote{If you use \texttt{\char`\\colorbox} with \texttt{\char`\\textknit} insteat of \texttt{\char`\\chart}, you will need to say \texttt{\char`\\setlength\allowbreak\char`\{\char`\\fboxsep\char`\}\char`\{0pt\char`\}} at some point to make this work; this statement is built into \texttt{\char`\\chart}.}
+
+\bigskip
+
+\noindent{\setlength{\fboxsep}{0pt}
+\verb|\colorbox{lightblue}{A}|
+\hfill\textknit{`\colorbox{lightblue}{A}`}}
+
+\smallskip
+
+\noindent{\setlength{\fboxsep}{0pt}
+\verb|\purlpass[Kk]{\colorbox{lightblue}{\color{blue}kK}}|
+\hfill\textknit{\purlpass[Kk]{\colorbox{lightblue}{\color{blue}kK}}}}
+
+\bigskip
+
+You can also indicate unusual cables by superimposing other symbols: \nopagebreak
+
+\bigskip
+
+\noindent\hspace{-10pt}\begin{minipage}[t]{310pt}
+\verb?\mainpass{\rlap{\knitbox{D}{4}}} kkKK?\par
+\verb?\mainpass{\rlap{\knitbox{m\vspace{2pt}}{1}}} ppKK?
+\end{minipage}
+\hfill
+\begin{minipage}[t]{48pt}
+\textknit{\mainpass{\rlap{\knitbox{D}{4}}} kkKK}\par
+\textknit{\mainpass{\rlap{\knitbox{m\vspace{2pt}}{1}}}%
+ppKK}
+\end{minipage}
+
+\bigskip
+
+This is enough for most cable patterns.
+
+
+\section{Counting rows}
+\label{sec:rowcount}
+
+This section describes how to get and modify the little red numbers shown here.
+
+\par\bigskip\par
+\begin{minipage}[b]{3.2in}
+\obeylines
+\verb?\chart{?
+\verb? \rnleft ======?
+\verb? \rnleft ======\addtocounter{rownumber}{-1}?
+\verb? \rnleft ======?
+\verb? \addtocounter{rownumber}{-5}}?
+\end{minipage}%
+\hfill
+\begin{minipage}[b]{1.33in}
+\knitgrid
+\chart{
+\rnleft======
+\rnleft======\addtocounter{rownumber}{-1}
+\rnleft======
+\addtocounter{rownumber}{-5}
+``\nonumber}
+\end{minipage}
+\par\bigskip\par
+\begin{minipage}[b]{3.2in}
+\obeylines
+\verb?\chart[right]{?
+\verb? ======?
+\verb? ====== \nonumber ?
+\verb? ======?
+\verb? ======?
+\verb? \numberrow{6}{2}{2}}?
+\end{minipage}%
+\hfill
+\begin{minipage}[b]{1.33in}
+\knitgrid
+\hskip\stitchwd\chart[right]{
+======
+====== \nonumber
+======
+======
+\numberrow{6}{2}{2}
+}
+\end{minipage}
+
+\bigskip
+
+\begin{itemize}
+
+\item[$\star$] \verb|\rn| prints out the value of the counter
+\verb|rownumber|, then decreases it by the value of the counter
+\texttt{rownumberskip}.
+For better results, use \verb|\rnleft| on the left edge and \verb|\rnright| on
+the right edge.
+
+If you want to skip a few row numbers, you can say
+\verb|\addtocounter|\allowbreak\verb|{rownumber}{-3}| (\LaTeX) or \verb|\global|
+\verb|\advance| \verb|\rownumber| \verb|by -3| (plain \TeX).
+
+\verb|\chart| will usually automatically arrange things so that the
+last \verb|\rn| produces a~1. If you want numbers in different charts
+to be numbered consecutively (e.g., if they are pieces of one big
+chart), you can turn this behavior off with \verb|\resetrnfalse| and
+back on with \verb|\resetrntrue|. You can then reset the row numbers
+with \verb|\setcounter{rownumber}{20}|; all future charts will count
+down from there.
+
+This may be necessary if you have very long charts, since charts do not break across pages. (You may need to put a \verb|\par\nointerlineskip\par| between the pieces of charts.)
+
+\item \verb|\chart| has an optional first argument that places row numbers automatically. It should be one of the seven words \texttt{left}, \texttt{right}, \texttt{oddleft}, \texttt{oddright}, \texttt{evenleft}, \texttt{evenright}, or \texttt{both}. This will automatically place numbers down the left edge, the right edge, or put the odd numbers on one side and the even numbers on the other side.
+
+If you want to show only even or only odd numbers, you can do it with the commands \verb|\rnoddonly| or \verb|\rnevenonly|, and can restore normal behavior with the command \verb|\rnnormal|. Alternatively, you can redefine \verb|\printrightrownumber| to only print if the counter \texttt{rownumber} is odd; effects like this are why the \texttt{[both]} option exists.
+
+I suggest using \verb|\setcounter{rownumberskip}{2}| \verb|\chart[right]| for charts which show only right-side rows. For charts which show all rows, I suggest using \verb|[right]| for charts which are meant to be worked in the round, \verb|[oddright]| or \verb|[oddleft]| for charts which are meant to be worked flat (back and forth), and \verb|\rnevenonly| or \verb|\rnoddonly| with \verb|[right]| for charts which may be used either flat or in the round.
+
+\item[$\star$] Inside an auto-numbered chart, \verb|\nonumber| skips the next row number.
+
+\item[$\star$] To number the stitches (by producing a \emph{row} of stitch numbers), you can use the command \verb|\numberrow|. It takes three arguments: the first number to be printed, the countdown (how often to print intermediate numbers), and the last number to be printed.
+
+\item[$\star$] If you don't like any of my automatic countdown options, you can use \verb|\rnbox{8}|, \verb|\rnboxleft{12}|, \verb|\rnboxright{3}| to do your own row-number boxes.
+
+\item Two commands exist to let you get \TeX\ to count stitches for you: \texttt{\char`\\stitch\-count\-chart} and \verb|\countstitches|. The command \texttt{\char`\\ adjust\-stitch\-count} is also useful here. See \autoref{sec:counting} for more details.
+
+\end{itemize}
+
+You can adjust the appearance of the row numbers in a few ways. \texttt{\char`\\ rn} puts the number
+in a box of width \texttt{\char`\\ rownumberwd}; you can change the
+width by saying
+\texttt{\char`\\renewcommand\allowbreak
+ \char`\{\char`\\rownumberwd\char`\}\char`\{1em\char`\}}.
+You can change the appearance of the rownumbers by renewing the commands \texttt{\char`\\ printrownumber}, \texttt{\char`\\ printleftrownumber} and \texttt{\char`\\ printrightrownumber}; the default values (in \LaTeX) are
+\begin{quote}
+\verb|{{\color{rncolor}\textnormal{#1}}}|,\\
+\verb|{\knitleftarrowhead{\color{rncolor}\textnormal{#1}}}| and\\
+\verb|{{\color{rncolor}\textnormal{#1}}\knitrightarrowhead}|.
+\end{quote}
+
+\verb|\printrownumber| controls the appearance of both \verb|\rn| and \verb|\rnbox|. You can also change the appearance of \verb|\rn|, but not \verb|\rnbox|, by redefining \verb|\therownumber|. \verb|\roman{rownumber}| (\LaTeX) or \verb|\romannumeral| \verb|\rownumber| (plain \TeX), for example, will number rows with Roman numerals.
+
+\section{Counting stitches}
+\label{sec:counting}
+
+\setcounter{rownumberskip}{1}
+
+When knitting a complicated pattern, it can be helpful if the chart indicates the expected stitch count after each row. When writing a complicated chart, and especially when designing a new stitch pattern, it can be \emph{very} helpful to have some way of checking to see that each row uses exactly as many stitches as the previous row generated. \textsf{knitting} provides a mechanism for counting stitches and for comparing them from row to row.
+
+If used inside a knitting chart, the command \verb|\countstitches| takes one argument and sets the counters \texttt{stitchcountout} and \texttt{stitchcountin} to reflect how many stitches that sequence of stitches would produce or consume, assuming that all the symbols have the meanings given in \textsf{knitkey.tex}.
+
+So, for example:
+
+\bigskip
+
+\noindent\begin{minipage}[t]{224pt}
+\obeylines\parindent=0pt\tt
+\verb?\chart{\countstitches{->-} ->-}?
+\verb?stitchcountout: \thestitchcountout?
+\verb?stitchcountin: \thestitchcountin?
+\end{minipage}
+\quad
+\begin{minipage}[t]{108pt} \obeylines
+\chart{\countstitches{->-}{->-}}
+stitchcountout: \thestitchcountout
+stitchcountin: \thestitchcountin
+\end{minipage}
+
+\bigskip
+
+This can be used to automatically label each row with its stitch count.
+
+\bigskip
+
+\noindent\begin{minipage}[b]{350pt}
+\obeylines\parindent=0pt\tt
+\verb?\newcommand{\mystitchcount}[1]{\countstitches{#1}#1?
+\verb? \mainpass{{\color{rncolor}%?
+\verb? \textnormal{ (\thestitchcountout\ sts)}}}}?
+\verb?\chart{?
+\verb? \mystitchcount{~-A-~}?
+\verb? \mystitchcount{-----}?
+\verb? \mystitchcount{~-w-~}}?
+\end{minipage}
+\hskip -108pt
+\begin{minipage}[b]{108pt}
+\newcommand{\mystitchcount}[1]{\countstitches{#1}#1
+ \mainpass{{\color{rncolor}%
+ \textnormal{ (\thestitchcountout\ sts)}}}}
+\chart{
+ \mystitchcount{~-A-~}
+ \mystitchcount{-----}
+ \mystitchcount{~-w-~}}
+\end{minipage}
+
+\bigskip
+
+(A more complicated example is in \texttt{knitexamples.tex}. Repeated patterns affect stitch count in strange ways; that example should show you how to cope.)
+
+You can adjust the stitch count using the command \verb|\adjuststitchcount|. It takes a mandatory argument (how many stitches to add) and an optional argument (a different number of stitches to add to the incount.)
+
+By using the command \verb|\stitchcountwarningbar|, we can check to see that stitch counts are consistent from row to row:
+
+\bigskip
+
+\noindent\begin{minipage}[b]{\textwidth}
+\obeylines\parindent=0pt\tt
+\verb?\newcommand{\mystitchcount}[1]{\countstitches{#1}#1%?
+\verb? \textnormal{\color{rncolor}?
+\verb? \mainpass{ (\thestitchcountout\ sts)\stitchcountwarningbar}}?
+\end{minipage}
+
+\noindent\begin{minipage}[b]{350pt}
+\obeylines\parindent=0pt\tt
+\verb?\chart{?
+\verb? \setcounter{stitchcountin}{-100}?
+\verb? \mystitchcount{~-A-~}?
+\verb? \mystitchcount{-----}?
+\verb? \mystitchcount{-->--}?
+\verb? \mystitchcount{-----}?
+\verb? \mystitchcount{~-w-~}}?
+\end{minipage}
+\hskip -108pt
+\begin{minipage}[b]{108pt}
+\newcommand{\mystitchcount}[1]{%
+ \countstitches{#1}#1%
+ \textnormal{\color{rncolor}
+ \mainpass{ (\thestitchcountout\ sts)\stitchcountwarningbar}}}
+\chart{
+ \setcounter{stitchcountin}{-100}
+ \mystitchcount{~-\>3-~}
+ \mystitchcount{-----}
+ \mystitchcount{-->--}
+ \mystitchcount{-----}
+ \mystitchcount{~-w-~}}
+\end{minipage}
+
+\bigskip
+
+The heavy bar beside Row 2 indicates that Row~3 uses six stitches, but Row~2 produces only five. \verb|\stitchcountwarningbar| is built using the same code as \TeX's usual overfull rules; thus, it will only appear (in \LaTeX) if the \texttt{draft} document option is enabled.
+
+The initial \verb?\setcounter{stitchcountin}{-100}? prevents a warning bar from showing up on the very first row. A \verb?\setcounter{stitchcountin}{3}? would work in this case as well, since the top row produces 3 stitches.
+
+All of this gives you a lot of control over the stitch-counting mechanism in your chart. However, it requires a lot of work to set up. \textsf{knitting} has a quick command for generating charts with stitch counts:
+
+\bigskip
+
+\noindent\begin{minipage}[b]{300pt}
+\obeylines\parindent=0pt\tt
+\verb?\rnoddonly?
+\verb?\stitchcountchart[right]{?
+\verb? -O-----O-?
+\verb? ~-O---O-?
+\verb? ~~-O-O-?
+\verb? ~~~---?
+\verb? }?
+\end{minipage}
+\hskip -108pt
+\begin{minipage}[b]{158pt}
+\rnoddonly
+\stitchcountchart[right]{
+ -O-----O-
+ ~-O---O-
+ ~~-O-O-
+ ~~~---
+ }
+\par\strut
+\end{minipage}
+\bigskip
+
+You can customize this with the optional argument (which places row numbers as usual), the command \texttt{\char`\\ knitdebug} (which shows the stitch counts both before and after knitting the row), and by redefining the commands \texttt{\char`\\ printleftstitchcount} and \texttt{\char`\\ printrightstitchcount}. The default (\LaTeX) values are
+\begin{quote}
+\verb?\newcommand{\printleftstitchcount}{{\color{rncolor}%?\\
+\verb? \textnormal{(\thestitchcountout\ sts) }}}?\\
+\verb?\newcommand{\printrightstitchcount}{}?
+\end{quote}
+\texttt{\char`\\ knitdebug} redefines \texttt{\char`\\ printleftstitchcount} to
+\begin{quote}
+\verb?\renewcommand \printleftstitchcount{{\color{rncolor}%?\\
+\verb? \textnormal{(\thestitchcountout\ out, ?\\
+\verb? \thestitchcountin\ in) }}}?\\
+\end{quote}
+
+\bigskip
+
+\noindent\begin{minipage}[b]{250pt}
+\obeylines\parindent=0pt\tt
+\verb?\rnoddonly?
+\verb?\knitdebug?
+\verb?\stitchcountchart[right]{?
+\verb? -O-----O-?
+\verb? ~-O---O-?
+\verb? ~~-O-O-?
+\verb? ~~~---?
+\verb? }?
+\end{minipage}
+\hskip -108pt
+\begin{minipage}[b]{208pt}
+\rnoddonly
+\knitdebug
+\stitchcountchart[right]{
+ -O-----O-
+ ~-O---O-
+ ~~-O-O-
+ ~~~---
+ }
+\par\strut
+\end{minipage}
+\bigskip
+
+
+
+The commands \verb|\narrowincrease| and so on, when used with the stitch-counting mechanism, do require that their arguments be numbers: if your chart involves the symbol \textknit{\narrowincrease{Z}}, that symbol cannot be counted.
+
+The commands \verb|\Knit|, \verb|\Purl|, \verb|\knitbox| and \verb|\purlbox| by default are assumed to be as many stitches wide as they take up stitches on the chart: so \verb|\knitbox{A}{2}| is assumed to be two stitches wide.
+
+This means that \verb|\Knit{4}{3}| is assumed to be three, not four, stitches wide. You can change this behavior by redefining the commands \verb|\Knitstitchcount|, \texttt{\char`\\Purl\-stitch\-count}, \verb|\knitboxstitchcount|, \verb|\purlboxstitchcount|:
+\begin{quote}
+\verb|\renewcommand{\Knitstitchcount}[2]{#1}|
+\end{quote}
+Redefining \verb|\Knitstitchcount| does mean that you must give \verb|\Knit| a number as its first argument.
+
+Similarly, \verb|\widesymbol| normally is assumed to be as many stitches as its contents: \textknit{\widesymbol{w}{3}} represents one in-stitch and three out-stitches, just like \textknit{w}. If you prefer for \textknit{\widesymbol{*}{3}} to represent three stitches, redefine \verb|widesymbolspacer|:
+\begin{quote}
+\verb|\renewcommand{\widesymbolspacer}[2]{\hskip #2\stitchwd}|
+\end{quote}
+The arguments of \verb|\widesymbolspacer| are the two arguments of \verb|\widesymbol|; the default value is just
+\begin{quote}
+\verb|\newcommand{\widesymbolspacer}[2]{#1}|.
+\end{quote}
+
+There is a way to deal with a series of short rows: put the rows inside the command \verb|\shortrows|, or use the command \verb|\nostitchcount| to omit a stitch count.
+
+\bigskip
+
+\noindent\begin{minipage}[b]{300pt}
+\obeylines\parindent=0pt\tt
+\verb?\rnevenonly?
+\verb?\stitchcountchart[right]{?
+\verb? \nostitchcount-------?
+\verb? -------?
+\verb? -------?
+\verb? \shortrows{~~~~---?
+\verb? ~~~"---}?
+\verb? -------?
+\verb? \shortrows{-----?
+\verb? ~~---"?
+\verb? ~"-----}?
+\verb? -------?
+\verb? }?
+\end{minipage}
+\hskip -108pt
+\begin{minipage}[b]{158pt}
+\rnevenonly
+\stitchcountchart[right]{
+ \nostitchcount-------
+ -------
+ -------
+ \shortrows{
+ ~~~~---
+ ~~~"---}
+ -------
+ \shortrows{
+ -----
+ ~~---"
+ ~"-----}
+ -------
+ }
+\par\strut
+\end{minipage}
+\bigskip
+
+
+
+
+\addtocontents{toc}{\SkipTocEntry}\subsection*{Warnings} The stitch-counting machinery cannot, of course, actually know what meanings you assign to symbols. It is designed for the meanings in \textsf{knitkey.tex}. If you deviate from these, it will get the wrong answer.
+
+Also, \verb|\stitchcountchart| is delicate; it must not be used inside commands, the closing~\verb|}| must be on its own line, and it often has trouble if strange things are put at the start of a line. (You can fix this by starting the line with a \verb|\noindent| or \verb|\leavevmode| or \verb|\mbox{}|.)
+
+\section{Revision history}
+
+\addtocontents{toc}{\SkipTocEntry}\subsection*{August 2010}
+
+I've added the symbols \textknit{(}, \textknit{)}, \textknit{6}, \textknit{7}, \textknit{8}, and~\textknit{9} to the fonts for the benefit of people who want to use the symbols suggested by the Craft Yarn Council of America, and updated \texttt{knitkey.tex} to include these symbols (and a few others that can be generated by judicious use of \verb|\knitbox| and \verb|\purlpass|).
+
+I've added the commands \texttt{\char`\\ print\-rightrownumber}, \texttt{\char`\\ printleftrownumber} and \texttt{\char`\\ print\-row\-number} to make row numbers easier to customize. I've redefined the left and right row number macros to include little arrows.
+
+I've added the starred forms of \verb|\overline| and \verb|\underline| and the optional argument to \verb|\Knit|, \verb|\Purl|, \verb|\knitbox| and \verb|\purlbox| to offset the labels, and have rewritten those commands to use \verb|\knitboxbackground| and \verb|\purlboxbackground| in order to make them easier to customize.
+
+\catcode`\_=12
+
+I've added the stitch-counting mechanism. This has entailed minor revisions to a number of existing commands, writing the stitch-counting macros themselves, and also creating the supporting fonts \texttt{knitn_sc_in}, \texttt{knitn_sc_out}, \texttt{knitg_sc_in}, \texttt{knitg_sc_out}, \texttt{knitw_sc_in}, and \texttt{knitw_sc_out}.
+
+\addtocontents{toc}{\SkipTocEntry}\subsection*{\today}
+
+The fonts \verb|knitw_sc_in| and \verb|knitw_sc_out| have been removed, because I realized that \verb|knitg_sc_in| and \verb|knitg_sc_out| could be used instead.
+
+The commands \verb?\|? and \verb?\!? now work with \verb|\textknit|.
+
+The following have been added:
+
+\begin{itemize}
+\item The characters \textknit{0}, \textknit{\&} and \textknit{\#}.
+
+\item The commands
+\\
+\verb|\Knitstitchcount|, \verb|\Purlstitchcount|, \\\verb|\knitboxstitchcount|, \verb|\purlboxstitchcount|;
+\\
+\verb|\cableforeground|, \verb|\cablebackground|;
+\\\verb|\widesymbol|.
+
+\item The \verb|\knitmixed| fonts.
+
+\item Support for counting stitches in short rows.
+
+\item Hash marks to show errors in cables.
+
+\item Some tweaks to the appearance of cables in the grid font.
+\end{itemize}
+
+\section{List of files that are considered part of this package}
+\label{sec:manifest}
+
+This package should have come with all the following files, organized into the directories listed.
+
+\medskip
+
+\begingroup \ttfamily
+\noindent README
+
+\noindent knitting/docs
+\begin{itemize}
+ \item knitexamples.pdf
+ \item knitexamples.tex
+ \item knitkey.pdf
+ \item knitkey.tex
+ \item knitting-doc.pdf
+ \item knitting-doc.tex
+\end{itemize}
+
+\noindent knitting/fonts/afm
+\begin{itemize}
+ \item knitg_sc_in.afm
+ \item knitg_sc_out.afm
+ \item knitgg.afm
+ \item knitgn.afm
+ \item knitgp.afm
+ \item knitmg.afm
+ \item knitml.afm
+ \item knitmn.afm
+ \item knitmp.afm
+ \item knitmr.afm
+ \item knitn_sc_in.afm
+ \item knitn_sc_out.afm
+ \item knitnl.afm
+ \item knitnn.afm
+ \item knitnp.afm
+ \item knitnr.afm
+ \item knitwg.afm
+ \item knitwn.afm
+ \item knitwp.afm
+\end{itemize}
+
+\noindent knitting/fonts/map
+\begin{itemize}
+ \item knitfont.map
+\end{itemize}
+
+\noindent knitting/fonts/source
+\begin{itemize}
+ \item knit_grid_cables.mf
+ \item knit_nogrid_cables.mf
+ \item knit_symbols.mf
+ \item knitg_sc_in.mf
+ \item knitg_sc_out.mf
+ \item knitgg.mf
+ \item knitgn.mf
+ \item knitgp.mf
+ \item knitmg.mf
+ \item knitml.mf
+ \item knitmn.mf
+ \item knitmp.mf
+ \item knitmr.mf
+ \item knitn_sc_in.mf
+ \item knitn_sc_out.mf
+ \item knitnl.mf
+ \item knitnn.mf
+ \item knitnp.mf
+ \item knitnr.mf
+ \item knitwg.mf
+ \item knitwn.mf
+ \item knitwp.mf
+\end{itemize}
+
+\noindent knitting/fonts/tfm
+\begin{itemize}
+ \item knitg_sc_in.tfm
+ \item knitg_sc_out.tfm
+ \item knitgg.tfm
+ \item knitgn.tfm
+ \item knitgp.tfm
+ \item knitmg.tfm
+ \item knitml.tfm
+ \item knitmn.tfm
+ \item knitmp.tfm
+ \item knitmr.tfm
+ \item knitn_sc_in.tfm
+ \item knitn_sc_out.tfm
+ \item knitnl.tfm
+ \item knitnn.tfm
+ \item knitnp.tfm
+ \item knitnr.tfm
+ \item knitwg.tfm
+ \item knitwn.tfm
+ \item knitwp.tfm
+\end{itemize}
+
+\noindent knitting/fonts/type1
+\begin{itemize}
+ \item knitg_sc_in.pfb
+ \item knitg_sc_out.pfb
+ \item knitgg.pfb
+ \item knitgn.pfb
+ \item knitgp.pfb
+ \item knitmg.pfb
+ \item knitml.pfb
+ \item knitmn.pfb
+ \item knitmp.pfb
+ \item knitmr.pfb
+ \item knitn_sc_in.pfb
+ \item knitn_sc_out.pfb
+ \item knitnl.pfb
+ \item knitnn.pfb
+ \item knitnp.pfb
+ \item knitnr.pfb
+ \item knitwg.pfb
+ \item knitwn.pfb
+ \item knitwp.pfb
+\end{itemize}
+
+\noindent knitting/tex/latex
+\begin{itemize}
+ \item knitting.sty
+ \item uknit.fd
+\end{itemize}
+\noindent knitting/tex/plain
+\begin{itemize}
+ \item knitting.tex
+\end{itemize}
+
+\endgroup
+
+\end{document}
+
diff --git a/fonts/knitting/fonts/afm/knitg_sc_in.afm b/fonts/knitting/fonts/afm/knitg_sc_in.afm
new file mode 100644
index 0000000000..6792bb2ce9
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitg_sc_in.afm
@@ -0,0 +1,261 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:04:32 2019
+FontName KnittingSymbols-grid-incount-Medium
+FullName KnittingSymbols-grid-incount
+FamilyName KnittingSymbols-grid-incount
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -550 -198 1235 842
+CapHeight 622
+XHeight 842
+Ascender 622
+StartCharMetrics 240
+C 0 ; WX 1204 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1204 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1204 ; N circumflex ; B 0 0 0 0 ;
+C 3 ; WX 1204 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1204 ; N dieresis ; B 0 0 0 0 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 0 ; N guillemotleft ; B -550 -114 360 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 0 0 0 0 ;
+C 21 ; WX 0 ; N endash ; B 0 0 0 0 ;
+C 22 ; WX 602 ; N emdash ; B 0 252 600 392 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 252 600 842 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 252 411 842 ;
+C 27 ; WX 602 ; N ff ; B 190 -198 600 392 ;
+C 28 ; WX 602 ; N fi ; B 0 -198 411 392 ;
+C 29 ; WX 1204 ; N fl ; B 0 -198 1200 392 ;
+C 30 ; WX 1204 ; N ffi ; B 0 252 1200 842 ;
+C 31 ; WX 6022 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 2409 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 0 ; N quotedbl ; B -360 -114 550 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 1204 ; N ampersand ; B 0 0 0 0 ;
+C 39 ; WX 0 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1204 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1204 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1204 ; N plus ; B 0 0 0 0 ;
+C 44 ; WX 0 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 0 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 0 0 0 0 ;
+C 48 ; WX 1204 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1204 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 2409 ; N two ; B 0 0 0 0 ;
+C 51 ; WX 3613 ; N three ; B 0 0 0 0 ;
+C 52 ; WX 2409 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 2409 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1204 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 1204 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 1204 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 1204 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 2409 ; N colon ; B 0 0 0 0 ;
+C 59 ; WX 2409 ; N semicolon ; B 0 0 0 0 ;
+C 60 ; WX 2409 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1204 ; N equal ; B 0 0 0 0 ;
+C 62 ; WX 2409 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1204 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1204 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 3613 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1204 ; N B ; B 0 0 0 0 ;
+C 67 ; WX 1204 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 1204 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 1204 ; N E ; B 0 0 0 0 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 622 ;
+C 71 ; WX 1204 ; N G ; B 0 0 0 0 ;
+C 72 ; WX 0 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 0 ; N I ; B 0 0 0 0 ;
+C 74 ; WX 0 ; N J ; B 0 0 0 0 ;
+C 75 ; WX 1204 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 3613 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 0 ; N M ; B 0 0 0 0 ;
+C 78 ; WX 1204 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 0 ; N O ; B 0 0 0 0 ;
+C 80 ; WX 1204 ; N P ; B 0 0 0 0 ;
+C 81 ; WX 1204 ; N Q ; B 0 0 0 0 ;
+C 82 ; WX 3613 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1204 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 0 ; N T ; B 0 0 0 0 ;
+C 85 ; WX 0 ; N U ; B -300 22 300 622 ;
+C 86 ; WX 1204 ; N V ; B 0 0 0 0 ;
+C 87 ; WX 1204 ; N W ; B 0 0 0 0 ;
+C 88 ; WX 0 ; N X ; B 0 0 0 0 ;
+C 89 ; WX 1204 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 1204 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1204 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1204 ; N bracketright ; B 0 0 0 0 ;
+C 96 ; WX 0 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 3613 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1204 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1204 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 1204 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 1204 ; N e ; B 0 0 0 0 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 622 ;
+C 103 ; WX 1204 ; N g ; B 0 0 0 0 ;
+C 104 ; WX 1204 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 0 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 0 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1204 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 3613 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 0 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 1204 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 1204 ; N o ; B 0 0 0 0 ;
+C 112 ; WX 1204 ; N p ; B 0 0 0 0 ;
+C 113 ; WX 1204 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 3613 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1204 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 0 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 1204 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 1204 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 1204 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 0 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 1204 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 1204 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 0 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 0 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 2409 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 2409 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 2409 ; N Cacute ; B 0 0 0 0 ;
+C 131 ; WX 2409 ; N Ccaron ; B 0 0 0 0 ;
+C 132 ; WX 3613 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 3613 ; N Ecaron ; B 0 0 0 0 ;
+C 134 ; WX 3613 ; N Eogonek ; B 0 0 0 0 ;
+C 135 ; WX 3613 ; N Gbreve ; B 0 0 0 0 ;
+C 136 ; WX 2409 ; N Lacute ; B 0 0 0 0 ;
+C 137 ; WX 2409 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 2409 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 2409 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 2409 ; N Ncaron ; B 0 0 0 0 ;
+C 141 ; WX 2409 ; N Eng ; B 0 0 0 0 ;
+C 142 ; WX 2409 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 2409 ; N Racute ; B 0 0 0 0 ;
+C 144 ; WX 2409 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 2409 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 2409 ; N Scaron ; B 0 0 0 0 ;
+C 147 ; WX 2409 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 3613 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 3613 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 3613 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 3613 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 3613 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 3613 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 3613 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 3613 ; N Zdot ; B 0 0 0 0 ;
+C 156 ; WX 3613 ; N IJ ; B 0 0 0 0 ;
+C 157 ; WX 3613 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 3613 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 3613 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 3613 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 3613 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 3613 ; N cacute ; B 0 0 0 0 ;
+C 163 ; WX 3613 ; N ccaron ; B 0 0 0 0 ;
+C 164 ; WX 4818 ; N dcaron ; B 0 0 0 0 ;
+C 165 ; WX 4818 ; N ecaron ; B 0 0 0 0 ;
+C 166 ; WX 4818 ; N eogonek ; B 0 0 0 0 ;
+C 167 ; WX 4818 ; N gbreve ; B 0 0 0 0 ;
+C 168 ; WX 4818 ; N lacute ; B 0 0 0 0 ;
+C 169 ; WX 4818 ; N lcaron ; B 0 0 0 0 ;
+C 170 ; WX 4818 ; N lslash ; B 0 0 0 0 ;
+C 171 ; WX 4818 ; N nacute ; B 0 0 0 0 ;
+C 172 ; WX 4818 ; N ncaron ; B 0 0 0 0 ;
+C 173 ; WX 4818 ; N eng ; B 0 0 0 0 ;
+C 174 ; WX 4818 ; N odblacute ; B 0 0 0 0 ;
+C 175 ; WX 4818 ; N racute ; B 0 0 0 0 ;
+C 176 ; WX 3613 ; N rcaron ; B 0 0 0 0 ;
+C 177 ; WX 3613 ; N sacute ; B 0 0 0 0 ;
+C 178 ; WX 3613 ; N scaron ; B 0 0 0 0 ;
+C 179 ; WX 3613 ; N scedilla ; B 0 0 0 0 ;
+C 180 ; WX 3613 ; N tcaron ; B 0 0 0 0 ;
+C 181 ; WX 3613 ; N tcedilla ; B 0 0 0 0 ;
+C 182 ; WX 3613 ; N udblacute ; B 0 0 0 0 ;
+C 183 ; WX 3613 ; N uring ; B 0 0 0 0 ;
+C 184 ; WX 3613 ; N ydieresis ; B 0 0 0 0 ;
+C 185 ; WX 3613 ; N zacute ; B 0 0 0 0 ;
+C 186 ; WX 3613 ; N zcaron ; B 0 0 0 0 ;
+C 187 ; WX 3613 ; N zdot ; B 0 0 0 0 ;
+C 188 ; WX 4818 ; N ij ; B 0 0 0 0 ;
+C 189 ; WX 4818 ; N exclamdown ; B 0 0 0 0 ;
+C 190 ; WX 4818 ; N questiondown ; B 0 0 0 0 ;
+C 191 ; WX 4818 ; N sterling ; B 0 0 0 0 ;
+C 192 ; WX 4818 ; N Agrave ; B 0 0 0 0 ;
+C 193 ; WX 4818 ; N Aacute ; B 0 0 0 0 ;
+C 194 ; WX 4818 ; N Acircumflex ; B 0 0 0 0 ;
+C 195 ; WX 4818 ; N Atilde ; B 0 0 0 0 ;
+C 196 ; WX 4818 ; N Adieresis ; B 0 0 0 0 ;
+C 197 ; WX 4818 ; N Aring ; B 0 0 0 0 ;
+C 198 ; WX 4818 ; N AE ; B 0 0 0 0 ;
+C 199 ; WX 4818 ; N Ccedilla ; B 0 0 0 0 ;
+C 200 ; WX 6022 ; N Egrave ; B 0 0 0 0 ;
+C 201 ; WX 6022 ; N Eacute ; B 0 0 0 0 ;
+C 202 ; WX 6022 ; N Ecircumflex ; B 0 0 0 0 ;
+C 203 ; WX 6022 ; N Edieresis ; B 0 0 0 0 ;
+C 204 ; WX 7227 ; N Igrave ; B 0 0 0 0 ;
+C 205 ; WX 7227 ; N Iacute ; B 0 0 0 0 ;
+C 206 ; WX 7227 ; N Icircumflex ; B 0 0 0 0 ;
+C 207 ; WX 7227 ; N Idieresis ; B 0 0 0 0 ;
+C 208 ; WX 6022 ; N Eth ; B 0 0 0 0 ;
+C 209 ; WX 6022 ; N Ntilde ; B 0 0 0 0 ;
+C 210 ; WX 6022 ; N Ograve ; B 0 0 0 0 ;
+C 211 ; WX 6022 ; N Oacute ; B 0 0 0 0 ;
+C 212 ; WX 6022 ; N Ocircumflex ; B 0 0 0 0 ;
+C 213 ; WX 6022 ; N Otilde ; B 0 0 0 0 ;
+C 214 ; WX 6022 ; N Odieresis ; B 0 0 0 0 ;
+C 215 ; WX 6022 ; N OE ; B 0 0 0 0 ;
+C 216 ; WX 6022 ; N Oslash ; B 0 0 0 0 ;
+C 217 ; WX 6022 ; N Ugrave ; B 0 0 0 0 ;
+C 218 ; WX 6022 ; N Uacute ; B 0 0 0 0 ;
+C 219 ; WX 6022 ; N Ucircumflex ; B 0 0 0 0 ;
+C 220 ; WX 4818 ; N Udieresis ; B 0 0 0 0 ;
+C 221 ; WX 4818 ; N Yacute ; B 0 0 0 0 ;
+C 222 ; WX 4818 ; N Thorn ; B 0 0 0 0 ;
+C 223 ; WX 4818 ; N Germandbls ; B 0 0 0 0 ;
+C 224 ; WX 4818 ; N agrave ; B 0 0 0 0 ;
+C 225 ; WX 4818 ; N aacute ; B 0 0 0 0 ;
+C 226 ; WX 4818 ; N acircumflex ; B 0 0 0 0 ;
+C 227 ; WX 4818 ; N atilde ; B 0 0 0 0 ;
+C 228 ; WX 4818 ; N adieresis ; B 0 0 0 0 ;
+C 229 ; WX 4818 ; N aring ; B 0 0 0 0 ;
+C 230 ; WX 4818 ; N ae ; B 0 0 0 0 ;
+C 231 ; WX 4818 ; N ccedilla ; B 0 0 0 0 ;
+C 232 ; WX 6022 ; N egrave ; B 0 0 0 0 ;
+C 233 ; WX 6022 ; N eacute ; B 0 0 0 0 ;
+C 234 ; WX 6022 ; N ecircumflex ; B 0 0 0 0 ;
+C 235 ; WX 6022 ; N edieresis ; B 0 0 0 0 ;
+C 236 ; WX 6022 ; N igrave ; B 0 0 0 0 ;
+C 237 ; WX 6022 ; N iacute ; B 0 0 0 0 ;
+C 238 ; WX 6022 ; N icircumflex ; B 0 0 0 0 ;
+C 239 ; WX 6022 ; N idieresis ; B 0 0 0 0 ;
+C 240 ; WX 6022 ; N eth ; B 0 0 0 0 ;
+C 241 ; WX 6022 ; N ntilde ; B 0 0 0 0 ;
+C 242 ; WX 6022 ; N ograve ; B 0 0 0 0 ;
+C 243 ; WX 6022 ; N oacute ; B 0 0 0 0 ;
+C 244 ; WX 7227 ; N ocircumflex ; B 0 0 0 0 ;
+C 245 ; WX 7227 ; N otilde ; B 0 0 0 0 ;
+C 246 ; WX 7227 ; N odieresis ; B 0 0 0 0 ;
+C 247 ; WX 7227 ; N oe ; B 0 0 0 0 ;
+C 248 ; WX 7227 ; N oslash ; B 0 0 0 0 ;
+C 249 ; WX 7227 ; N ugrave ; B 0 0 0 0 ;
+C 250 ; WX 7227 ; N uacute ; B 0 0 0 0 ;
+C 251 ; WX 7227 ; N ucircumflex ; B 0 0 0 0 ;
+C 252 ; WX 7227 ; N udieresis ; B 0 0 0 0 ;
+C 253 ; WX 7227 ; N yacute ; B 0 0 0 0 ;
+C 254 ; WX 7227 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 7227 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitg_sc_out.afm b/fonts/knitting/fonts/afm/knitg_sc_out.afm
new file mode 100644
index 0000000000..bbbc15307d
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitg_sc_out.afm
@@ -0,0 +1,261 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:04:35 2019
+FontName KnittingSymbols-grid-outcount-Medium
+FullName KnittingSymbols-grid-outcount
+FamilyName KnittingSymbols-grid-outcount
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -635 -198 1235 842
+CapHeight 622
+XHeight 842
+Ascender 622
+StartCharMetrics 240
+C 0 ; WX 1204 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1204 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1204 ; N circumflex ; B 0 0 0 0 ;
+C 3 ; WX 1204 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1204 ; N dieresis ; B 0 0 0 0 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 0 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 0 ; N guillemotleft ; B -550 -114 360 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 0 0 0 0 ;
+C 21 ; WX 0 ; N endash ; B 0 0 0 0 ;
+C 22 ; WX 602 ; N emdash ; B 0 252 600 392 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 252 600 842 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 252 411 842 ;
+C 27 ; WX 602 ; N ff ; B 190 -198 600 392 ;
+C 28 ; WX 602 ; N fi ; B 0 -198 411 392 ;
+C 29 ; WX 1204 ; N fl ; B 0 -198 1200 392 ;
+C 30 ; WX 1204 ; N ffi ; B 0 252 1200 842 ;
+C 31 ; WX 1204 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 1204 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 0 ; N quotedbl ; B -360 -114 550 757 ;
+C 35 ; WX 2409 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 3613 ; N ampersand ; B 0 0 0 0 ;
+C 39 ; WX 0 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1204 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1204 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1204 ; N plus ; B 0 0 0 0 ;
+C 44 ; WX 0 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 0 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 0 0 0 0 ;
+C 48 ; WX 2409 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1204 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 1204 ; N two ; B 0 0 0 0 ;
+C 51 ; WX 1204 ; N three ; B 0 0 0 0 ;
+C 52 ; WX 1204 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 1204 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1204 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 2409 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 2409 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 2409 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 1204 ; N colon ; B 0 0 0 0 ;
+C 59 ; WX 1204 ; N semicolon ; B 0 0 0 0 ;
+C 60 ; WX 1204 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1204 ; N equal ; B 0 0 0 0 ;
+C 62 ; WX 1204 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1204 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1204 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 1204 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1204 ; N B ; B 0 0 0 0 ;
+C 67 ; WX 1204 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 1204 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 3613 ; N E ; B 0 0 0 0 ;
+C 70 ; WX 0 ; N F ; B -635 287 635 622 ;
+C 71 ; WX 1204 ; N G ; B 0 0 0 0 ;
+C 72 ; WX 1204 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 1204 ; N I ; B 0 0 0 0 ;
+C 74 ; WX 1204 ; N J ; B 0 0 0 0 ;
+C 75 ; WX 1204 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 1204 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 1204 ; N M ; B 0 0 0 0 ;
+C 78 ; WX 1204 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 1204 ; N O ; B 0 0 0 0 ;
+C 80 ; WX 1204 ; N P ; B 0 0 0 0 ;
+C 81 ; WX 1204 ; N Q ; B 0 0 0 0 ;
+C 82 ; WX 1204 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1204 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 1204 ; N T ; B 0 0 0 0 ;
+C 85 ; WX 1204 ; N U ; B -35 22 1235 622 ;
+C 86 ; WX 2409 ; N V ; B 0 0 0 0 ;
+C 87 ; WX 3613 ; N W ; B 0 0 0 0 ;
+C 88 ; WX 1204 ; N X ; B 0 0 0 0 ;
+C 89 ; WX 3613 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 3613 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1204 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1204 ; N bracketright ; B 0 0 0 0 ;
+C 96 ; WX 0 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1204 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1204 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 1204 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 1204 ; N e ; B 0 0 0 0 ;
+C 102 ; WX 0 ; N f ; B -635 287 635 622 ;
+C 103 ; WX 1204 ; N g ; B 0 0 0 0 ;
+C 104 ; WX 0 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 1204 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 1204 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1204 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 1204 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 1204 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 1204 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 1204 ; N o ; B 0 0 0 0 ;
+C 112 ; WX 1204 ; N p ; B 0 0 0 0 ;
+C 113 ; WX 1204 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 1204 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1204 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 1204 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 2409 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 2409 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 3613 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 1204 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 2409 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 2409 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 0 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 0 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 2409 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 2409 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 2409 ; N Cacute ; B 0 0 0 0 ;
+C 131 ; WX 2409 ; N Ccaron ; B 0 0 0 0 ;
+C 132 ; WX 3613 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 3613 ; N Ecaron ; B 0 0 0 0 ;
+C 134 ; WX 3613 ; N Eogonek ; B 0 0 0 0 ;
+C 135 ; WX 3613 ; N Gbreve ; B 0 0 0 0 ;
+C 136 ; WX 2409 ; N Lacute ; B 0 0 0 0 ;
+C 137 ; WX 2409 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 2409 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 2409 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 2409 ; N Ncaron ; B 0 0 0 0 ;
+C 141 ; WX 2409 ; N Eng ; B 0 0 0 0 ;
+C 142 ; WX 2409 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 2409 ; N Racute ; B 0 0 0 0 ;
+C 144 ; WX 2409 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 2409 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 2409 ; N Scaron ; B 0 0 0 0 ;
+C 147 ; WX 2409 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 3613 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 3613 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 3613 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 3613 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 3613 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 3613 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 3613 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 3613 ; N Zdot ; B 0 0 0 0 ;
+C 156 ; WX 3613 ; N IJ ; B 0 0 0 0 ;
+C 157 ; WX 3613 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 3613 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 3613 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 3613 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 3613 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 3613 ; N cacute ; B 0 0 0 0 ;
+C 163 ; WX 3613 ; N ccaron ; B 0 0 0 0 ;
+C 164 ; WX 4818 ; N dcaron ; B 0 0 0 0 ;
+C 165 ; WX 4818 ; N ecaron ; B 0 0 0 0 ;
+C 166 ; WX 4818 ; N eogonek ; B 0 0 0 0 ;
+C 167 ; WX 4818 ; N gbreve ; B 0 0 0 0 ;
+C 168 ; WX 4818 ; N lacute ; B 0 0 0 0 ;
+C 169 ; WX 4818 ; N lcaron ; B 0 0 0 0 ;
+C 170 ; WX 4818 ; N lslash ; B 0 0 0 0 ;
+C 171 ; WX 4818 ; N nacute ; B 0 0 0 0 ;
+C 172 ; WX 4818 ; N ncaron ; B 0 0 0 0 ;
+C 173 ; WX 4818 ; N eng ; B 0 0 0 0 ;
+C 174 ; WX 4818 ; N odblacute ; B 0 0 0 0 ;
+C 175 ; WX 4818 ; N racute ; B 0 0 0 0 ;
+C 176 ; WX 3613 ; N rcaron ; B 0 0 0 0 ;
+C 177 ; WX 3613 ; N sacute ; B 0 0 0 0 ;
+C 178 ; WX 3613 ; N scaron ; B 0 0 0 0 ;
+C 179 ; WX 3613 ; N scedilla ; B 0 0 0 0 ;
+C 180 ; WX 3613 ; N tcaron ; B 0 0 0 0 ;
+C 181 ; WX 3613 ; N tcedilla ; B 0 0 0 0 ;
+C 182 ; WX 3613 ; N udblacute ; B 0 0 0 0 ;
+C 183 ; WX 3613 ; N uring ; B 0 0 0 0 ;
+C 184 ; WX 3613 ; N ydieresis ; B 0 0 0 0 ;
+C 185 ; WX 3613 ; N zacute ; B 0 0 0 0 ;
+C 186 ; WX 3613 ; N zcaron ; B 0 0 0 0 ;
+C 187 ; WX 3613 ; N zdot ; B 0 0 0 0 ;
+C 188 ; WX 4818 ; N ij ; B 0 0 0 0 ;
+C 189 ; WX 4818 ; N exclamdown ; B 0 0 0 0 ;
+C 190 ; WX 4818 ; N questiondown ; B 0 0 0 0 ;
+C 191 ; WX 4818 ; N sterling ; B 0 0 0 0 ;
+C 192 ; WX 4818 ; N Agrave ; B 0 0 0 0 ;
+C 193 ; WX 4818 ; N Aacute ; B 0 0 0 0 ;
+C 194 ; WX 4818 ; N Acircumflex ; B 0 0 0 0 ;
+C 195 ; WX 4818 ; N Atilde ; B 0 0 0 0 ;
+C 196 ; WX 4818 ; N Adieresis ; B 0 0 0 0 ;
+C 197 ; WX 4818 ; N Aring ; B 0 0 0 0 ;
+C 198 ; WX 4818 ; N AE ; B 0 0 0 0 ;
+C 199 ; WX 4818 ; N Ccedilla ; B 0 0 0 0 ;
+C 200 ; WX 6022 ; N Egrave ; B 0 0 0 0 ;
+C 201 ; WX 6022 ; N Eacute ; B 0 0 0 0 ;
+C 202 ; WX 6022 ; N Ecircumflex ; B 0 0 0 0 ;
+C 203 ; WX 6022 ; N Edieresis ; B 0 0 0 0 ;
+C 204 ; WX 7227 ; N Igrave ; B 0 0 0 0 ;
+C 205 ; WX 7227 ; N Iacute ; B 0 0 0 0 ;
+C 206 ; WX 7227 ; N Icircumflex ; B 0 0 0 0 ;
+C 207 ; WX 7227 ; N Idieresis ; B 0 0 0 0 ;
+C 208 ; WX 6022 ; N Eth ; B 0 0 0 0 ;
+C 209 ; WX 6022 ; N Ntilde ; B 0 0 0 0 ;
+C 210 ; WX 6022 ; N Ograve ; B 0 0 0 0 ;
+C 211 ; WX 6022 ; N Oacute ; B 0 0 0 0 ;
+C 212 ; WX 6022 ; N Ocircumflex ; B 0 0 0 0 ;
+C 213 ; WX 6022 ; N Otilde ; B 0 0 0 0 ;
+C 214 ; WX 6022 ; N Odieresis ; B 0 0 0 0 ;
+C 215 ; WX 6022 ; N OE ; B 0 0 0 0 ;
+C 216 ; WX 6022 ; N Oslash ; B 0 0 0 0 ;
+C 217 ; WX 6022 ; N Ugrave ; B 0 0 0 0 ;
+C 218 ; WX 6022 ; N Uacute ; B 0 0 0 0 ;
+C 219 ; WX 6022 ; N Ucircumflex ; B 0 0 0 0 ;
+C 220 ; WX 4818 ; N Udieresis ; B 0 0 0 0 ;
+C 221 ; WX 4818 ; N Yacute ; B 0 0 0 0 ;
+C 222 ; WX 4818 ; N Thorn ; B 0 0 0 0 ;
+C 223 ; WX 4818 ; N Germandbls ; B 0 0 0 0 ;
+C 224 ; WX 4818 ; N agrave ; B 0 0 0 0 ;
+C 225 ; WX 4818 ; N aacute ; B 0 0 0 0 ;
+C 226 ; WX 4818 ; N acircumflex ; B 0 0 0 0 ;
+C 227 ; WX 4818 ; N atilde ; B 0 0 0 0 ;
+C 228 ; WX 4818 ; N adieresis ; B 0 0 0 0 ;
+C 229 ; WX 4818 ; N aring ; B 0 0 0 0 ;
+C 230 ; WX 4818 ; N ae ; B 0 0 0 0 ;
+C 231 ; WX 4818 ; N ccedilla ; B 0 0 0 0 ;
+C 232 ; WX 6022 ; N egrave ; B 0 0 0 0 ;
+C 233 ; WX 6022 ; N eacute ; B 0 0 0 0 ;
+C 234 ; WX 6022 ; N ecircumflex ; B 0 0 0 0 ;
+C 235 ; WX 6022 ; N edieresis ; B 0 0 0 0 ;
+C 236 ; WX 6022 ; N igrave ; B 0 0 0 0 ;
+C 237 ; WX 6022 ; N iacute ; B 0 0 0 0 ;
+C 238 ; WX 6022 ; N icircumflex ; B 0 0 0 0 ;
+C 239 ; WX 6022 ; N idieresis ; B 0 0 0 0 ;
+C 240 ; WX 6022 ; N eth ; B 0 0 0 0 ;
+C 241 ; WX 6022 ; N ntilde ; B 0 0 0 0 ;
+C 242 ; WX 6022 ; N ograve ; B 0 0 0 0 ;
+C 243 ; WX 6022 ; N oacute ; B 0 0 0 0 ;
+C 244 ; WX 7227 ; N ocircumflex ; B 0 0 0 0 ;
+C 245 ; WX 7227 ; N otilde ; B 0 0 0 0 ;
+C 246 ; WX 7227 ; N odieresis ; B 0 0 0 0 ;
+C 247 ; WX 7227 ; N oe ; B 0 0 0 0 ;
+C 248 ; WX 7227 ; N oslash ; B 0 0 0 0 ;
+C 249 ; WX 7227 ; N ugrave ; B 0 0 0 0 ;
+C 250 ; WX 7227 ; N uacute ; B 0 0 0 0 ;
+C 251 ; WX 7227 ; N ucircumflex ; B 0 0 0 0 ;
+C 252 ; WX 7227 ; N udieresis ; B 0 0 0 0 ;
+C 253 ; WX 7227 ; N yacute ; B 0 0 0 0 ;
+C 254 ; WX 7227 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 7227 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitgg.afm b/fonts/knitting/fonts/afm/knitgg.afm
new file mode 100644
index 0000000000..8b26d665e3
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitgg.afm
@@ -0,0 +1,262 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:04:44 2019
+FontName KnittingSymbols-grid-grid-Medium
+FullName KnittingSymbols-grid-grid
+FamilyName KnittingSymbols-grid-grid
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -15 -293 7215 937
+CapHeight 937
+XHeight 937
+Ascender 937
+Descender -293
+StartCharMetrics 240
+C 0 ; WX 1204 ; N grave ; B -15 -293 1215 937 ;
+C 1 ; WX 1204 ; N acute ; B -15 -293 1215 937 ;
+C 2 ; WX 1204 ; N circumflex ; B -15 -293 1215 937 ;
+C 3 ; WX 1204 ; N tilde ; B -15 -293 1215 937 ;
+C 4 ; WX 1204 ; N dieresis ; B -15 -293 1215 937 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B -15 -293 1215 937 ;
+C 6 ; WX 0 ; N ring ; B -15 -293 15 937 ;
+C 17 ; WX 1204 ; N quotedblright ; B -15 -293 1215 937 ;
+C 18 ; WX 1204 ; N quotedblbase ; B -15 -293 1215 937 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 0 0 0 0 ;
+C 20 ; WX 1204 ; N guillemotright ; B -15 -293 1215 937 ;
+C 21 ; WX 1204 ; N endash ; B -15 -293 1215 937 ;
+C 22 ; WX 602 ; N emdash ; B -15 -293 615 937 ;
+C 23 ; WX 1204 ; N compwordmark ; B -15 -293 1215 937 ;
+C 24 ; WX 1204 ; N perthousandzero ; B -15 -293 1215 937 ;
+C 25 ; WX 602 ; N dotlessi ; B -15 -293 600 937 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 -293 615 937 ;
+C 27 ; WX 602 ; N ff ; B -15 -293 600 937 ;
+C 28 ; WX 602 ; N fi ; B 0 -293 615 937 ;
+C 29 ; WX 1204 ; N fl ; B -15 -293 1215 937 ;
+C 30 ; WX 1204 ; N ffi ; B -15 -293 1215 937 ;
+C 31 ; WX 6022 ; N ffl ; B -15 -293 6015 937 ;
+C 33 ; WX 1204 ; N exclam ; B -15 -293 1215 937 ;
+C 34 ; WX 1204 ; N quotedbl ; B 0 0 0 0 ;
+C 35 ; WX 1204 ; N numbersign ; B -15 -293 1215 937 ;
+C 38 ; WX 1204 ; N ampersand ; B -15 -293 1215 937 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B -15 -293 1215 937 ;
+C 41 ; WX 1204 ; N parenright ; B -15 -293 1215 937 ;
+C 42 ; WX 1204 ; N asterisk ; B -15 -293 1215 937 ;
+C 43 ; WX 1204 ; N plus ; B -15 -293 1215 937 ;
+C 44 ; WX 1204 ; N comma ; B -15 -293 1215 937 ;
+C 45 ; WX 1204 ; N hyphen ; B -15 -293 1215 937 ;
+C 46 ; WX 1204 ; N period ; B -15 -293 1215 937 ;
+C 47 ; WX 1204 ; N slash ; B -15 -293 1215 937 ;
+C 48 ; WX 1204 ; N zero ; B -15 -293 1215 937 ;
+C 49 ; WX 1204 ; N one ; B -15 -293 1215 937 ;
+C 50 ; WX 1204 ; N two ; B -15 -293 1215 937 ;
+C 51 ; WX 1204 ; N three ; B -15 -293 1215 937 ;
+C 52 ; WX 1204 ; N four ; B -15 -293 1215 937 ;
+C 53 ; WX 1204 ; N five ; B -15 -293 1215 937 ;
+C 54 ; WX 1204 ; N six ; B -15 -293 1215 937 ;
+C 55 ; WX 1204 ; N seven ; B -15 -293 1215 937 ;
+C 56 ; WX 1204 ; N eight ; B -15 -293 1215 937 ;
+C 57 ; WX 1204 ; N nine ; B -15 -293 1215 937 ;
+C 58 ; WX 1204 ; N colon ; B -15 -293 1215 937 ;
+C 59 ; WX 1204 ; N semicolon ; B -15 -293 1215 937 ;
+C 60 ; WX 1204 ; N less ; B -15 -293 1215 937 ;
+C 61 ; WX 1204 ; N equal ; B -15 -293 1215 937 ;
+C 62 ; WX 1204 ; N greater ; B -15 -293 1215 937 ;
+C 63 ; WX 1204 ; N question ; B -15 -293 1215 937 ;
+C 64 ; WX 1204 ; N at ; B -15 -293 1215 937 ;
+C 65 ; WX 1204 ; N A ; B -15 -293 1215 937 ;
+C 66 ; WX 1204 ; N B ; B -15 -293 1215 937 ;
+C 67 ; WX 1204 ; N C ; B -15 -293 1215 937 ;
+C 68 ; WX 1204 ; N D ; B -15 -293 1215 937 ;
+C 69 ; WX 1204 ; N E ; B -15 -293 1215 937 ;
+C 70 ; WX 1204 ; N F ; B 0 0 0 0 ;
+C 71 ; WX 1204 ; N G ; B -15 -293 1215 937 ;
+C 72 ; WX 1204 ; N H ; B -15 -293 1215 937 ;
+C 73 ; WX 1204 ; N I ; B -15 -293 1215 937 ;
+C 74 ; WX 1204 ; N J ; B -15 -293 1215 937 ;
+C 75 ; WX 1204 ; N K ; B -15 -293 1215 937 ;
+C 76 ; WX 1204 ; N L ; B -15 -293 1215 937 ;
+C 77 ; WX 1204 ; N M ; B -15 -293 1215 937 ;
+C 78 ; WX 1204 ; N N ; B -15 -293 1215 937 ;
+C 79 ; WX 1204 ; N O ; B -15 -293 1215 937 ;
+C 80 ; WX 1204 ; N P ; B -15 -293 1215 937 ;
+C 81 ; WX 1204 ; N Q ; B -15 -293 1215 937 ;
+C 82 ; WX 1204 ; N R ; B -15 -293 1215 937 ;
+C 83 ; WX 1204 ; N S ; B -15 -293 1215 937 ;
+C 84 ; WX 1204 ; N T ; B -15 -293 1215 937 ;
+C 85 ; WX 1204 ; N U ; B 0 0 0 0 ;
+C 86 ; WX 1204 ; N V ; B -15 -293 1215 937 ;
+C 87 ; WX 1204 ; N W ; B -15 -293 1215 937 ;
+C 88 ; WX 1204 ; N X ; B -15 -293 1215 937 ;
+C 89 ; WX 1204 ; N Y ; B -15 -293 1215 937 ;
+C 90 ; WX 1204 ; N Z ; B -15 -293 1215 937 ;
+C 91 ; WX 1204 ; N bracketleft ; B -15 -293 1215 937 ;
+C 93 ; WX 1204 ; N bracketright ; B -15 -293 1215 937 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B -15 -293 1215 937 ;
+C 98 ; WX 1204 ; N b ; B -15 -293 1215 937 ;
+C 99 ; WX 1204 ; N c ; B -15 -293 1215 937 ;
+C 100 ; WX 1204 ; N d ; B -15 -293 1215 937 ;
+C 101 ; WX 1204 ; N e ; B -15 -293 1215 937 ;
+C 102 ; WX 1204 ; N f ; B 0 0 0 0 ;
+C 103 ; WX 1204 ; N g ; B -15 -293 1215 937 ;
+C 104 ; WX 1204 ; N h ; B -15 -293 1215 937 ;
+C 105 ; WX 1204 ; N i ; B -15 -293 1215 937 ;
+C 106 ; WX 1204 ; N j ; B -15 -293 1215 937 ;
+C 107 ; WX 1204 ; N k ; B -15 -293 1215 937 ;
+C 108 ; WX 1204 ; N l ; B -15 -293 1215 937 ;
+C 109 ; WX 1204 ; N m ; B -15 -293 1215 937 ;
+C 110 ; WX 1204 ; N n ; B -15 -293 1215 937 ;
+C 111 ; WX 1204 ; N o ; B -15 -293 1215 937 ;
+C 112 ; WX 1204 ; N p ; B -15 -293 1215 937 ;
+C 113 ; WX 1204 ; N q ; B -15 -293 1215 937 ;
+C 114 ; WX 1204 ; N r ; B -15 -293 1215 937 ;
+C 115 ; WX 1204 ; N s ; B -15 -293 1215 937 ;
+C 116 ; WX 1204 ; N t ; B -15 -293 1215 937 ;
+C 117 ; WX 1204 ; N u ; B -15 -293 1215 937 ;
+C 118 ; WX 1204 ; N v ; B -15 -293 1215 937 ;
+C 119 ; WX 1204 ; N w ; B -15 -293 1215 937 ;
+C 120 ; WX 1204 ; N x ; B -15 -293 1215 937 ;
+C 121 ; WX 1204 ; N y ; B -15 -293 1215 937 ;
+C 122 ; WX 1204 ; N z ; B -15 -293 1215 937 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 151 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B -15 -293 1215 937 ;
+C 128 ; WX 2409 ; N Abreve ; B -15 -293 2415 937 ;
+C 129 ; WX 2409 ; N Aogonek ; B -15 -293 2415 937 ;
+C 130 ; WX 2409 ; N Cacute ; B -15 -293 2415 937 ;
+C 131 ; WX 2409 ; N Ccaron ; B -15 -293 2415 937 ;
+C 132 ; WX 3613 ; N Dcaron ; B -15 -293 3615 937 ;
+C 133 ; WX 3613 ; N Ecaron ; B -15 -293 3615 937 ;
+C 134 ; WX 3613 ; N Eogonek ; B -15 -293 3615 937 ;
+C 135 ; WX 3613 ; N Gbreve ; B -15 -293 3615 937 ;
+C 136 ; WX 2409 ; N Lacute ; B -15 -293 2415 937 ;
+C 137 ; WX 2409 ; N Lcaron ; B -15 -293 2415 937 ;
+C 138 ; WX 2409 ; N Lslash ; B -15 -293 2415 937 ;
+C 139 ; WX 2409 ; N Nacute ; B -15 -293 2415 937 ;
+C 140 ; WX 2409 ; N Ncaron ; B -15 -293 2415 937 ;
+C 141 ; WX 2409 ; N Eng ; B -15 -293 2415 937 ;
+C 142 ; WX 2409 ; N Odblacute ; B -15 -293 2415 937 ;
+C 143 ; WX 2409 ; N Racute ; B -15 -293 2415 937 ;
+C 144 ; WX 2409 ; N Rcaron ; B -15 -293 2415 937 ;
+C 145 ; WX 2409 ; N Sacute ; B -15 -293 2415 937 ;
+C 146 ; WX 2409 ; N Scaron ; B -15 -293 2415 937 ;
+C 147 ; WX 2409 ; N Scedilla ; B -15 -293 2415 937 ;
+C 148 ; WX 3613 ; N Tcaron ; B -15 -293 3615 937 ;
+C 149 ; WX 3613 ; N Tcedilla ; B -15 -293 3615 937 ;
+C 150 ; WX 3613 ; N Udblacute ; B -15 -293 3615 937 ;
+C 151 ; WX 3613 ; N Uring ; B -15 -293 3615 937 ;
+C 152 ; WX 3613 ; N Ydieresis ; B -15 -293 3615 937 ;
+C 153 ; WX 3613 ; N Zacute ; B -15 -293 3615 937 ;
+C 154 ; WX 3613 ; N Zcaron ; B -15 -293 3615 937 ;
+C 155 ; WX 3613 ; N Zdot ; B -15 -293 3615 937 ;
+C 156 ; WX 3613 ; N IJ ; B -15 -293 3615 937 ;
+C 157 ; WX 3613 ; N Idot ; B -15 -293 3615 937 ;
+C 158 ; WX 3613 ; N dmacron ; B -15 -293 3615 937 ;
+C 159 ; WX 3613 ; N section ; B -15 -293 3615 937 ;
+C 160 ; WX 3613 ; N abreve ; B -15 -293 3615 937 ;
+C 161 ; WX 3613 ; N aogonek ; B -15 -293 3615 937 ;
+C 162 ; WX 3613 ; N cacute ; B -15 -293 3615 937 ;
+C 163 ; WX 3613 ; N ccaron ; B -15 -293 3615 937 ;
+C 164 ; WX 4818 ; N dcaron ; B -15 -293 4815 937 ;
+C 165 ; WX 4818 ; N ecaron ; B -15 -293 4815 937 ;
+C 166 ; WX 4818 ; N eogonek ; B -15 -293 4815 937 ;
+C 167 ; WX 4818 ; N gbreve ; B -15 -293 4815 937 ;
+C 168 ; WX 4818 ; N lacute ; B -15 -293 4815 937 ;
+C 169 ; WX 4818 ; N lcaron ; B -15 -293 4815 937 ;
+C 170 ; WX 4818 ; N lslash ; B -15 -293 4815 937 ;
+C 171 ; WX 4818 ; N nacute ; B -15 -293 4815 937 ;
+C 172 ; WX 4818 ; N ncaron ; B -15 -293 4815 937 ;
+C 173 ; WX 4818 ; N eng ; B -15 -293 4815 937 ;
+C 174 ; WX 4818 ; N odblacute ; B -15 -293 4815 937 ;
+C 175 ; WX 4818 ; N racute ; B -15 -293 4815 937 ;
+C 176 ; WX 3613 ; N rcaron ; B -15 -293 3615 937 ;
+C 177 ; WX 3613 ; N sacute ; B -15 -293 3615 937 ;
+C 178 ; WX 3613 ; N scaron ; B -15 -293 3615 937 ;
+C 179 ; WX 3613 ; N scedilla ; B -15 -293 3615 937 ;
+C 180 ; WX 3613 ; N tcaron ; B -15 -293 3615 937 ;
+C 181 ; WX 3613 ; N tcedilla ; B -15 -293 3615 937 ;
+C 182 ; WX 3613 ; N udblacute ; B -15 -293 3615 937 ;
+C 183 ; WX 3613 ; N uring ; B -15 -293 3615 937 ;
+C 184 ; WX 3613 ; N ydieresis ; B -15 -293 3615 937 ;
+C 185 ; WX 3613 ; N zacute ; B -15 -293 3615 937 ;
+C 186 ; WX 3613 ; N zcaron ; B -15 -293 3615 937 ;
+C 187 ; WX 3613 ; N zdot ; B -15 -293 3615 937 ;
+C 188 ; WX 4818 ; N ij ; B -15 -293 4815 937 ;
+C 189 ; WX 4818 ; N exclamdown ; B -15 -293 4815 937 ;
+C 190 ; WX 4818 ; N questiondown ; B -15 -293 4815 937 ;
+C 191 ; WX 4818 ; N sterling ; B -15 -293 4815 937 ;
+C 192 ; WX 4818 ; N Agrave ; B -15 -293 4815 937 ;
+C 193 ; WX 4818 ; N Aacute ; B -15 -293 4815 937 ;
+C 194 ; WX 4818 ; N Acircumflex ; B -15 -293 4815 937 ;
+C 195 ; WX 4818 ; N Atilde ; B -15 -293 4815 937 ;
+C 196 ; WX 4818 ; N Adieresis ; B -15 -293 4815 937 ;
+C 197 ; WX 4818 ; N Aring ; B -15 -293 4815 937 ;
+C 198 ; WX 4818 ; N AE ; B -15 -293 4815 937 ;
+C 199 ; WX 4818 ; N Ccedilla ; B -15 -293 4815 937 ;
+C 200 ; WX 6022 ; N Egrave ; B -15 -293 6015 937 ;
+C 201 ; WX 6022 ; N Eacute ; B -15 -293 6015 937 ;
+C 202 ; WX 6022 ; N Ecircumflex ; B -15 -293 6015 937 ;
+C 203 ; WX 6022 ; N Edieresis ; B -15 -293 6015 937 ;
+C 204 ; WX 7227 ; N Igrave ; B -15 -293 7215 937 ;
+C 205 ; WX 7227 ; N Iacute ; B -15 -293 7215 937 ;
+C 206 ; WX 7227 ; N Icircumflex ; B -15 -293 7215 937 ;
+C 207 ; WX 7227 ; N Idieresis ; B -15 -293 7215 937 ;
+C 208 ; WX 6022 ; N Eth ; B -15 -293 6015 937 ;
+C 209 ; WX 6022 ; N Ntilde ; B -15 -293 6015 937 ;
+C 210 ; WX 6022 ; N Ograve ; B -15 -293 6015 937 ;
+C 211 ; WX 6022 ; N Oacute ; B -15 -293 6015 937 ;
+C 212 ; WX 6022 ; N Ocircumflex ; B -15 -293 6015 937 ;
+C 213 ; WX 6022 ; N Otilde ; B -15 -293 6015 937 ;
+C 214 ; WX 6022 ; N Odieresis ; B -15 -293 6015 937 ;
+C 215 ; WX 6022 ; N OE ; B -15 -293 6015 937 ;
+C 216 ; WX 6022 ; N Oslash ; B -15 -293 6015 937 ;
+C 217 ; WX 6022 ; N Ugrave ; B -15 -293 6015 937 ;
+C 218 ; WX 6022 ; N Uacute ; B -15 -293 6015 937 ;
+C 219 ; WX 6022 ; N Ucircumflex ; B -15 -293 6015 937 ;
+C 220 ; WX 4818 ; N Udieresis ; B -15 -293 4815 937 ;
+C 221 ; WX 4818 ; N Yacute ; B -15 -293 4815 937 ;
+C 222 ; WX 4818 ; N Thorn ; B -15 -293 4815 937 ;
+C 223 ; WX 4818 ; N Germandbls ; B -15 -293 4815 937 ;
+C 224 ; WX 4818 ; N agrave ; B -15 -293 4815 937 ;
+C 225 ; WX 4818 ; N aacute ; B -15 -293 4815 937 ;
+C 226 ; WX 4818 ; N acircumflex ; B -15 -293 4815 937 ;
+C 227 ; WX 4818 ; N atilde ; B -15 -293 4815 937 ;
+C 228 ; WX 4818 ; N adieresis ; B -15 -293 4815 937 ;
+C 229 ; WX 4818 ; N aring ; B -15 -293 4815 937 ;
+C 230 ; WX 4818 ; N ae ; B -15 -293 4815 937 ;
+C 231 ; WX 4818 ; N ccedilla ; B -15 -293 4815 937 ;
+C 232 ; WX 6022 ; N egrave ; B -15 -293 6015 937 ;
+C 233 ; WX 6022 ; N eacute ; B -15 -293 6015 937 ;
+C 234 ; WX 6022 ; N ecircumflex ; B -15 -293 6015 937 ;
+C 235 ; WX 6022 ; N edieresis ; B -15 -293 6015 937 ;
+C 236 ; WX 6022 ; N igrave ; B -15 -293 6015 937 ;
+C 237 ; WX 6022 ; N iacute ; B -15 -293 6015 937 ;
+C 238 ; WX 6022 ; N icircumflex ; B -15 -293 6015 937 ;
+C 239 ; WX 6022 ; N idieresis ; B -15 -293 6015 937 ;
+C 240 ; WX 6022 ; N eth ; B -15 -293 6015 937 ;
+C 241 ; WX 6022 ; N ntilde ; B -15 -293 6015 937 ;
+C 242 ; WX 6022 ; N ograve ; B -15 -293 6015 937 ;
+C 243 ; WX 6022 ; N oacute ; B -15 -293 6015 937 ;
+C 244 ; WX 7227 ; N ocircumflex ; B -15 -293 7215 937 ;
+C 245 ; WX 7227 ; N otilde ; B -15 -293 7215 937 ;
+C 246 ; WX 7227 ; N odieresis ; B -15 -293 7215 937 ;
+C 247 ; WX 7227 ; N oe ; B -15 -293 7215 937 ;
+C 248 ; WX 7227 ; N oslash ; B -15 -293 7215 937 ;
+C 249 ; WX 7227 ; N ugrave ; B -15 -293 7215 937 ;
+C 250 ; WX 7227 ; N uacute ; B -15 -293 7215 937 ;
+C 251 ; WX 7227 ; N ucircumflex ; B -15 -293 7215 937 ;
+C 252 ; WX 7227 ; N udieresis ; B -15 -293 7215 937 ;
+C 253 ; WX 7227 ; N yacute ; B -15 -293 7215 937 ;
+C 254 ; WX 7227 ; N thorn ; B -15 -293 7215 937 ;
+C 255 ; WX 7227 ; N germandbls ; B -15 -293 7215 937 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitgn.afm b/fonts/knitting/fonts/afm/knitgn.afm
new file mode 100644
index 0000000000..0d1dd4936f
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitgn.afm
@@ -0,0 +1,262 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:08 2019
+FontName KnittingSymbols-grid-foreground-Medium
+FullName KnittingSymbols-grid-foreground
+FamilyName KnittingSymbols-grid-foreground
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -35 -313 5611 957
+CapHeight 532
+XHeight 687
+Ascender 735
+Descender -166
+StartCharMetrics 240
+C 0 ; WX 1204 ; N grave ; B 80 -198 1120 842 ;
+C 1 ; WX 1204 ; N acute ; B 265 472 935 842 ;
+C 2 ; WX 1204 ; N circumflex ; B 265 472 935 842 ;
+C 3 ; WX 1204 ; N tilde ; B 265 -198 935 172 ;
+C 4 ; WX 1204 ; N dieresis ; B 265 -198 935 172 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 214 1200 284 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 214 1010 584 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 50 -114 960 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 0 0 0 0 ;
+C 21 ; WX 1204 ; N endash ; B 0 0 0 0 ;
+C 22 ; WX 602 ; N emdash ; B 0 252 600 392 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 -28 1200 545 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 -28 990 712 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 252 600 842 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 252 411 842 ;
+C 27 ; WX 602 ; N ff ; B 190 -198 600 392 ;
+C 28 ; WX 602 ; N fi ; B 0 -198 411 392 ;
+C 29 ; WX 1204 ; N fl ; B 0 -198 1200 392 ;
+C 30 ; WX 1204 ; N ffi ; B 0 252 1200 842 ;
+C 31 ; WX 6022 ; N ffl ; B 390 -198 5611 842 ;
+C 33 ; WX 1204 ; N exclam ; B 260 -18 940 662 ;
+C 34 ; WX 1204 ; N quotedbl ; B 240 -114 1150 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 260 -18 900 662 ;
+C 38 ; WX 1204 ; N ampersand ; B 210 -68 990 712 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 260 -18 900 662 ;
+C 41 ; WX 1204 ; N parenright ; B 300 -18 940 662 ;
+C 42 ; WX 1204 ; N asterisk ; B 301 -18 899 662 ;
+C 43 ; WX 1204 ; N plus ; B 0 0 0 0 ;
+C 44 ; WX 1204 ; N comma ; B 300 22 900 622 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 1204 ; N period ; B 300 22 900 622 ;
+C 47 ; WX 1204 ; N slash ; B 0 0 0 0 ;
+C 48 ; WX 1204 ; N zero ; B 300 -18 940 662 ;
+C 49 ; WX 1204 ; N one ; B 190 214 1200 584 ;
+C 50 ; WX 1204 ; N two ; B 260 -18 940 662 ;
+C 51 ; WX 1204 ; N three ; B 210 -68 990 712 ;
+C 52 ; WX 1204 ; N four ; B 263 -18 937 662 ;
+C 53 ; WX 1204 ; N five ; B 263 -18 937 662 ;
+C 54 ; WX 1204 ; N six ; B 250 -18 950 662 ;
+C 55 ; WX 1204 ; N seven ; B 356 -28 804 672 ;
+C 56 ; WX 1204 ; N eight ; B 396 -28 844 672 ;
+C 57 ; WX 1204 ; N nine ; B 80 -88 1120 672 ;
+C 58 ; WX 1204 ; N colon ; B 260 -18 900 662 ;
+C 59 ; WX 1204 ; N semicolon ; B 300 -18 940 662 ;
+C 60 ; WX 1204 ; N less ; B 300 -18 940 662 ;
+C 61 ; WX 1204 ; N equal ; B 0 0 0 0 ;
+C 62 ; WX 1204 ; N greater ; B 260 -18 900 662 ;
+C 63 ; WX 1204 ; N question ; B 210 -28 1200 712 ;
+C 64 ; WX 1204 ; N at ; B 307 29 893 615 ;
+C 65 ; WX 1204 ; N A ; B 210 -68 990 712 ;
+C 66 ; WX 1204 ; N B ; B 342 -18 858 710 ;
+C 67 ; WX 1204 ; N C ; B -35 -313 1235 957 ;
+C 68 ; WX 1204 ; N D ; B -35 -313 1235 957 ;
+C 69 ; WX 1204 ; N E ; B 210 -68 990 712 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 622 ;
+C 71 ; WX 1204 ; N G ; B -35 -313 1235 957 ;
+C 72 ; WX 1204 ; N H ; B 460 -28 740 707 ;
+C 73 ; WX 1204 ; N I ; B 300 -18 964 688 ;
+C 74 ; WX 1204 ; N J ; B 236 -18 900 688 ;
+C 75 ; WX 1204 ; N K ; B -35 -313 1235 957 ;
+C 76 ; WX 1204 ; N L ; B 250 -69 990 712 ;
+C 77 ; WX 1204 ; N M ; B 300 112 900 532 ;
+C 78 ; WX 1204 ; N N ; B -35 -313 1235 957 ;
+C 79 ; WX 1204 ; N O ; B 260 -18 940 662 ;
+C 80 ; WX 1204 ; N P ; B -35 -313 1235 957 ;
+C 81 ; WX 1204 ; N Q ; B 342 -18 858 710 ;
+C 82 ; WX 1204 ; N R ; B 210 -69 950 712 ;
+C 83 ; WX 1204 ; N S ; B 215 182 950 462 ;
+C 84 ; WX 1204 ; N T ; B 342 -65 858 662 ;
+C 85 ; WX 1204 ; N U ; B -35 22 1235 622 ;
+C 86 ; WX 1204 ; N V ; B 260 -18 940 662 ;
+C 87 ; WX 1204 ; N W ; B 210 -68 990 712 ;
+C 88 ; WX 1204 ; N X ; B 342 -65 858 662 ;
+C 89 ; WX 1204 ; N Y ; B 210 -68 990 712 ;
+C 90 ; WX 1204 ; N Z ; B 120 -158 1080 802 ;
+C 91 ; WX 1204 ; N bracketleft ; B 211 110 1024 534 ;
+C 93 ; WX 1204 ; N bracketright ; B 176 110 989 534 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 210 -68 990 712 ;
+C 98 ; WX 1204 ; N b ; B 342 -18 858 710 ;
+C 99 ; WX 1204 ; N c ; B -35 -313 1235 957 ;
+C 100 ; WX 1204 ; N d ; B -35 -313 1235 957 ;
+C 101 ; WX 1204 ; N e ; B -35 -313 1235 957 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 622 ;
+C 103 ; WX 1204 ; N g ; B -35 -313 1235 957 ;
+C 104 ; WX 1204 ; N h ; B 460 -63 740 672 ;
+C 105 ; WX 1204 ; N i ; B 300 -18 964 688 ;
+C 106 ; WX 1204 ; N j ; B 236 -18 900 688 ;
+C 107 ; WX 1204 ; N k ; B -35 -313 1235 957 ;
+C 108 ; WX 1204 ; N l ; B 210 -68 990 712 ;
+C 109 ; WX 1204 ; N m ; B 300 112 900 532 ;
+C 110 ; WX 1204 ; N n ; B -35 -313 1235 957 ;
+C 111 ; WX 1204 ; N o ; B -35 -313 1235 957 ;
+C 112 ; WX 1204 ; N p ; B -35 -313 1235 957 ;
+C 113 ; WX 1204 ; N q ; B 342 -18 858 710 ;
+C 114 ; WX 1204 ; N r ; B 210 -68 990 712 ;
+C 115 ; WX 1204 ; N s ; B 250 182 985 462 ;
+C 116 ; WX 1204 ; N t ; B 342 -65 858 662 ;
+C 117 ; WX 1204 ; N u ; B 263 -18 937 662 ;
+C 118 ; WX 1204 ; N v ; B 260 -18 940 662 ;
+C 119 ; WX 1204 ; N w ; B 210 -68 990 712 ;
+C 120 ; WX 1204 ; N x ; B 342 -65 858 662 ;
+C 121 ; WX 1204 ; N y ; B 263 -18 937 662 ;
+C 122 ; WX 1204 ; N z ; B 250 -28 950 672 ;
+C 123 ; WX 636 ; N braceleft ; B 148 84 500 541 ;
+C 124 ; WX 151 ; N bar ; B 0 -293 150 937 ;
+C 125 ; WX 636 ; N braceright ; B 133 84 485 541 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 2409 ; N Abreve ; B -35 -313 2435 957 ;
+C 129 ; WX 2409 ; N Aogonek ; B -35 -313 2435 957 ;
+C 130 ; WX 2409 ; N Cacute ; B -35 -313 2435 957 ;
+C 131 ; WX 2409 ; N Ccaron ; B -35 -313 2435 957 ;
+C 132 ; WX 3613 ; N Dcaron ; B -35 -313 3635 957 ;
+C 133 ; WX 3613 ; N Ecaron ; B -35 -313 3635 957 ;
+C 134 ; WX 3613 ; N Eogonek ; B -35 -313 3635 957 ;
+C 135 ; WX 3613 ; N Gbreve ; B -35 -313 3635 957 ;
+C 136 ; WX 2409 ; N Lacute ; B 0 0 0 0 ;
+C 137 ; WX 2409 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 2409 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 2409 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 2409 ; N Ncaron ; B 0 0 0 0 ;
+C 141 ; WX 2409 ; N Eng ; B 0 0 0 0 ;
+C 142 ; WX 2409 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 2409 ; N Racute ; B 0 0 0 0 ;
+C 144 ; WX 2409 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 2409 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 2409 ; N Scaron ; B 0 0 0 0 ;
+C 147 ; WX 2409 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 3613 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 3613 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 3613 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 3613 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 3613 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 3613 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 3613 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 3613 ; N Zdot ; B 0 0 0 0 ;
+C 156 ; WX 3613 ; N IJ ; B 0 0 0 0 ;
+C 157 ; WX 3613 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 3613 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 3613 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 3613 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 3613 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 3613 ; N cacute ; B 0 0 0 0 ;
+C 163 ; WX 3613 ; N ccaron ; B 0 0 0 0 ;
+C 164 ; WX 4818 ; N dcaron ; B 0 0 0 0 ;
+C 165 ; WX 4818 ; N ecaron ; B 0 0 0 0 ;
+C 166 ; WX 4818 ; N eogonek ; B 0 0 0 0 ;
+C 167 ; WX 4818 ; N gbreve ; B 0 0 0 0 ;
+C 168 ; WX 4818 ; N lacute ; B 0 0 0 0 ;
+C 169 ; WX 4818 ; N lcaron ; B 0 0 0 0 ;
+C 170 ; WX 4818 ; N lslash ; B 0 0 0 0 ;
+C 171 ; WX 4818 ; N nacute ; B 0 0 0 0 ;
+C 172 ; WX 4818 ; N ncaron ; B 0 0 0 0 ;
+C 173 ; WX 4818 ; N eng ; B 0 0 0 0 ;
+C 174 ; WX 4818 ; N odblacute ; B 0 0 0 0 ;
+C 175 ; WX 4818 ; N racute ; B 0 0 0 0 ;
+C 176 ; WX 3613 ; N rcaron ; B 0 0 0 0 ;
+C 177 ; WX 3613 ; N sacute ; B 0 0 0 0 ;
+C 178 ; WX 3613 ; N scaron ; B 0 0 0 0 ;
+C 179 ; WX 3613 ; N scedilla ; B 0 0 0 0 ;
+C 180 ; WX 3613 ; N tcaron ; B 0 0 0 0 ;
+C 181 ; WX 3613 ; N tcedilla ; B 0 0 0 0 ;
+C 182 ; WX 3613 ; N udblacute ; B 0 0 0 0 ;
+C 183 ; WX 3613 ; N uring ; B 0 0 0 0 ;
+C 184 ; WX 3613 ; N ydieresis ; B 0 0 0 0 ;
+C 185 ; WX 3613 ; N zacute ; B 0 0 0 0 ;
+C 186 ; WX 3613 ; N zcaron ; B 0 0 0 0 ;
+C 187 ; WX 3613 ; N zdot ; B 0 0 0 0 ;
+C 188 ; WX 4818 ; N ij ; B 0 0 0 0 ;
+C 189 ; WX 4818 ; N exclamdown ; B 0 0 0 0 ;
+C 190 ; WX 4818 ; N questiondown ; B 0 0 0 0 ;
+C 191 ; WX 4818 ; N sterling ; B 0 0 0 0 ;
+C 192 ; WX 4818 ; N Agrave ; B 0 0 0 0 ;
+C 193 ; WX 4818 ; N Aacute ; B 0 0 0 0 ;
+C 194 ; WX 4818 ; N Acircumflex ; B 0 0 0 0 ;
+C 195 ; WX 4818 ; N Atilde ; B 0 0 0 0 ;
+C 196 ; WX 4818 ; N Adieresis ; B 0 0 0 0 ;
+C 197 ; WX 4818 ; N Aring ; B 0 0 0 0 ;
+C 198 ; WX 4818 ; N AE ; B 0 0 0 0 ;
+C 199 ; WX 4818 ; N Ccedilla ; B 0 0 0 0 ;
+C 200 ; WX 6022 ; N Egrave ; B 0 0 0 0 ;
+C 201 ; WX 6022 ; N Eacute ; B 0 0 0 0 ;
+C 202 ; WX 6022 ; N Ecircumflex ; B 0 0 0 0 ;
+C 203 ; WX 6022 ; N Edieresis ; B 0 0 0 0 ;
+C 204 ; WX 7227 ; N Igrave ; B 0 0 0 0 ;
+C 205 ; WX 7227 ; N Iacute ; B 0 0 0 0 ;
+C 206 ; WX 7227 ; N Icircumflex ; B 0 0 0 0 ;
+C 207 ; WX 7227 ; N Idieresis ; B 0 0 0 0 ;
+C 208 ; WX 6022 ; N Eth ; B 0 0 0 0 ;
+C 209 ; WX 6022 ; N Ntilde ; B 0 0 0 0 ;
+C 210 ; WX 6022 ; N Ograve ; B 0 0 0 0 ;
+C 211 ; WX 6022 ; N Oacute ; B 0 0 0 0 ;
+C 212 ; WX 6022 ; N Ocircumflex ; B 0 0 0 0 ;
+C 213 ; WX 6022 ; N Otilde ; B 0 0 0 0 ;
+C 214 ; WX 6022 ; N Odieresis ; B 0 0 0 0 ;
+C 215 ; WX 6022 ; N OE ; B 0 0 0 0 ;
+C 216 ; WX 6022 ; N Oslash ; B 0 0 0 0 ;
+C 217 ; WX 6022 ; N Ugrave ; B 0 0 0 0 ;
+C 218 ; WX 6022 ; N Uacute ; B 0 0 0 0 ;
+C 219 ; WX 6022 ; N Ucircumflex ; B 0 0 0 0 ;
+C 220 ; WX 4818 ; N Udieresis ; B 0 0 0 0 ;
+C 221 ; WX 4818 ; N Yacute ; B 0 0 0 0 ;
+C 222 ; WX 4818 ; N Thorn ; B 0 0 0 0 ;
+C 223 ; WX 4818 ; N Germandbls ; B 0 0 0 0 ;
+C 224 ; WX 4818 ; N agrave ; B 0 0 0 0 ;
+C 225 ; WX 4818 ; N aacute ; B 0 0 0 0 ;
+C 226 ; WX 4818 ; N acircumflex ; B 0 0 0 0 ;
+C 227 ; WX 4818 ; N atilde ; B 0 0 0 0 ;
+C 228 ; WX 4818 ; N adieresis ; B 0 0 0 0 ;
+C 229 ; WX 4818 ; N aring ; B 0 0 0 0 ;
+C 230 ; WX 4818 ; N ae ; B 0 0 0 0 ;
+C 231 ; WX 4818 ; N ccedilla ; B 0 0 0 0 ;
+C 232 ; WX 6022 ; N egrave ; B 0 0 0 0 ;
+C 233 ; WX 6022 ; N eacute ; B 0 0 0 0 ;
+C 234 ; WX 6022 ; N ecircumflex ; B 0 0 0 0 ;
+C 235 ; WX 6022 ; N edieresis ; B 0 0 0 0 ;
+C 236 ; WX 6022 ; N igrave ; B 0 0 0 0 ;
+C 237 ; WX 6022 ; N iacute ; B 0 0 0 0 ;
+C 238 ; WX 6022 ; N icircumflex ; B 0 0 0 0 ;
+C 239 ; WX 6022 ; N idieresis ; B 0 0 0 0 ;
+C 240 ; WX 6022 ; N eth ; B 0 0 0 0 ;
+C 241 ; WX 6022 ; N ntilde ; B 0 0 0 0 ;
+C 242 ; WX 6022 ; N ograve ; B 0 0 0 0 ;
+C 243 ; WX 6022 ; N oacute ; B 0 0 0 0 ;
+C 244 ; WX 7227 ; N ocircumflex ; B 0 0 0 0 ;
+C 245 ; WX 7227 ; N otilde ; B 0 0 0 0 ;
+C 246 ; WX 7227 ; N odieresis ; B 0 0 0 0 ;
+C 247 ; WX 7227 ; N oe ; B 0 0 0 0 ;
+C 248 ; WX 7227 ; N oslash ; B 0 0 0 0 ;
+C 249 ; WX 7227 ; N ugrave ; B 0 0 0 0 ;
+C 250 ; WX 7227 ; N uacute ; B 0 0 0 0 ;
+C 251 ; WX 7227 ; N ucircumflex ; B 0 0 0 0 ;
+C 252 ; WX 7227 ; N udieresis ; B 0 0 0 0 ;
+C 253 ; WX 7227 ; N yacute ; B 0 0 0 0 ;
+C 254 ; WX 7227 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 7227 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitgp.afm b/fonts/knitting/fonts/afm/knitgp.afm
new file mode 100644
index 0000000000..d9668f8a33
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitgp.afm
@@ -0,0 +1,261 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:10 2019
+FontName KnittingSymbols-grid-purl-Medium
+FullName KnittingSymbols-grid-purl
+FamilyName KnittingSymbols-grid-purl
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox 0 -278 7200 922
+CapHeight 922
+XHeight 922
+Descender -278
+StartCharMetrics 240
+C 0 ; WX 1204 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1204 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1204 ; N circumflex ; B 0 -278 1200 922 ;
+C 3 ; WX 1204 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1204 ; N dieresis ; B 0 -278 1200 922 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 0 0 0 0 ;
+C 20 ; WX 1204 ; N guillemotright ; B 0 -278 1200 922 ;
+C 21 ; WX 1204 ; N endash ; B 0 -278 1200 922 ;
+C 22 ; WX 602 ; N emdash ; B 0 0 0 0 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 602 ; N dotlessi ; B 0 0 0 0 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 0 0 0 ;
+C 27 ; WX 602 ; N ff ; B 0 0 0 0 ;
+C 28 ; WX 602 ; N fi ; B 0 0 0 0 ;
+C 29 ; WX 1204 ; N fl ; B 0 0 0 0 ;
+C 30 ; WX 1204 ; N ffi ; B 0 0 0 0 ;
+C 31 ; WX 6022 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 1204 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 1204 ; N quotedbl ; B 0 0 0 0 ;
+C 35 ; WX 1204 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 1204 ; N ampersand ; B 0 -278 1200 922 ;
+C 39 ; WX 602 ; N quoteright ; B 0 -278 600 922 ;
+C 40 ; WX 1204 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1204 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1204 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1204 ; N plus ; B 0 -278 1200 922 ;
+C 44 ; WX 1204 ; N comma ; B 0 -278 1200 922 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 15 -263 1185 907 ;
+C 48 ; WX 1204 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1204 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 1204 ; N two ; B 0 -278 1200 922 ;
+C 51 ; WX 1204 ; N three ; B 0 -278 1200 922 ;
+C 52 ; WX 1204 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 1204 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1204 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 1204 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 1204 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 1204 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 1204 ; N colon ; B 0 -278 1200 922 ;
+C 59 ; WX 1204 ; N semicolon ; B 0 -278 1200 922 ;
+C 60 ; WX 1204 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1204 ; N equal ; B 0 -278 1200 922 ;
+C 62 ; WX 1204 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1204 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1204 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 1204 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1204 ; N B ; B 0 -278 1200 922 ;
+C 67 ; WX 1204 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 1204 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 1204 ; N E ; B 245 -33 955 677 ;
+C 70 ; WX 1204 ; N F ; B 0 -278 1200 922 ;
+C 71 ; WX 1204 ; N G ; B 0 -278 1200 922 ;
+C 72 ; WX 1204 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 1204 ; N I ; B 0 -278 1200 922 ;
+C 74 ; WX 1204 ; N J ; B 0 -278 1200 922 ;
+C 75 ; WX 1204 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 1204 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 1204 ; N M ; B 0 -278 1200 922 ;
+C 78 ; WX 1204 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 1204 ; N O ; B 0 -278 1200 922 ;
+C 80 ; WX 1204 ; N P ; B 0 -278 1200 922 ;
+C 81 ; WX 1204 ; N Q ; B 0 -278 1200 922 ;
+C 82 ; WX 1204 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1204 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 1204 ; N T ; B 0 -278 1200 922 ;
+C 85 ; WX 1204 ; N U ; B 0 0 0 0 ;
+C 86 ; WX 1204 ; N V ; B 0 -278 1200 922 ;
+C 87 ; WX 1204 ; N W ; B 0 -278 1200 922 ;
+C 88 ; WX 1204 ; N X ; B 0 -278 1200 922 ;
+C 89 ; WX 1204 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 1204 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1204 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1204 ; N bracketright ; B 0 0 0 0 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1204 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1204 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 1204 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 1204 ; N e ; B 0 0 0 0 ;
+C 102 ; WX 1204 ; N f ; B 0 0 0 0 ;
+C 103 ; WX 1204 ; N g ; B 0 -278 1200 922 ;
+C 104 ; WX 1204 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 1204 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 1204 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1204 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 1204 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 1204 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 1204 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 1204 ; N o ; B 0 0 0 0 ;
+C 112 ; WX 1204 ; N p ; B 0 -278 1200 922 ;
+C 113 ; WX 1204 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 1204 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1204 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 1204 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 1204 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 1204 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 1204 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 1204 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 1204 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 1204 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 151 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 2409 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 2409 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 2409 ; N Cacute ; B 0 -278 2400 922 ;
+C 131 ; WX 2409 ; N Ccaron ; B 0 -278 2400 922 ;
+C 132 ; WX 3613 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 3613 ; N Ecaron ; B 0 0 0 0 ;
+C 134 ; WX 3613 ; N Eogonek ; B 0 -278 3600 922 ;
+C 135 ; WX 3613 ; N Gbreve ; B 0 -278 3600 922 ;
+C 136 ; WX 2409 ; N Lacute ; B 0 -278 2400 922 ;
+C 137 ; WX 2409 ; N Lcaron ; B 0 -278 2400 922 ;
+C 138 ; WX 2409 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 2409 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 2409 ; N Ncaron ; B 0 -278 2400 922 ;
+C 141 ; WX 2409 ; N Eng ; B 0 -278 2400 922 ;
+C 142 ; WX 2409 ; N Odblacute ; B 0 -278 2400 922 ;
+C 143 ; WX 2409 ; N Racute ; B 0 -278 2400 922 ;
+C 144 ; WX 2409 ; N Rcaron ; B 0 -278 2400 922 ;
+C 145 ; WX 2409 ; N Sacute ; B 0 -278 2400 922 ;
+C 146 ; WX 2409 ; N Scaron ; B 0 -278 2400 922 ;
+C 147 ; WX 2409 ; N Scedilla ; B 0 -278 2400 922 ;
+C 148 ; WX 3613 ; N Tcaron ; B 0 -278 3600 922 ;
+C 149 ; WX 3613 ; N Tcedilla ; B 0 -278 3600 922 ;
+C 150 ; WX 3613 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 3613 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 3613 ; N Ydieresis ; B 0 -278 3600 922 ;
+C 153 ; WX 3613 ; N Zacute ; B 0 -278 3600 922 ;
+C 154 ; WX 3613 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 3613 ; N Zdot ; B 0 0 0 0 ;
+C 156 ; WX 3613 ; N IJ ; B 0 -278 3600 922 ;
+C 157 ; WX 3613 ; N Idot ; B 0 -278 3600 922 ;
+C 158 ; WX 3613 ; N dmacron ; B 0 -278 3600 922 ;
+C 159 ; WX 3613 ; N section ; B 0 -278 3600 922 ;
+C 160 ; WX 3613 ; N abreve ; B 0 -278 3600 922 ;
+C 161 ; WX 3613 ; N aogonek ; B 0 -278 3600 922 ;
+C 162 ; WX 3613 ; N cacute ; B 0 -278 3600 922 ;
+C 163 ; WX 3613 ; N ccaron ; B 0 -278 3600 922 ;
+C 164 ; WX 4818 ; N dcaron ; B 0 -278 4800 922 ;
+C 165 ; WX 4818 ; N ecaron ; B 0 -278 4800 922 ;
+C 166 ; WX 4818 ; N eogonek ; B 0 0 0 0 ;
+C 167 ; WX 4818 ; N gbreve ; B 0 0 0 0 ;
+C 168 ; WX 4818 ; N lacute ; B 0 -278 4800 922 ;
+C 169 ; WX 4818 ; N lcaron ; B 0 -278 4800 922 ;
+C 170 ; WX 4818 ; N lslash ; B 0 -278 4800 922 ;
+C 171 ; WX 4818 ; N nacute ; B 0 -278 4800 922 ;
+C 172 ; WX 4818 ; N ncaron ; B 0 -278 4800 922 ;
+C 173 ; WX 4818 ; N eng ; B 0 -278 4800 922 ;
+C 174 ; WX 4818 ; N odblacute ; B 0 -278 4800 922 ;
+C 175 ; WX 4818 ; N racute ; B 0 -278 4800 922 ;
+C 176 ; WX 3613 ; N rcaron ; B 0 -278 3600 922 ;
+C 177 ; WX 3613 ; N sacute ; B 0 -278 3600 922 ;
+C 178 ; WX 3613 ; N scaron ; B 0 0 0 0 ;
+C 179 ; WX 3613 ; N scedilla ; B 0 0 0 0 ;
+C 180 ; WX 3613 ; N tcaron ; B 0 -278 3600 922 ;
+C 181 ; WX 3613 ; N tcedilla ; B 0 -278 3600 922 ;
+C 182 ; WX 3613 ; N udblacute ; B 0 -278 3600 922 ;
+C 183 ; WX 3613 ; N uring ; B 0 -278 3600 922 ;
+C 184 ; WX 3613 ; N ydieresis ; B 0 -278 3600 922 ;
+C 185 ; WX 3613 ; N zacute ; B 0 -278 3600 922 ;
+C 186 ; WX 3613 ; N zcaron ; B 0 -278 3600 922 ;
+C 187 ; WX 3613 ; N zdot ; B 0 -278 3600 922 ;
+C 188 ; WX 4818 ; N ij ; B 0 -278 4800 922 ;
+C 189 ; WX 4818 ; N exclamdown ; B 0 -278 4800 922 ;
+C 190 ; WX 4818 ; N questiondown ; B 0 0 0 0 ;
+C 191 ; WX 4818 ; N sterling ; B 0 0 0 0 ;
+C 192 ; WX 4818 ; N Agrave ; B 0 -278 4800 922 ;
+C 193 ; WX 4818 ; N Aacute ; B 0 -278 4800 922 ;
+C 194 ; WX 4818 ; N Acircumflex ; B 0 -278 4800 922 ;
+C 195 ; WX 4818 ; N Atilde ; B 0 -278 4800 922 ;
+C 196 ; WX 4818 ; N Adieresis ; B 0 -278 4800 922 ;
+C 197 ; WX 4818 ; N Aring ; B 0 -278 4800 922 ;
+C 198 ; WX 4818 ; N AE ; B 0 -278 4800 922 ;
+C 199 ; WX 4818 ; N Ccedilla ; B 0 -278 4800 922 ;
+C 200 ; WX 6022 ; N Egrave ; B 0 -278 6000 922 ;
+C 201 ; WX 6022 ; N Eacute ; B 0 -278 6000 922 ;
+C 202 ; WX 6022 ; N Ecircumflex ; B 0 0 0 0 ;
+C 203 ; WX 6022 ; N Edieresis ; B 0 0 0 0 ;
+C 204 ; WX 7227 ; N Igrave ; B 0 -278 7200 922 ;
+C 205 ; WX 7227 ; N Iacute ; B 0 -278 7200 922 ;
+C 206 ; WX 7227 ; N Icircumflex ; B 0 0 0 0 ;
+C 207 ; WX 7227 ; N Idieresis ; B 0 0 0 0 ;
+C 208 ; WX 6022 ; N Eth ; B 0 -278 6000 922 ;
+C 209 ; WX 6022 ; N Ntilde ; B 0 -278 6000 922 ;
+C 210 ; WX 6022 ; N Ograve ; B 0 0 0 0 ;
+C 211 ; WX 6022 ; N Oacute ; B 0 0 0 0 ;
+C 212 ; WX 6022 ; N Ocircumflex ; B 0 -278 6000 922 ;
+C 213 ; WX 6022 ; N Otilde ; B 0 -278 6000 922 ;
+C 214 ; WX 6022 ; N Odieresis ; B 0 -278 6000 922 ;
+C 215 ; WX 6022 ; N OE ; B 0 -278 6000 922 ;
+C 216 ; WX 6022 ; N Oslash ; B 0 -278 6000 922 ;
+C 217 ; WX 6022 ; N Ugrave ; B 0 -278 6000 922 ;
+C 218 ; WX 6022 ; N Uacute ; B 0 -278 6000 922 ;
+C 219 ; WX 6022 ; N Ucircumflex ; B 0 -278 6000 922 ;
+C 220 ; WX 4818 ; N Udieresis ; B 0 -278 4800 922 ;
+C 221 ; WX 4818 ; N Yacute ; B 0 -278 4800 922 ;
+C 222 ; WX 4818 ; N Thorn ; B 0 0 0 0 ;
+C 223 ; WX 4818 ; N Germandbls ; B 0 0 0 0 ;
+C 224 ; WX 4818 ; N agrave ; B 0 -278 4800 922 ;
+C 225 ; WX 4818 ; N aacute ; B 0 -278 4800 922 ;
+C 226 ; WX 4818 ; N acircumflex ; B 0 -278 4800 922 ;
+C 227 ; WX 4818 ; N atilde ; B 0 -278 4800 922 ;
+C 228 ; WX 4818 ; N adieresis ; B 0 -278 4800 922 ;
+C 229 ; WX 4818 ; N aring ; B 0 -278 4800 922 ;
+C 230 ; WX 4818 ; N ae ; B 0 -278 4800 922 ;
+C 231 ; WX 4818 ; N ccedilla ; B 0 -278 4800 922 ;
+C 232 ; WX 6022 ; N egrave ; B 0 -278 6000 922 ;
+C 233 ; WX 6022 ; N eacute ; B 0 -278 6000 922 ;
+C 234 ; WX 6022 ; N ecircumflex ; B 0 0 0 0 ;
+C 235 ; WX 6022 ; N edieresis ; B 0 0 0 0 ;
+C 236 ; WX 6022 ; N igrave ; B 0 -278 6000 922 ;
+C 237 ; WX 6022 ; N iacute ; B 0 -278 6000 922 ;
+C 238 ; WX 6022 ; N icircumflex ; B 0 -278 6000 922 ;
+C 239 ; WX 6022 ; N idieresis ; B 0 -278 6000 922 ;
+C 240 ; WX 6022 ; N eth ; B 0 -278 6000 922 ;
+C 241 ; WX 6022 ; N ntilde ; B 0 -278 6000 922 ;
+C 242 ; WX 6022 ; N ograve ; B 0 -278 6000 922 ;
+C 243 ; WX 6022 ; N oacute ; B 0 -278 6000 922 ;
+C 244 ; WX 7227 ; N ocircumflex ; B 0 -278 7200 922 ;
+C 245 ; WX 7227 ; N otilde ; B 0 -278 7200 922 ;
+C 246 ; WX 7227 ; N odieresis ; B 0 0 0 0 ;
+C 247 ; WX 7227 ; N oe ; B 0 0 0 0 ;
+C 248 ; WX 7227 ; N oslash ; B 0 -278 7200 922 ;
+C 249 ; WX 7227 ; N ugrave ; B 0 -278 7200 922 ;
+C 250 ; WX 7227 ; N uacute ; B 0 -278 7200 922 ;
+C 251 ; WX 7227 ; N ucircumflex ; B 0 -278 7200 922 ;
+C 252 ; WX 7227 ; N udieresis ; B 0 -278 7200 922 ;
+C 253 ; WX 7227 ; N yacute ; B 0 -278 7200 922 ;
+C 254 ; WX 7227 ; N thorn ; B 0 -278 7200 922 ;
+C 255 ; WX 7227 ; N germandbls ; B 0 -278 7200 922 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitmg.afm b/fonts/knitting/fonts/afm/knitmg.afm
new file mode 100644
index 0000000000..586ce4025e
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitmg.afm
@@ -0,0 +1,184 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:13 2019
+FontName KnittingSymbols-mixed-grid-Medium
+FullName KnittingSymbols-mixed-grid
+FamilyName KnittingSymbols-mixed-grid
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -293 6015 937
+CapHeight 937
+XHeight 937
+Ascender 937
+Descender -293
+StartCharMetrics 162
+C 0 ; WX 1204 ; N grave ; B -15 -293 1215 937 ;
+C 1 ; WX 1204 ; N acute ; B -15 -293 1215 937 ;
+C 2 ; WX 1204 ; N circumflex ; B -15 -293 1215 937 ;
+C 3 ; WX 1204 ; N tilde ; B -15 -293 1215 937 ;
+C 4 ; WX 1204 ; N dieresis ; B -15 -293 1215 937 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B -15 -293 1215 937 ;
+C 6 ; WX 0 ; N ring ; B -15 -293 15 937 ;
+C 7 ; WX 0 ; N caron ; B -200 602 1000 672 ;
+C 8 ; WX 0 ; N breve ; B -200 -28 1000 42 ;
+C 9 ; WX 0 ; N macron ; B -1000 -28 -200 42 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 602 -200 672 ;
+C 11 ; WX 0 ; N cedilla ; B 200 602 1000 672 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -28 1000 42 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -28 235 672 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -28 235 672 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 602 200 672 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -28 200 42 ;
+C 17 ; WX 1204 ; N quotedblright ; B -15 -293 1215 937 ;
+C 18 ; WX 1204 ; N quotedblbase ; B -15 -293 1215 937 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 0 0 0 0 ;
+C 20 ; WX 1204 ; N guillemotright ; B -15 -293 1215 937 ;
+C 21 ; WX 1204 ; N endash ; B 0 -293 1215 937 ;
+C 22 ; WX 602 ; N emdash ; B -15 -293 615 937 ;
+C 23 ; WX 1204 ; N compwordmark ; B -15 -293 1215 937 ;
+C 24 ; WX 1204 ; N perthousandzero ; B -15 -293 1215 937 ;
+C 25 ; WX 602 ; N dotlessi ; B -15 -293 600 937 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 -293 615 937 ;
+C 27 ; WX 602 ; N ff ; B -15 -293 600 937 ;
+C 28 ; WX 602 ; N fi ; B 0 -293 615 937 ;
+C 29 ; WX 1204 ; N fl ; B -15 -293 1215 937 ;
+C 30 ; WX 1204 ; N ffi ; B -15 -293 1215 937 ;
+C 31 ; WX 6022 ; N ffl ; B -15 -293 6015 937 ;
+C 33 ; WX 1204 ; N exclam ; B -15 -293 1215 937 ;
+C 34 ; WX 1204 ; N quotedbl ; B 0 0 0 0 ;
+C 35 ; WX 1204 ; N numbersign ; B -15 -293 1215 937 ;
+C 38 ; WX 1204 ; N ampersand ; B -15 -293 1215 937 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B -15 -293 1215 937 ;
+C 41 ; WX 1204 ; N parenright ; B -15 -293 1215 937 ;
+C 42 ; WX 1204 ; N asterisk ; B -15 -293 1215 937 ;
+C 43 ; WX 1204 ; N plus ; B -15 -293 1200 937 ;
+C 44 ; WX 1204 ; N comma ; B -15 -293 1215 937 ;
+C 45 ; WX 1204 ; N hyphen ; B -15 -293 1215 937 ;
+C 46 ; WX 1204 ; N period ; B -15 -293 1215 937 ;
+C 47 ; WX 1204 ; N slash ; B -15 -293 1215 937 ;
+C 48 ; WX 1204 ; N zero ; B -15 -293 1215 937 ;
+C 49 ; WX 1204 ; N one ; B -15 -293 1215 937 ;
+C 50 ; WX 1204 ; N two ; B -15 -293 1215 937 ;
+C 51 ; WX 1204 ; N three ; B -15 -293 1215 937 ;
+C 52 ; WX 1204 ; N four ; B -15 -293 1215 937 ;
+C 53 ; WX 1204 ; N five ; B -15 -293 1215 937 ;
+C 54 ; WX 1204 ; N six ; B -15 -293 1215 937 ;
+C 55 ; WX 1204 ; N seven ; B -15 -293 1215 937 ;
+C 56 ; WX 1204 ; N eight ; B -15 -293 1215 937 ;
+C 57 ; WX 1204 ; N nine ; B -15 -293 1215 937 ;
+C 58 ; WX 1204 ; N colon ; B -15 -293 1215 937 ;
+C 59 ; WX 1204 ; N semicolon ; B -15 -293 1215 937 ;
+C 60 ; WX 1204 ; N less ; B -15 -293 1215 937 ;
+C 61 ; WX 1204 ; N equal ; B -15 -293 1215 937 ;
+C 62 ; WX 1204 ; N greater ; B -15 -293 1215 937 ;
+C 63 ; WX 1204 ; N question ; B -15 -293 1215 937 ;
+C 64 ; WX 1204 ; N at ; B -15 -293 1215 937 ;
+C 65 ; WX 1204 ; N A ; B -15 -293 1215 937 ;
+C 66 ; WX 1204 ; N B ; B -15 -293 1215 937 ;
+C 67 ; WX 1204 ; N C ; B -15 -293 1215 937 ;
+C 68 ; WX 1204 ; N D ; B -15 -293 1215 937 ;
+C 69 ; WX 1204 ; N E ; B -15 -293 1215 937 ;
+C 70 ; WX 1204 ; N F ; B 0 0 0 0 ;
+C 71 ; WX 1204 ; N G ; B -15 -293 1215 937 ;
+C 72 ; WX 1204 ; N H ; B -15 -293 1215 937 ;
+C 73 ; WX 1204 ; N I ; B -15 -293 1215 937 ;
+C 74 ; WX 1204 ; N J ; B -15 -293 1215 937 ;
+C 75 ; WX 1204 ; N K ; B -15 -293 1215 937 ;
+C 76 ; WX 1204 ; N L ; B -15 -293 1215 937 ;
+C 77 ; WX 1204 ; N M ; B -15 -293 1215 937 ;
+C 78 ; WX 1204 ; N N ; B -15 -293 1215 937 ;
+C 79 ; WX 1204 ; N O ; B -15 -293 1215 937 ;
+C 80 ; WX 1204 ; N P ; B -15 -293 1215 937 ;
+C 81 ; WX 1204 ; N Q ; B -15 -293 1215 937 ;
+C 82 ; WX 1204 ; N R ; B -15 -293 1215 937 ;
+C 83 ; WX 1204 ; N S ; B -15 -293 1215 937 ;
+C 84 ; WX 1204 ; N T ; B -15 -293 1215 937 ;
+C 85 ; WX 1204 ; N U ; B 0 0 0 0 ;
+C 86 ; WX 1204 ; N V ; B -15 -293 1215 937 ;
+C 87 ; WX 1204 ; N W ; B -15 -293 1215 937 ;
+C 88 ; WX 1204 ; N X ; B -15 -293 1215 937 ;
+C 89 ; WX 1204 ; N Y ; B -15 -293 1215 937 ;
+C 90 ; WX 1204 ; N Z ; B -15 -293 1215 937 ;
+C 91 ; WX 1204 ; N bracketleft ; B -15 -293 1215 937 ;
+C 93 ; WX 1204 ; N bracketright ; B -15 -293 1215 937 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 602 1035 672 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -28 1035 42 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B -15 -293 1215 937 ;
+C 98 ; WX 1204 ; N b ; B -15 -293 1215 937 ;
+C 99 ; WX 1204 ; N c ; B -15 -293 1215 937 ;
+C 100 ; WX 1204 ; N d ; B -15 -293 1215 937 ;
+C 101 ; WX 1204 ; N e ; B -15 -293 1215 937 ;
+C 102 ; WX 1204 ; N f ; B 0 0 0 0 ;
+C 103 ; WX 1204 ; N g ; B -15 -293 1215 937 ;
+C 104 ; WX 1204 ; N h ; B -15 -293 1215 937 ;
+C 105 ; WX 1204 ; N i ; B -15 -293 1215 937 ;
+C 106 ; WX 1204 ; N j ; B -15 -293 1215 937 ;
+C 107 ; WX 1204 ; N k ; B -15 -293 1215 937 ;
+C 108 ; WX 1204 ; N l ; B -15 -293 1215 937 ;
+C 109 ; WX 1204 ; N m ; B -15 -293 1215 937 ;
+C 110 ; WX 1204 ; N n ; B -15 -293 1215 937 ;
+C 111 ; WX 1204 ; N o ; B -15 -293 1215 937 ;
+C 112 ; WX 1204 ; N p ; B -15 -293 1215 937 ;
+C 113 ; WX 1204 ; N q ; B -15 -293 1215 937 ;
+C 114 ; WX 1204 ; N r ; B -15 -293 1215 937 ;
+C 115 ; WX 1204 ; N s ; B -15 -293 1215 937 ;
+C 116 ; WX 1204 ; N t ; B -15 -293 1215 937 ;
+C 117 ; WX 1204 ; N u ; B -15 -293 1215 937 ;
+C 118 ; WX 1204 ; N v ; B -15 -293 1215 937 ;
+C 119 ; WX 1204 ; N w ; B -15 -293 1215 937 ;
+C 120 ; WX 1204 ; N x ; B -15 -293 1215 937 ;
+C 121 ; WX 1204 ; N y ; B -15 -293 1215 937 ;
+C 122 ; WX 1204 ; N z ; B -15 -293 1215 937 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 151 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B -15 -293 1215 937 ;
+C 128 ; WX 1204 ; N Abreve ; B -15 -293 1215 937 ;
+C 129 ; WX 1204 ; N Aogonek ; B -15 -293 1215 937 ;
+C 130 ; WX 1204 ; N Cacute ; B -15 -293 1215 937 ;
+C 131 ; WX 1204 ; N Ccaron ; B -15 -293 1215 937 ;
+C 132 ; WX 1204 ; N Dcaron ; B -15 -293 1215 937 ;
+C 133 ; WX 1204 ; N Ecaron ; B -15 -293 1215 937 ;
+C 134 ; WX 1204 ; N Eogonek ; B -15 -293 1215 937 ;
+C 135 ; WX 1204 ; N Gbreve ; B -15 -293 1215 937 ;
+C 136 ; WX 1204 ; N Lacute ; B -15 -293 1215 937 ;
+C 137 ; WX 1204 ; N Lcaron ; B -15 -293 1215 937 ;
+C 138 ; WX 1204 ; N Lslash ; B -15 -293 1215 937 ;
+C 139 ; WX 1204 ; N Nacute ; B -15 -293 1215 937 ;
+C 140 ; WX 1204 ; N Ncaron ; B -15 -293 1215 937 ;
+C 141 ; WX 1204 ; N Eng ; B -15 -293 1215 937 ;
+C 142 ; WX 1204 ; N Odblacute ; B -15 -293 1215 937 ;
+C 143 ; WX 1204 ; N Racute ; B -15 -293 1215 937 ;
+C 144 ; WX 1204 ; N Rcaron ; B -15 -293 1215 937 ;
+C 145 ; WX 1204 ; N Sacute ; B -15 -293 1215 937 ;
+C 146 ; WX 1204 ; N Scaron ; B -15 -293 1215 937 ;
+C 147 ; WX 1204 ; N Scedilla ; B -15 -293 1215 937 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 1204 ; N Ydieresis ; B -15 -293 1200 937 ;
+C 153 ; WX 1204 ; N Zacute ; B -15 -293 1215 937 ;
+C 154 ; WX 1204 ; N Zcaron ; B 0 -293 1215 937 ;
+C 155 ; WX 1204 ; N Zdot ; B 0 -293 1215 937 ;
+C 157 ; WX 1204 ; N Idot ; B -15 -293 1215 937 ;
+C 158 ; WX 1204 ; N dmacron ; B 0 -293 1215 937 ;
+C 159 ; WX 1204 ; N section ; B -15 -293 1200 937 ;
+C 160 ; WX 1204 ; N abreve ; B -15 -293 1215 937 ;
+C 161 ; WX 1204 ; N aogonek ; B 0 -293 1215 937 ;
+C 162 ; WX 1204 ; N cacute ; B -15 -293 1200 937 ;
+C 163 ; WX 1204 ; N ccaron ; B -15 -293 1215 937 ;
+C 164 ; WX 1204 ; N dcaron ; B 0 -293 1215 937 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitml.afm b/fonts/knitting/fonts/afm/knitml.afm
new file mode 100644
index 0000000000..faf4f741b6
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitml.afm
@@ -0,0 +1,184 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:25 2019
+FontName KnittingSymbols-nogrid-lowered-Medium
+FullName KnittingSymbols-nogrid-lowered
+FamilyName KnittingSymbols-nogrid-lowered
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -293 5611 937
+CapHeight 396
+XHeight 444
+Ascender 480
+Descender 287
+StartCharMetrics 162
+C 0 ; WX 1204 ; N grave ; B 217 -158 983 607 ;
+C 1 ; WX 1204 ; N acute ; B 362 374 838 648 ;
+C 2 ; WX 1204 ; N circumflex ; B 362 374 838 648 ;
+C 3 ; WX 1204 ; N tilde ; B 362 -198 838 74 ;
+C 4 ; WX 1204 ; N dieresis ; B 362 -198 838 74 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 7 ; WX 0 ; N caron ; B -200 602 1000 672 ;
+C 8 ; WX 0 ; N breve ; B -200 -28 1000 42 ;
+C 9 ; WX 0 ; N macron ; B -1000 -28 -200 42 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 602 -200 672 ;
+C 11 ; WX 0 ; N cedilla ; B 200 602 1000 672 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -28 1000 42 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -28 235 672 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -28 235 672 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 602 200 672 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -28 200 42 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 84 1200 154 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 84 1010 454 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 50 -114 960 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 215 206 985 438 ;
+C 21 ; WX 1204 ; N endash ; B 215 206 985 438 ;
+C 22 ; WX 602 ; N emdash ; B 0 155 600 295 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 -28 1200 398 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 -28 795 517 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 155 600 647 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 155 411 647 ;
+C 27 ; WX 602 ; N ff ; B 190 -198 600 295 ;
+C 28 ; WX 602 ; N fi ; B 0 -198 411 295 ;
+C 29 ; WX 1204 ; N fl ; B 0 -198 1200 295 ;
+C 30 ; WX 1204 ; N ffi ; B 0 155 1200 647 ;
+C 31 ; WX 6022 ; N ffl ; B 390 -198 5611 647 ;
+C 33 ; WX 1204 ; N exclam ; B 358 -18 842 467 ;
+C 34 ; WX 1204 ; N quotedbl ; B 240 -114 1150 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 358 -18 803 467 ;
+C 38 ; WX 1204 ; N ampersand ; B 308 -68 892 517 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 358 -18 803 467 ;
+C 41 ; WX 1204 ; N parenright ; B 398 -18 843 467 ;
+C 42 ; WX 1204 ; N asterisk ; B 385 -18 815 467 ;
+C 43 ; WX 1204 ; N plus ; B 215 206 985 438 ;
+C 44 ; WX 1204 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 565 -18 635 467 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 215 62 985 582 ;
+C 48 ; WX 1204 ; N zero ; B 398 -18 842 467 ;
+C 49 ; WX 1204 ; N one ; B 190 84 1200 454 ;
+C 50 ; WX 1204 ; N two ; B 358 -18 842 467 ;
+C 51 ; WX 1204 ; N three ; B 308 -68 892 517 ;
+C 52 ; WX 1204 ; N four ; B 360 -18 840 467 ;
+C 53 ; WX 1204 ; N five ; B 360 -18 840 467 ;
+C 54 ; WX 1204 ; N six ; B 348 -18 853 467 ;
+C 55 ; WX 1204 ; N seven ; B 415 -28 746 477 ;
+C 56 ; WX 1204 ; N eight ; B 455 -28 786 477 ;
+C 57 ; WX 1204 ; N nine ; B 80 -117 1120 477 ;
+C 58 ; WX 1204 ; N colon ; B 358 -18 803 467 ;
+C 59 ; WX 1204 ; N semicolon ; B 398 -18 842 467 ;
+C 60 ; WX 1204 ; N less ; B 398 -18 842 467 ;
+C 61 ; WX 1204 ; N equal ; B 388 287 812 357 ;
+C 62 ; WX 1204 ; N greater ; B 358 -18 803 467 ;
+C 63 ; WX 1204 ; N question ; B 405 -28 1200 517 ;
+C 64 ; WX 1204 ; N at ; B 307 29 893 615 ;
+C 65 ; WX 1204 ; N A ; B 308 -68 892 517 ;
+C 66 ; WX 1204 ; N B ; B 419 -18 781 514 ;
+C 67 ; WX 1204 ; N C ; B 565 22 635 427 ;
+C 68 ; WX 1204 ; N D ; B 398 -18 842 467 ;
+C 69 ; WX 1204 ; N E ; B 308 -68 892 517 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 427 ;
+C 71 ; WX 1204 ; N G ; B 388 287 812 357 ;
+C 72 ; WX 1204 ; N H ; B 493 -28 708 512 ;
+C 73 ; WX 1204 ; N I ; B 398 -18 866 493 ;
+C 74 ; WX 1204 ; N J ; B 334 -18 803 493 ;
+C 75 ; WX 1204 ; N K ; B 565 22 635 427 ;
+C 76 ; WX 1204 ; N L ; B 348 -69 893 517 ;
+C 77 ; WX 1204 ; N M ; B 300 15 900 435 ;
+C 78 ; WX 1204 ; N N ; B 300 15 900 435 ;
+C 79 ; WX 1204 ; N O ; B 358 -18 842 467 ;
+C 80 ; WX 1204 ; N P ; B 388 287 812 357 ;
+C 81 ; WX 1204 ; N Q ; B 419 -18 781 514 ;
+C 82 ; WX 1204 ; N R ; B 307 -69 853 517 ;
+C 83 ; WX 1204 ; N S ; B 215 85 950 365 ;
+C 84 ; WX 1204 ; N T ; B 419 -65 781 467 ;
+C 85 ; WX 1204 ; N U ; B -35 22 1235 427 ;
+C 86 ; WX 1204 ; N V ; B 358 -18 842 467 ;
+C 87 ; WX 1204 ; N W ; B 308 -68 892 517 ;
+C 88 ; WX 1204 ; N X ; B 419 -65 781 467 ;
+C 89 ; WX 1204 ; N Y ; B 308 -68 892 517 ;
+C 90 ; WX 1204 ; N Z ; B 217 -158 983 607 ;
+C 91 ; WX 1204 ; N bracketleft ; B 211 13 1024 437 ;
+C 93 ; WX 1204 ; N bracketright ; B 176 13 989 437 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 602 1035 672 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -28 1035 42 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 308 -68 892 517 ;
+C 98 ; WX 1204 ; N b ; B 419 -18 781 514 ;
+C 99 ; WX 1204 ; N c ; B 565 217 635 427 ;
+C 100 ; WX 1204 ; N d ; B 495 177 745 467 ;
+C 101 ; WX 1204 ; N e ; B 300 112 900 532 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 427 ;
+C 103 ; WX 1204 ; N g ; B 388 287 812 357 ;
+C 104 ; WX 1204 ; N h ; B 493 -63 708 477 ;
+C 105 ; WX 1204 ; N i ; B 398 -18 866 493 ;
+C 106 ; WX 1204 ; N j ; B 334 -18 803 493 ;
+C 107 ; WX 1204 ; N k ; B 565 217 635 427 ;
+C 108 ; WX 1204 ; N l ; B 308 -68 893 517 ;
+C 109 ; WX 1204 ; N m ; B 300 15 900 435 ;
+C 110 ; WX 1204 ; N n ; B 300 112 900 532 ;
+C 111 ; WX 1204 ; N o ; B 495 177 745 467 ;
+C 112 ; WX 1204 ; N p ; B 388 287 812 357 ;
+C 113 ; WX 1204 ; N q ; B 419 -18 781 514 ;
+C 114 ; WX 1204 ; N r ; B 308 -68 892 517 ;
+C 115 ; WX 1204 ; N s ; B 250 85 985 365 ;
+C 116 ; WX 1204 ; N t ; B 419 -65 781 467 ;
+C 117 ; WX 1204 ; N u ; B 360 -18 840 467 ;
+C 118 ; WX 1204 ; N v ; B 358 -18 842 467 ;
+C 119 ; WX 1204 ; N w ; B 308 -68 892 517 ;
+C 120 ; WX 1204 ; N x ; B 419 -65 781 467 ;
+C 121 ; WX 1204 ; N y ; B 360 -18 840 467 ;
+C 122 ; WX 1204 ; N z ; B 348 -28 853 477 ;
+C 123 ; WX 636 ; N braceleft ; B 148 84 500 541 ;
+C 124 ; WX 151 ; N bar ; B 0 -293 150 937 ;
+C 125 ; WX 636 ; N braceright ; B 133 84 485 541 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 565 -18 635 467 ;
+C 128 ; WX 1204 ; N Abreve ; B 565 217 635 427 ;
+C 129 ; WX 1204 ; N Aogonek ; B 565 22 635 427 ;
+C 130 ; WX 1204 ; N Cacute ; B 388 287 812 357 ;
+C 131 ; WX 1204 ; N Ccaron ; B 388 287 812 357 ;
+C 132 ; WX 1204 ; N Dcaron ; B 300 112 900 532 ;
+C 133 ; WX 1204 ; N Ecaron ; B 300 112 900 532 ;
+C 134 ; WX 1204 ; N Eogonek ; B 300 15 900 435 ;
+C 135 ; WX 1204 ; N Gbreve ; B 455 177 705 467 ;
+C 136 ; WX 1204 ; N Lacute ; B 455 177 705 467 ;
+C 137 ; WX 1204 ; N Lcaron ; B 358 -18 803 467 ;
+C 138 ; WX 1204 ; N Lslash ; B 565 217 635 427 ;
+C 139 ; WX 1204 ; N Nacute ; B 565 22 635 427 ;
+C 140 ; WX 1204 ; N Ncaron ; B 388 287 812 357 ;
+C 141 ; WX 1204 ; N Eng ; B 388 287 812 357 ;
+C 142 ; WX 1204 ; N Odblacute ; B 300 112 900 532 ;
+C 143 ; WX 1204 ; N Racute ; B 300 112 900 532 ;
+C 144 ; WX 1204 ; N Rcaron ; B 300 15 900 435 ;
+C 145 ; WX 1204 ; N Sacute ; B 495 177 745 467 ;
+C 146 ; WX 1204 ; N Scaron ; B 495 177 745 467 ;
+C 147 ; WX 1204 ; N Scedilla ; B 398 -18 842 467 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 1204 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 1204 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 1204 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 1204 ; N Zdot ; B 0 0 0 0 ;
+C 157 ; WX 1204 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 1204 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 1204 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 1204 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 1204 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 1204 ; N cacute ; B 0 0 0 0 ;
+C 163 ; WX 1204 ; N ccaron ; B 0 0 0 0 ;
+C 164 ; WX 1204 ; N dcaron ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitmn.afm b/fonts/knitting/fonts/afm/knitmn.afm
new file mode 100644
index 0000000000..b09990ffd9
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitmn.afm
@@ -0,0 +1,184 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:34 2019
+FontName KnittingSymbols-mixed-foreground-Medium
+FullName KnittingSymbols-mixed-foreground
+FamilyName KnittingSymbols-mixed-foreground
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -313 5611 957
+CapHeight 532
+XHeight 687
+Ascender 735
+Descender -166
+StartCharMetrics 162
+C 0 ; WX 1204 ; N grave ; B 80 -198 1120 842 ;
+C 1 ; WX 1204 ; N acute ; B 265 472 935 842 ;
+C 2 ; WX 1204 ; N circumflex ; B 265 472 935 842 ;
+C 3 ; WX 1204 ; N tilde ; B 265 -198 935 172 ;
+C 4 ; WX 1204 ; N dieresis ; B 265 -198 935 172 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 7 ; WX 0 ; N caron ; B -200 602 1000 672 ;
+C 8 ; WX 0 ; N breve ; B -200 -28 1000 42 ;
+C 9 ; WX 0 ; N macron ; B -1000 -28 -200 42 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 602 -200 672 ;
+C 11 ; WX 0 ; N cedilla ; B 200 602 1000 672 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -28 1000 42 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -28 235 672 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -28 235 672 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 602 200 672 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -28 200 42 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 214 1200 284 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 214 1010 584 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 50 -114 960 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 215 167 985 477 ;
+C 21 ; WX 1204 ; N endash ; B 215 167 985 477 ;
+C 22 ; WX 602 ; N emdash ; B 0 252 600 392 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 -28 1200 545 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 -28 990 712 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 252 600 842 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 252 411 842 ;
+C 27 ; WX 602 ; N ff ; B 190 -198 600 392 ;
+C 28 ; WX 602 ; N fi ; B 0 -198 411 392 ;
+C 29 ; WX 1204 ; N fl ; B 0 -198 1200 392 ;
+C 30 ; WX 1204 ; N ffi ; B 0 252 1200 842 ;
+C 31 ; WX 6022 ; N ffl ; B 390 -198 5611 842 ;
+C 33 ; WX 1204 ; N exclam ; B 260 -18 940 662 ;
+C 34 ; WX 1204 ; N quotedbl ; B 240 -114 1150 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 260 -18 900 662 ;
+C 38 ; WX 1204 ; N ampersand ; B 210 -68 990 712 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 260 -18 900 662 ;
+C 41 ; WX 1204 ; N parenright ; B 300 -18 940 662 ;
+C 42 ; WX 1204 ; N asterisk ; B 301 -18 899 662 ;
+C 43 ; WX 1204 ; N plus ; B 215 167 985 477 ;
+C 44 ; WX 1204 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 565 -18 635 662 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 215 -35 985 680 ;
+C 48 ; WX 1204 ; N zero ; B 300 -18 940 662 ;
+C 49 ; WX 1204 ; N one ; B 190 214 1200 584 ;
+C 50 ; WX 1204 ; N two ; B 260 -18 940 662 ;
+C 51 ; WX 1204 ; N three ; B 210 -68 990 712 ;
+C 52 ; WX 1204 ; N four ; B 263 -18 937 662 ;
+C 53 ; WX 1204 ; N five ; B 263 -18 937 662 ;
+C 54 ; WX 1204 ; N six ; B 250 -18 950 662 ;
+C 55 ; WX 1204 ; N seven ; B 356 -28 804 672 ;
+C 56 ; WX 1204 ; N eight ; B 396 -28 844 672 ;
+C 57 ; WX 1204 ; N nine ; B 80 -88 1120 672 ;
+C 58 ; WX 1204 ; N colon ; B 260 -18 900 662 ;
+C 59 ; WX 1204 ; N semicolon ; B 300 -18 940 662 ;
+C 60 ; WX 1204 ; N less ; B 300 -18 940 662 ;
+C 61 ; WX 1204 ; N equal ; B 320 287 880 357 ;
+C 62 ; WX 1204 ; N greater ; B 260 -18 900 662 ;
+C 63 ; WX 1204 ; N question ; B 210 -28 1200 712 ;
+C 64 ; WX 1204 ; N at ; B 307 29 893 615 ;
+C 65 ; WX 1204 ; N A ; B 210 -68 990 712 ;
+C 66 ; WX 1204 ; N B ; B 342 -18 858 710 ;
+C 67 ; WX 1204 ; N C ; B -35 -313 1235 957 ;
+C 68 ; WX 1204 ; N D ; B -35 -313 1235 957 ;
+C 69 ; WX 1204 ; N E ; B 210 -68 990 712 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 622 ;
+C 71 ; WX 1204 ; N G ; B -35 -313 1235 957 ;
+C 72 ; WX 1204 ; N H ; B 460 -28 740 707 ;
+C 73 ; WX 1204 ; N I ; B 300 -18 964 688 ;
+C 74 ; WX 1204 ; N J ; B 236 -18 900 688 ;
+C 75 ; WX 1204 ; N K ; B -35 -313 1235 957 ;
+C 76 ; WX 1204 ; N L ; B 250 -69 990 712 ;
+C 77 ; WX 1204 ; N M ; B 300 112 900 532 ;
+C 78 ; WX 1204 ; N N ; B -35 -313 1235 957 ;
+C 79 ; WX 1204 ; N O ; B 260 -18 940 662 ;
+C 80 ; WX 1204 ; N P ; B -35 -313 1235 957 ;
+C 81 ; WX 1204 ; N Q ; B 342 -18 858 710 ;
+C 82 ; WX 1204 ; N R ; B 210 -69 950 712 ;
+C 83 ; WX 1204 ; N S ; B 215 182 950 462 ;
+C 84 ; WX 1204 ; N T ; B 342 -65 858 662 ;
+C 85 ; WX 1204 ; N U ; B -35 22 1235 622 ;
+C 86 ; WX 1204 ; N V ; B 260 -18 940 662 ;
+C 87 ; WX 1204 ; N W ; B 210 -68 990 712 ;
+C 88 ; WX 1204 ; N X ; B 342 -65 858 662 ;
+C 89 ; WX 1204 ; N Y ; B 210 -68 990 712 ;
+C 90 ; WX 1204 ; N Z ; B 120 -158 1080 802 ;
+C 91 ; WX 1204 ; N bracketleft ; B 211 110 1024 534 ;
+C 93 ; WX 1204 ; N bracketright ; B 176 110 989 534 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 602 1035 672 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -28 1035 42 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 210 -68 990 712 ;
+C 98 ; WX 1204 ; N b ; B 342 -18 858 710 ;
+C 99 ; WX 1204 ; N c ; B -35 -313 1235 957 ;
+C 100 ; WX 1204 ; N d ; B -35 -313 1235 957 ;
+C 101 ; WX 1204 ; N e ; B -35 -313 1235 957 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 622 ;
+C 103 ; WX 1204 ; N g ; B -35 -313 1235 957 ;
+C 104 ; WX 1204 ; N h ; B 460 -63 740 672 ;
+C 105 ; WX 1204 ; N i ; B 300 -18 964 688 ;
+C 106 ; WX 1204 ; N j ; B 236 -18 900 688 ;
+C 107 ; WX 1204 ; N k ; B -35 -313 1235 957 ;
+C 108 ; WX 1204 ; N l ; B 210 -68 990 712 ;
+C 109 ; WX 1204 ; N m ; B 300 112 900 532 ;
+C 110 ; WX 1204 ; N n ; B -35 -313 1235 957 ;
+C 111 ; WX 1204 ; N o ; B -35 -313 1235 957 ;
+C 112 ; WX 1204 ; N p ; B -35 -313 1235 957 ;
+C 113 ; WX 1204 ; N q ; B 342 -18 858 710 ;
+C 114 ; WX 1204 ; N r ; B 210 -68 990 712 ;
+C 115 ; WX 1204 ; N s ; B 250 182 985 462 ;
+C 116 ; WX 1204 ; N t ; B 342 -65 858 662 ;
+C 117 ; WX 1204 ; N u ; B 263 -18 937 662 ;
+C 118 ; WX 1204 ; N v ; B 260 -18 940 662 ;
+C 119 ; WX 1204 ; N w ; B 210 -68 990 712 ;
+C 120 ; WX 1204 ; N x ; B 342 -65 858 662 ;
+C 121 ; WX 1204 ; N y ; B 263 -18 937 662 ;
+C 122 ; WX 1204 ; N z ; B 250 -28 950 672 ;
+C 123 ; WX 636 ; N braceleft ; B 148 84 500 541 ;
+C 124 ; WX 151 ; N bar ; B 0 -293 150 937 ;
+C 125 ; WX 636 ; N braceright ; B 133 84 485 541 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 565 -18 635 662 ;
+C 128 ; WX 1204 ; N Abreve ; B 565 217 635 622 ;
+C 129 ; WX 1204 ; N Aogonek ; B 565 22 635 427 ;
+C 130 ; WX 1204 ; N Cacute ; B 320 287 880 357 ;
+C 131 ; WX 1204 ; N Ccaron ; B 320 287 880 357 ;
+C 132 ; WX 1204 ; N Dcaron ; B 300 210 900 630 ;
+C 133 ; WX 1204 ; N Ecaron ; B 300 210 900 630 ;
+C 134 ; WX 1204 ; N Eogonek ; B 300 15 900 435 ;
+C 135 ; WX 1204 ; N Gbreve ; B 358 177 803 662 ;
+C 136 ; WX 1204 ; N Lacute ; B 358 177 803 662 ;
+C 137 ; WX 1204 ; N Lcaron ; B 358 -18 803 467 ;
+C 138 ; WX 1204 ; N Lslash ; B 565 217 635 622 ;
+C 139 ; WX 1204 ; N Nacute ; B 565 22 635 427 ;
+C 140 ; WX 1204 ; N Ncaron ; B 320 287 880 357 ;
+C 141 ; WX 1204 ; N Eng ; B 320 287 880 357 ;
+C 142 ; WX 1204 ; N Odblacute ; B 300 210 900 630 ;
+C 143 ; WX 1204 ; N Racute ; B 300 210 900 630 ;
+C 144 ; WX 1204 ; N Rcaron ; B 300 15 900 435 ;
+C 145 ; WX 1204 ; N Sacute ; B 398 177 842 662 ;
+C 146 ; WX 1204 ; N Scaron ; B 398 177 842 662 ;
+C 147 ; WX 1204 ; N Scedilla ; B 398 -18 842 467 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 1204 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 1204 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 1204 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 1204 ; N Zdot ; B 0 0 0 0 ;
+C 157 ; WX 1204 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 1204 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 1204 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 1204 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 1204 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 1204 ; N cacute ; B 0 0 0 0 ;
+C 163 ; WX 1204 ; N ccaron ; B 0 0 0 0 ;
+C 164 ; WX 1204 ; N dcaron ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B -35 -313 1235 957 ;
+C 255 ; WX 1204 ; N germandbls ; B -35 -313 1235 957 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitmp.afm b/fonts/knitting/fonts/afm/knitmp.afm
new file mode 100644
index 0000000000..7757a0261d
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitmp.afm
@@ -0,0 +1,183 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:36 2019
+FontName KnittingSymbols-mixed-purl-Medium
+FullName KnittingSymbols-mixed-purl
+FamilyName KnittingSymbols-mixed-purl
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -298 1220 942
+CapHeight 942
+XHeight 942
+Descender -298
+StartCharMetrics 162
+C 0 ; WX 1204 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1204 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1204 ; N circumflex ; B -20 -298 1220 942 ;
+C 3 ; WX 1204 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1204 ; N dieresis ; B -20 -298 1220 942 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 7 ; WX 0 ; N caron ; B -200 602 1000 672 ;
+C 8 ; WX 0 ; N breve ; B -200 -28 1000 42 ;
+C 9 ; WX 0 ; N macron ; B -1000 -28 -200 42 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 602 -200 672 ;
+C 11 ; WX 0 ; N cedilla ; B 200 602 1000 672 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -28 1000 42 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -28 235 672 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -28 235 672 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 602 200 672 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -28 200 42 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 0 0 0 0 ;
+C 20 ; WX 1204 ; N guillemotright ; B 0 0 0 0 ;
+C 21 ; WX 1204 ; N endash ; B 0 0 0 0 ;
+C 22 ; WX 602 ; N emdash ; B 0 0 0 0 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 602 ; N dotlessi ; B 0 0 0 0 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 0 0 0 ;
+C 27 ; WX 602 ; N ff ; B 0 0 0 0 ;
+C 28 ; WX 602 ; N fi ; B 0 0 0 0 ;
+C 29 ; WX 1204 ; N fl ; B 0 0 0 0 ;
+C 30 ; WX 1204 ; N ffi ; B 0 0 0 0 ;
+C 31 ; WX 6022 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 1204 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 1204 ; N quotedbl ; B 0 0 0 0 ;
+C 35 ; WX 1204 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 1204 ; N ampersand ; B 0 -278 1200 922 ;
+C 39 ; WX 602 ; N quoteright ; B 0 -278 600 922 ;
+C 40 ; WX 1204 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1204 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1204 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1204 ; N plus ; B 0 0 0 0 ;
+C 44 ; WX 1204 ; N comma ; B -20 -298 1220 942 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 0 0 0 0 ;
+C 48 ; WX 1204 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1204 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 1204 ; N two ; B -20 -298 1220 942 ;
+C 51 ; WX 1204 ; N three ; B -20 -298 1220 942 ;
+C 52 ; WX 1204 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 1204 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1204 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 1204 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 1204 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 1204 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 1204 ; N colon ; B -20 -298 1220 942 ;
+C 59 ; WX 1204 ; N semicolon ; B -20 -298 1220 942 ;
+C 60 ; WX 1204 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1204 ; N equal ; B -20 -298 1220 942 ;
+C 62 ; WX 1204 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1204 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1204 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 1204 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1204 ; N B ; B -20 -298 1220 942 ;
+C 67 ; WX 1204 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 1204 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 1204 ; N E ; B 245 -33 955 677 ;
+C 70 ; WX 1204 ; N F ; B -20 -298 1220 942 ;
+C 71 ; WX 1204 ; N G ; B -20 -298 1220 942 ;
+C 72 ; WX 1204 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 1204 ; N I ; B -20 -298 1220 942 ;
+C 74 ; WX 1204 ; N J ; B -20 -298 1220 942 ;
+C 75 ; WX 1204 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 1204 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 1204 ; N M ; B -20 -298 1220 942 ;
+C 78 ; WX 1204 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 1204 ; N O ; B -20 -298 1220 942 ;
+C 80 ; WX 1204 ; N P ; B -20 -298 1220 942 ;
+C 81 ; WX 1204 ; N Q ; B -20 -298 1220 942 ;
+C 82 ; WX 1204 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1204 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 1204 ; N T ; B -20 -298 1220 942 ;
+C 85 ; WX 1204 ; N U ; B 0 0 0 0 ;
+C 86 ; WX 1204 ; N V ; B -20 -298 1220 942 ;
+C 87 ; WX 1204 ; N W ; B -20 -298 1220 942 ;
+C 88 ; WX 1204 ; N X ; B -20 -298 1220 942 ;
+C 89 ; WX 1204 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 1204 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1204 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1204 ; N bracketright ; B 0 0 0 0 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 602 1035 672 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -28 1035 42 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1204 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1204 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 1204 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 1204 ; N e ; B -20 -298 1220 942 ;
+C 102 ; WX 1204 ; N f ; B 0 0 0 0 ;
+C 103 ; WX 1204 ; N g ; B -20 -298 1220 942 ;
+C 104 ; WX 1204 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 1204 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 1204 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1204 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 1204 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 1204 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 1204 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 1204 ; N o ; B -20 -298 1220 942 ;
+C 112 ; WX 1204 ; N p ; B -20 -298 1220 942 ;
+C 113 ; WX 1204 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 1204 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1204 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 1204 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 1204 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 1204 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 1204 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 1204 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 1204 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 1204 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 151 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 1204 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 1204 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 1204 ; N Cacute ; B -20 -298 1220 942 ;
+C 131 ; WX 1204 ; N Ccaron ; B -20 -298 1220 942 ;
+C 132 ; WX 1204 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 1204 ; N Ecaron ; B -20 -298 1220 942 ;
+C 134 ; WX 1204 ; N Eogonek ; B 0 0 0 0 ;
+C 135 ; WX 1204 ; N Gbreve ; B 0 0 0 0 ;
+C 136 ; WX 1204 ; N Lacute ; B -20 -298 1220 942 ;
+C 137 ; WX 1204 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 1204 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 1204 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 1204 ; N Ncaron ; B -20 -298 1220 942 ;
+C 141 ; WX 1204 ; N Eng ; B -20 -298 1220 942 ;
+C 142 ; WX 1204 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 1204 ; N Racute ; B -20 -298 1220 942 ;
+C 144 ; WX 1204 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 1204 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 1204 ; N Scaron ; B -20 -298 1220 942 ;
+C 147 ; WX 1204 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 1204 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 1204 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 1204 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 1204 ; N Zdot ; B 0 0 0 0 ;
+C 157 ; WX 1204 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 1204 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 1204 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 1204 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 1204 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 1204 ; N cacute ; B 0 -278 1220 922 ;
+C 163 ; WX 1204 ; N ccaron ; B -20 -278 1220 922 ;
+C 164 ; WX 1204 ; N dcaron ; B -20 -278 1200 922 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitmr.afm b/fonts/knitting/fonts/afm/knitmr.afm
new file mode 100644
index 0000000000..3e63569c89
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitmr.afm
@@ -0,0 +1,184 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:44 2019
+FontName KnittingSymbols-mixed-raised-Medium
+FullName KnittingSymbols-mixed-raised
+FamilyName KnittingSymbols-mixed-raised
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -293 5611 937
+CapHeight 357
+XHeight 630
+Ascender 675
+Descender 287
+StartCharMetrics 162
+C 0 ; WX 1204 ; N grave ; B 217 37 983 802 ;
+C 1 ; WX 1204 ; N acute ; B 362 570 838 842 ;
+C 2 ; WX 1204 ; N circumflex ; B 362 570 838 842 ;
+C 3 ; WX 1204 ; N tilde ; B 362 -3 838 270 ;
+C 4 ; WX 1204 ; N dieresis ; B 362 -3 838 270 ;
+C 5 ; WX 1204 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 7 ; WX 0 ; N caron ; B -200 602 1000 672 ;
+C 8 ; WX 0 ; N breve ; B -200 -28 1000 42 ;
+C 9 ; WX 0 ; N macron ; B -1000 -28 -200 42 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 602 -200 672 ;
+C 11 ; WX 0 ; N cedilla ; B 200 602 1000 672 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -28 1000 42 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -28 235 672 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -28 235 672 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 602 200 672 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -28 200 42 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 279 1200 349 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 279 1010 649 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 50 -114 960 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 215 206 985 438 ;
+C 21 ; WX 1204 ; N endash ; B 215 206 985 438 ;
+C 22 ; WX 602 ; N emdash ; B 0 350 600 490 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 167 1200 593 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 167 990 712 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 350 600 842 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 350 411 842 ;
+C 27 ; WX 602 ; N ff ; B 190 -3 600 490 ;
+C 28 ; WX 602 ; N fi ; B 0 -3 411 490 ;
+C 29 ; WX 1204 ; N fl ; B 0 -3 1200 490 ;
+C 30 ; WX 1204 ; N ffi ; B 0 350 1200 842 ;
+C 31 ; WX 6022 ; N ffl ; B 390 -3 5611 842 ;
+C 33 ; WX 1204 ; N exclam ; B 358 177 842 662 ;
+C 34 ; WX 1204 ; N quotedbl ; B 240 -114 1150 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 358 177 803 662 ;
+C 38 ; WX 1204 ; N ampersand ; B 308 127 892 712 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 358 177 803 662 ;
+C 41 ; WX 1204 ; N parenright ; B 398 177 843 662 ;
+C 42 ; WX 1204 ; N asterisk ; B 385 177 815 662 ;
+C 43 ; WX 1204 ; N plus ; B 215 206 985 438 ;
+C 44 ; WX 1204 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 565 177 635 662 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 215 62 985 582 ;
+C 48 ; WX 1204 ; N zero ; B 398 177 842 662 ;
+C 49 ; WX 1204 ; N one ; B 190 279 1200 649 ;
+C 50 ; WX 1204 ; N two ; B 358 177 842 662 ;
+C 51 ; WX 1204 ; N three ; B 308 127 892 712 ;
+C 52 ; WX 1204 ; N four ; B 360 177 840 662 ;
+C 53 ; WX 1204 ; N five ; B 360 177 840 662 ;
+C 54 ; WX 1204 ; N six ; B 348 177 853 662 ;
+C 55 ; WX 1204 ; N seven ; B 415 167 746 672 ;
+C 56 ; WX 1204 ; N eight ; B 455 167 786 672 ;
+C 57 ; WX 1204 ; N nine ; B 80 78 1120 672 ;
+C 58 ; WX 1204 ; N colon ; B 358 177 803 662 ;
+C 59 ; WX 1204 ; N semicolon ; B 398 177 842 662 ;
+C 60 ; WX 1204 ; N less ; B 398 177 842 662 ;
+C 61 ; WX 1204 ; N equal ; B 388 287 812 357 ;
+C 62 ; WX 1204 ; N greater ; B 358 177 803 662 ;
+C 63 ; WX 1204 ; N question ; B 210 167 1200 712 ;
+C 64 ; WX 1204 ; N at ; B 307 29 893 615 ;
+C 65 ; WX 1204 ; N A ; B 308 127 892 712 ;
+C 66 ; WX 1204 ; N B ; B 419 177 781 709 ;
+C 67 ; WX 1204 ; N C ; B 565 217 635 427 ;
+C 68 ; WX 1204 ; N D ; B 495 177 745 467 ;
+C 69 ; WX 1204 ; N E ; B 308 127 892 712 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 622 ;
+C 71 ; WX 1204 ; N G ; B 388 287 812 357 ;
+C 72 ; WX 1204 ; N H ; B 493 167 708 707 ;
+C 73 ; WX 1204 ; N I ; B 398 177 866 688 ;
+C 74 ; WX 1204 ; N J ; B 334 177 803 688 ;
+C 75 ; WX 1204 ; N K ; B 565 217 635 427 ;
+C 76 ; WX 1204 ; N L ; B 348 126 893 712 ;
+C 77 ; WX 1204 ; N M ; B 300 210 900 630 ;
+C 78 ; WX 1204 ; N N ; B 300 112 900 532 ;
+C 79 ; WX 1204 ; N O ; B 358 177 842 662 ;
+C 80 ; WX 1204 ; N P ; B 388 287 812 357 ;
+C 81 ; WX 1204 ; N Q ; B 419 177 781 709 ;
+C 82 ; WX 1204 ; N R ; B 307 126 853 712 ;
+C 83 ; WX 1204 ; N S ; B 215 280 950 560 ;
+C 84 ; WX 1204 ; N T ; B 419 130 781 662 ;
+C 85 ; WX 1204 ; N U ; B -35 217 1235 622 ;
+C 86 ; WX 1204 ; N V ; B 358 177 842 662 ;
+C 87 ; WX 1204 ; N W ; B 308 127 892 712 ;
+C 88 ; WX 1204 ; N X ; B 419 130 781 662 ;
+C 89 ; WX 1204 ; N Y ; B 308 127 892 712 ;
+C 90 ; WX 1204 ; N Z ; B 217 37 983 802 ;
+C 91 ; WX 1204 ; N bracketleft ; B 211 208 1024 632 ;
+C 93 ; WX 1204 ; N bracketright ; B 176 208 989 632 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 602 1035 672 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -28 1035 42 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 308 127 892 712 ;
+C 98 ; WX 1204 ; N b ; B 419 177 781 709 ;
+C 99 ; WX 1204 ; N c ; B 565 217 635 622 ;
+C 100 ; WX 1204 ; N d ; B 398 177 842 662 ;
+C 101 ; WX 1204 ; N e ; B 300 210 900 630 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 622 ;
+C 103 ; WX 1204 ; N g ; B 388 287 812 357 ;
+C 104 ; WX 1204 ; N h ; B 493 132 708 672 ;
+C 105 ; WX 1204 ; N i ; B 398 177 866 688 ;
+C 106 ; WX 1204 ; N j ; B 334 177 803 688 ;
+C 107 ; WX 1204 ; N k ; B 565 217 635 622 ;
+C 108 ; WX 1204 ; N l ; B 308 127 893 712 ;
+C 109 ; WX 1204 ; N m ; B 300 210 900 630 ;
+C 110 ; WX 1204 ; N n ; B 300 210 900 630 ;
+C 111 ; WX 1204 ; N o ; B 398 177 842 662 ;
+C 112 ; WX 1204 ; N p ; B 388 287 812 357 ;
+C 113 ; WX 1204 ; N q ; B 419 177 781 709 ;
+C 114 ; WX 1204 ; N r ; B 308 127 892 712 ;
+C 115 ; WX 1204 ; N s ; B 250 280 985 560 ;
+C 116 ; WX 1204 ; N t ; B 419 130 781 662 ;
+C 117 ; WX 1204 ; N u ; B 360 177 840 662 ;
+C 118 ; WX 1204 ; N v ; B 358 177 842 662 ;
+C 119 ; WX 1204 ; N w ; B 308 127 892 712 ;
+C 120 ; WX 1204 ; N x ; B 419 130 781 662 ;
+C 121 ; WX 1204 ; N y ; B 360 177 840 662 ;
+C 122 ; WX 1204 ; N z ; B 348 167 853 672 ;
+C 123 ; WX 636 ; N braceleft ; B 148 84 500 541 ;
+C 124 ; WX 151 ; N bar ; B 0 -293 150 937 ;
+C 125 ; WX 636 ; N braceright ; B 133 84 485 541 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 565 177 635 662 ;
+C 128 ; WX 1204 ; N Abreve ; B 565 217 635 622 ;
+C 129 ; WX 1204 ; N Aogonek ; B 565 217 635 427 ;
+C 130 ; WX 1204 ; N Cacute ; B 388 287 812 357 ;
+C 131 ; WX 1204 ; N Ccaron ; B 388 287 812 357 ;
+C 132 ; WX 1204 ; N Dcaron ; B 300 210 900 630 ;
+C 133 ; WX 1204 ; N Ecaron ; B 300 210 900 630 ;
+C 134 ; WX 1204 ; N Eogonek ; B 300 112 900 532 ;
+C 135 ; WX 1204 ; N Gbreve ; B 358 177 803 662 ;
+C 136 ; WX 1204 ; N Lacute ; B 358 177 803 662 ;
+C 137 ; WX 1204 ; N Lcaron ; B 455 177 705 467 ;
+C 138 ; WX 1204 ; N Lslash ; B 565 217 635 622 ;
+C 139 ; WX 1204 ; N Nacute ; B 565 217 635 427 ;
+C 140 ; WX 1204 ; N Ncaron ; B 388 287 812 357 ;
+C 141 ; WX 1204 ; N Eng ; B 388 287 812 357 ;
+C 142 ; WX 1204 ; N Odblacute ; B 300 210 900 630 ;
+C 143 ; WX 1204 ; N Racute ; B 300 210 900 630 ;
+C 144 ; WX 1204 ; N Rcaron ; B 300 112 900 532 ;
+C 145 ; WX 1204 ; N Sacute ; B 398 177 842 662 ;
+C 146 ; WX 1204 ; N Scaron ; B 398 177 842 662 ;
+C 147 ; WX 1204 ; N Scedilla ; B 495 177 745 467 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 1204 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 1204 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 1204 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 1204 ; N Zdot ; B 0 0 0 0 ;
+C 157 ; WX 1204 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 1204 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 1204 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 1204 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 1204 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 1204 ; N cacute ; B 0 0 0 0 ;
+C 163 ; WX 1204 ; N ccaron ; B 0 0 0 0 ;
+C 164 ; WX 1204 ; N dcaron ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitn_sc_in.afm b/fonts/knitting/fonts/afm/knitn_sc_in.afm
new file mode 100644
index 0000000000..6a97c800ae
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitn_sc_in.afm
@@ -0,0 +1,169 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:05:46 2019
+FontName KnittingSymbols-nogrid-incount-Medium
+FullName KnittingSymbols-nogrid-incount
+FamilyName KnittingSymbols-nogrid-incount
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -218 1235 862
+CapHeight 672
+XHeight 862
+Ascender 672
+StartCharMetrics 148
+C 0 ; WX 1204 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1204 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1204 ; N circumflex ; B 0 0 0 0 ;
+C 3 ; WX 1204 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1204 ; N dieresis ; B 0 0 0 0 ;
+C 7 ; WX 0 ; N caron ; B -200 652 1000 722 ;
+C 8 ; WX 0 ; N breve ; B -200 -78 1000 -8 ;
+C 9 ; WX 0 ; N macron ; B -1000 -78 -200 -8 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 652 -200 722 ;
+C 11 ; WX 0 ; N cedilla ; B 200 652 1000 722 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -78 1000 -8 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -78 235 722 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -78 235 722 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 652 200 722 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -78 200 -8 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 0 ; N guillemotleft ; B -550 -114 360 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 165 147 1035 497 ;
+C 21 ; WX 0 ; N endash ; B 165 147 1035 497 ;
+C 22 ; WX 602 ; N emdash ; B 0 252 600 392 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 252 600 862 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 252 411 862 ;
+C 27 ; WX 602 ; N ff ; B 190 -218 600 392 ;
+C 28 ; WX 602 ; N fi ; B 0 -218 411 392 ;
+C 29 ; WX 1204 ; N fl ; B 0 -218 1200 392 ;
+C 30 ; WX 1204 ; N ffi ; B 0 252 1200 862 ;
+C 31 ; WX 6022 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 2409 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 0 ; N quotedbl ; B -360 -114 550 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 1204 ; N ampersand ; B 0 0 0 0 ;
+C 39 ; WX 0 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1204 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1204 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1204 ; N plus ; B 165 147 1035 497 ;
+C 44 ; WX 0 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 0 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 165 -85 1035 730 ;
+C 48 ; WX 1204 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1204 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 2409 ; N two ; B 0 0 0 0 ;
+C 51 ; WX 3613 ; N three ; B 0 0 0 0 ;
+C 52 ; WX 2409 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 2409 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1204 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 1204 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 1204 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 1204 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 2409 ; N colon ; B 0 0 0 0 ;
+C 59 ; WX 2409 ; N semicolon ; B 0 0 0 0 ;
+C 60 ; WX 2409 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1204 ; N equal ; B 0 0 0 0 ;
+C 62 ; WX 2409 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1204 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1204 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 3613 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1204 ; N B ; B 0 0 0 0 ;
+C 67 ; WX 1204 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 2409 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 1204 ; N E ; B 0 0 0 0 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 672 ;
+C 71 ; WX 1204 ; N G ; B 0 0 0 0 ;
+C 72 ; WX 0 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 0 ; N I ; B 0 0 0 0 ;
+C 74 ; WX 0 ; N J ; B 0 0 0 0 ;
+C 75 ; WX 1204 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 3613 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 0 ; N M ; B 0 0 0 0 ;
+C 78 ; WX 0 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 0 ; N O ; B 0 0 0 0 ;
+C 80 ; WX 1204 ; N P ; B 0 0 0 0 ;
+C 81 ; WX 1204 ; N Q ; B 0 0 0 0 ;
+C 82 ; WX 3613 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1204 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 0 ; N T ; B 0 0 0 0 ;
+C 85 ; WX 0 ; N U ; B -350 -28 350 672 ;
+C 86 ; WX 1204 ; N V ; B 0 0 0 0 ;
+C 87 ; WX 1204 ; N W ; B 0 0 0 0 ;
+C 88 ; WX 0 ; N X ; B 0 0 0 0 ;
+C 89 ; WX 1204 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 1204 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1204 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1204 ; N bracketright ; B 0 0 0 0 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 652 1035 722 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -78 1035 -8 ;
+C 96 ; WX 0 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 3613 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1204 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1204 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 2409 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 0 ; N e ; B 0 0 0 0 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 672 ;
+C 103 ; WX 1204 ; N g ; B 0 0 0 0 ;
+C 104 ; WX 1204 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 0 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 0 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1204 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 3613 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 0 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 0 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 2409 ; N o ; B 0 0 0 0 ;
+C 112 ; WX 1204 ; N p ; B 0 0 0 0 ;
+C 113 ; WX 1204 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 3613 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1204 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 0 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 1204 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 1204 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 1204 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 0 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 1204 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 1204 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 0 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 0 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 1204 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 1204 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 1204 ; N Cacute ; B 0 0 0 0 ;
+C 131 ; WX 1204 ; N Ccaron ; B 0 0 0 0 ;
+C 132 ; WX 0 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 0 ; N Ecaron ; B 0 0 0 0 ;
+C 134 ; WX 0 ; N Eogonek ; B 0 0 0 0 ;
+C 135 ; WX 2409 ; N Gbreve ; B 0 0 0 0 ;
+C 136 ; WX 2409 ; N Lacute ; B 0 0 0 0 ;
+C 137 ; WX 2409 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 1204 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 1204 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 1204 ; N Ncaron ; B 0 0 0 0 ;
+C 141 ; WX 1204 ; N Eng ; B 0 0 0 0 ;
+C 142 ; WX 0 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 0 ; N Racute ; B 0 0 0 0 ;
+C 144 ; WX 0 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 2409 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 2409 ; N Scaron ; B 0 0 0 0 ;
+C 147 ; WX 2409 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitn_sc_out.afm b/fonts/knitting/fonts/afm/knitn_sc_out.afm
new file mode 100644
index 0000000000..a0f822a6ba
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitn_sc_out.afm
@@ -0,0 +1,169 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:06:12 2019
+FontName KnittingSymbols-nogrid-outcount-Medium
+FullName KnittingSymbols-nogrid-outcount
+FamilyName KnittingSymbols-nogrid-outcount
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -218 1235 862
+CapHeight 672
+XHeight 862
+Ascender 672
+StartCharMetrics 148
+C 0 ; WX 1204 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1204 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1204 ; N circumflex ; B 0 0 0 0 ;
+C 3 ; WX 1204 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1204 ; N dieresis ; B 0 0 0 0 ;
+C 7 ; WX 0 ; N caron ; B -200 652 1000 722 ;
+C 8 ; WX 0 ; N breve ; B -200 -78 1000 -8 ;
+C 9 ; WX 0 ; N macron ; B -1000 -78 -200 -8 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 652 -200 722 ;
+C 11 ; WX 0 ; N cedilla ; B 200 652 1000 722 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -78 1000 -8 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -78 235 722 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -78 235 722 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 652 200 722 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -78 200 -8 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 0 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 0 ; N guillemotleft ; B -550 -114 360 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 165 147 1035 497 ;
+C 21 ; WX 0 ; N endash ; B 165 147 1035 497 ;
+C 22 ; WX 602 ; N emdash ; B 0 252 600 392 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 252 600 862 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 252 411 862 ;
+C 27 ; WX 602 ; N ff ; B 190 -218 600 392 ;
+C 28 ; WX 602 ; N fi ; B 0 -218 411 392 ;
+C 29 ; WX 1204 ; N fl ; B 0 -218 1200 392 ;
+C 30 ; WX 1204 ; N ffi ; B 0 252 1200 862 ;
+C 31 ; WX 1204 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 1204 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 0 ; N quotedbl ; B -360 -114 550 757 ;
+C 35 ; WX 2409 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 3613 ; N ampersand ; B 0 0 0 0 ;
+C 39 ; WX 0 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1204 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1204 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1204 ; N plus ; B 165 147 1035 497 ;
+C 44 ; WX 0 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 0 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 165 -85 1035 730 ;
+C 48 ; WX 2409 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1204 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 1204 ; N two ; B 0 0 0 0 ;
+C 51 ; WX 1204 ; N three ; B 0 0 0 0 ;
+C 52 ; WX 1204 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 1204 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1204 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 2409 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 2409 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 2409 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 1204 ; N colon ; B 0 0 0 0 ;
+C 59 ; WX 1204 ; N semicolon ; B 0 0 0 0 ;
+C 60 ; WX 1204 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1204 ; N equal ; B 0 0 0 0 ;
+C 62 ; WX 1204 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1204 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1204 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 1204 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1204 ; N B ; B 0 0 0 0 ;
+C 67 ; WX 1204 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 1204 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 3613 ; N E ; B 0 0 0 0 ;
+C 70 ; WX 0 ; N F ; B -635 287 635 672 ;
+C 71 ; WX 1204 ; N G ; B 0 0 0 0 ;
+C 72 ; WX 1204 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 1204 ; N I ; B 0 0 0 0 ;
+C 74 ; WX 1204 ; N J ; B 0 0 0 0 ;
+C 75 ; WX 1204 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 1204 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 1204 ; N M ; B 0 0 0 0 ;
+C 78 ; WX 1204 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 1204 ; N O ; B 0 0 0 0 ;
+C 80 ; WX 1204 ; N P ; B 0 0 0 0 ;
+C 81 ; WX 1204 ; N Q ; B 0 0 0 0 ;
+C 82 ; WX 1204 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1204 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 1204 ; N T ; B 0 0 0 0 ;
+C 85 ; WX 1204 ; N U ; B -35 -28 1235 672 ;
+C 86 ; WX 2409 ; N V ; B 0 0 0 0 ;
+C 87 ; WX 3613 ; N W ; B 0 0 0 0 ;
+C 88 ; WX 1204 ; N X ; B 0 0 0 0 ;
+C 89 ; WX 3613 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 3613 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1204 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1204 ; N bracketright ; B 0 0 0 0 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 652 1035 722 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -78 1035 -8 ;
+C 96 ; WX 0 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1204 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1204 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 1204 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 1204 ; N e ; B 0 0 0 0 ;
+C 102 ; WX 0 ; N f ; B -635 287 635 672 ;
+C 103 ; WX 1204 ; N g ; B 0 0 0 0 ;
+C 104 ; WX 0 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 1204 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 1204 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1204 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 1204 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 1204 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 1204 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 1204 ; N o ; B 0 0 0 0 ;
+C 112 ; WX 1204 ; N p ; B 0 0 0 0 ;
+C 113 ; WX 1204 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 1204 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1204 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 1204 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 2409 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 2409 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 3613 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 1204 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 2409 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 2409 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 0 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 0 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 1204 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 1204 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 1204 ; N Cacute ; B 0 0 0 0 ;
+C 131 ; WX 1204 ; N Ccaron ; B 0 0 0 0 ;
+C 132 ; WX 1204 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 1204 ; N Ecaron ; B 0 0 0 0 ;
+C 134 ; WX 1204 ; N Eogonek ; B 0 0 0 0 ;
+C 135 ; WX 1204 ; N Gbreve ; B 0 0 0 0 ;
+C 136 ; WX 1204 ; N Lacute ; B 0 0 0 0 ;
+C 137 ; WX 1204 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 1204 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 1204 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 1204 ; N Ncaron ; B 0 0 0 0 ;
+C 141 ; WX 1204 ; N Eng ; B 0 0 0 0 ;
+C 142 ; WX 1204 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 1204 ; N Racute ; B 0 0 0 0 ;
+C 144 ; WX 1204 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 1204 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 1204 ; N Scaron ; B 0 0 0 0 ;
+C 147 ; WX 1204 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitnl.afm b/fonts/knitting/fonts/afm/knitnl.afm
new file mode 100644
index 0000000000..245106e47d
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitnl.afm
@@ -0,0 +1,170 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:06:58 2019
+FontName KnittingSymbols-nogrid-lowered-Medium
+FullName KnittingSymbols-nogrid-lowered
+FamilyName KnittingSymbols-nogrid-lowered
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -298 5611 942
+CapHeight 396
+XHeight 444
+Ascender 531
+Descender 287
+StartCharMetrics 148
+C 0 ; WX 1204 ; N grave ; B 197 -178 1003 627 ;
+C 1 ; WX 1204 ; N acute ; B 312 344 888 668 ;
+C 2 ; WX 1204 ; N circumflex ; B 312 344 888 668 ;
+C 3 ; WX 1204 ; N tilde ; B 312 -218 888 104 ;
+C 4 ; WX 1204 ; N dieresis ; B 312 -218 888 104 ;
+C 7 ; WX 0 ; N caron ; B -200 652 1000 722 ;
+C 8 ; WX 0 ; N breve ; B -200 -78 1000 -8 ;
+C 9 ; WX 0 ; N macron ; B -1000 -78 -200 -8 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 652 -200 722 ;
+C 11 ; WX 0 ; N cedilla ; B 200 652 1000 722 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -78 1000 -8 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -78 235 722 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -78 235 722 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 652 200 722 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -78 200 -8 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 -118 1200 567 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 -68 1060 517 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 50 -114 960 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 165 186 1035 458 ;
+C 21 ; WX 1204 ; N endash ; B 165 186 1035 458 ;
+C 22 ; WX 602 ; N emdash ; B 0 155 600 295 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 -118 1200 567 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 -118 1040 567 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 155 600 667 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 155 411 667 ;
+C 27 ; WX 602 ; N ff ; B 190 -218 600 295 ;
+C 28 ; WX 602 ; N fi ; B 0 -218 411 295 ;
+C 29 ; WX 1204 ; N fl ; B 0 -218 1200 295 ;
+C 30 ; WX 1204 ; N ffi ; B 0 155 1200 667 ;
+C 31 ; WX 6022 ; N ffl ; B 390 -218 5611 667 ;
+C 33 ; WX 1204 ; N exclam ; B 308 -68 892 517 ;
+C 34 ; WX 1204 ; N quotedbl ; B 240 -114 1150 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 308 -68 853 517 ;
+C 38 ; WX 1204 ; N ampersand ; B 258 -118 943 567 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 308 -68 853 517 ;
+C 41 ; WX 1204 ; N parenright ; B 348 -68 893 517 ;
+C 42 ; WX 1204 ; N asterisk ; B 342 -68 858 517 ;
+C 43 ; WX 1204 ; N plus ; B 165 186 1035 458 ;
+C 44 ; WX 1204 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 565 -68 635 517 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 165 12 1035 632 ;
+C 48 ; WX 1204 ; N zero ; B 348 -68 892 517 ;
+C 49 ; WX 1204 ; N one ; B 140 -68 1200 517 ;
+C 50 ; WX 1204 ; N two ; B 308 -68 892 517 ;
+C 51 ; WX 1204 ; N three ; B 258 -118 943 567 ;
+C 52 ; WX 1204 ; N four ; B 310 -68 890 517 ;
+C 53 ; WX 1204 ; N five ; B 310 -68 890 517 ;
+C 54 ; WX 1204 ; N six ; B 298 -68 903 517 ;
+C 55 ; WX 1204 ; N seven ; B 385 -78 776 527 ;
+C 56 ; WX 1204 ; N eight ; B 425 -78 816 527 ;
+C 57 ; WX 1204 ; N nine ; B 60 -158 1140 527 ;
+C 58 ; WX 1204 ; N colon ; B 308 -68 853 517 ;
+C 59 ; WX 1204 ; N semicolon ; B 348 -68 892 517 ;
+C 60 ; WX 1204 ; N less ; B 348 -68 892 517 ;
+C 61 ; WX 1204 ; N equal ; B 353 287 847 357 ;
+C 62 ; WX 1204 ; N greater ; B 308 -68 853 517 ;
+C 63 ; WX 1204 ; N question ; B 160 -118 1200 567 ;
+C 64 ; WX 1204 ; N at ; B 307 29 893 615 ;
+C 65 ; WX 1204 ; N A ; B 258 -118 943 567 ;
+C 66 ; WX 1204 ; N B ; B 380 -68 820 565 ;
+C 67 ; WX 1204 ; N C ; B 565 -28 635 477 ;
+C 68 ; WX 1204 ; N D ; B 348 -68 892 517 ;
+C 69 ; WX 1204 ; N E ; B 258 -118 943 567 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 477 ;
+C 71 ; WX 1204 ; N G ; B 353 287 847 357 ;
+C 72 ; WX 1204 ; N H ; B 476 -78 724 562 ;
+C 73 ; WX 1204 ; N I ; B 348 -68 916 543 ;
+C 74 ; WX 1204 ; N J ; B 284 -68 853 543 ;
+C 75 ; WX 1204 ; N K ; B 565 -28 635 477 ;
+C 76 ; WX 1204 ; N L ; B 298 -119 943 567 ;
+C 77 ; WX 1204 ; N M ; B 300 15 900 435 ;
+C 78 ; WX 1204 ; N N ; B 300 15 900 435 ;
+C 79 ; WX 1204 ; N O ; B 308 -68 892 517 ;
+C 80 ; WX 1204 ; N P ; B 353 287 847 357 ;
+C 81 ; WX 1204 ; N Q ; B 380 -68 820 565 ;
+C 82 ; WX 1204 ; N R ; B 257 -119 903 567 ;
+C 83 ; WX 1204 ; N S ; B 165 68 1000 381 ;
+C 84 ; WX 1204 ; N T ; B 380 -115 820 517 ;
+C 85 ; WX 1204 ; N U ; B -35 -28 1235 477 ;
+C 86 ; WX 1204 ; N V ; B 308 -68 892 517 ;
+C 87 ; WX 1204 ; N W ; B 258 -118 943 567 ;
+C 88 ; WX 1204 ; N X ; B 380 -115 820 517 ;
+C 89 ; WX 1204 ; N Y ; B 258 -118 943 567 ;
+C 90 ; WX 1204 ; N Z ; B 197 -178 1003 627 ;
+C 91 ; WX 1204 ; N bracketleft ; B 170 -8 1065 457 ;
+C 93 ; WX 1204 ; N bracketright ; B 135 -8 1030 457 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 652 1035 722 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -78 1035 -8 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 258 -118 943 567 ;
+C 98 ; WX 1204 ; N b ; B 380 -68 820 565 ;
+C 99 ; WX 1204 ; N c ; B 565 167 635 477 ;
+C 100 ; WX 1204 ; N d ; B 445 127 795 517 ;
+C 101 ; WX 1204 ; N e ; B 300 112 900 532 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 477 ;
+C 103 ; WX 1204 ; N g ; B 353 287 847 357 ;
+C 104 ; WX 1204 ; N h ; B 476 -113 724 527 ;
+C 105 ; WX 1204 ; N i ; B 348 -68 916 543 ;
+C 106 ; WX 1204 ; N j ; B 284 -68 853 543 ;
+C 107 ; WX 1204 ; N k ; B 565 167 635 477 ;
+C 108 ; WX 1204 ; N l ; B 258 -118 943 567 ;
+C 109 ; WX 1204 ; N m ; B 300 15 900 435 ;
+C 110 ; WX 1204 ; N n ; B 300 112 900 532 ;
+C 111 ; WX 1204 ; N o ; B 445 127 795 517 ;
+C 112 ; WX 1204 ; N p ; B 353 287 847 357 ;
+C 113 ; WX 1204 ; N q ; B 380 -68 820 565 ;
+C 114 ; WX 1204 ; N r ; B 258 -118 943 567 ;
+C 115 ; WX 1204 ; N s ; B 200 68 1035 381 ;
+C 116 ; WX 1204 ; N t ; B 380 -115 820 517 ;
+C 117 ; WX 1204 ; N u ; B 310 -68 890 517 ;
+C 118 ; WX 1204 ; N v ; B 308 -68 892 517 ;
+C 119 ; WX 1204 ; N w ; B 258 -118 943 567 ;
+C 120 ; WX 1204 ; N x ; B 380 -115 820 517 ;
+C 121 ; WX 1204 ; N y ; B 310 -68 890 517 ;
+C 122 ; WX 1204 ; N z ; B 297 -78 903 527 ;
+C 123 ; WX 636 ; N braceleft ; B 153 87 500 538 ;
+C 124 ; WX 80 ; N bar ; B 0 -298 80 942 ;
+C 125 ; WX 636 ; N braceright ; B 133 87 480 538 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 565 -68 635 517 ;
+C 128 ; WX 1204 ; N Abreve ; B 565 167 635 477 ;
+C 129 ; WX 1204 ; N Aogonek ; B 565 -28 635 477 ;
+C 130 ; WX 1204 ; N Cacute ; B 353 287 847 357 ;
+C 131 ; WX 1204 ; N Ccaron ; B 353 287 847 357 ;
+C 132 ; WX 1204 ; N Dcaron ; B 300 112 900 532 ;
+C 133 ; WX 1204 ; N Ecaron ; B 300 112 900 532 ;
+C 134 ; WX 1204 ; N Eogonek ; B 300 15 900 435 ;
+C 135 ; WX 1204 ; N Gbreve ; B 405 127 755 517 ;
+C 136 ; WX 1204 ; N Lacute ; B 405 127 755 517 ;
+C 137 ; WX 1204 ; N Lcaron ; B 308 -68 853 517 ;
+C 138 ; WX 1204 ; N Lslash ; B 565 167 635 477 ;
+C 139 ; WX 1204 ; N Nacute ; B 565 -28 635 477 ;
+C 140 ; WX 1204 ; N Ncaron ; B 353 287 847 357 ;
+C 141 ; WX 1204 ; N Eng ; B 353 287 847 357 ;
+C 142 ; WX 1204 ; N Odblacute ; B 300 112 900 532 ;
+C 143 ; WX 1204 ; N Racute ; B 300 112 900 532 ;
+C 144 ; WX 1204 ; N Rcaron ; B 300 15 900 435 ;
+C 145 ; WX 1204 ; N Sacute ; B 445 127 795 517 ;
+C 146 ; WX 1204 ; N Scaron ; B 445 127 795 517 ;
+C 147 ; WX 1204 ; N Scedilla ; B 348 -68 892 517 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitnn.afm b/fonts/knitting/fonts/afm/knitnn.afm
new file mode 100644
index 0000000000..44d90747be
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitnn.afm
@@ -0,0 +1,170 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:07:20 2019
+FontName KnittingSymbols-nogrid-foreground-Medium
+FullName KnittingSymbols-nogrid-foreground
+FamilyName KnittingSymbols-nogrid-foreground
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -313 5611 957
+CapHeight 532
+XHeight 697
+Ascender 775
+Descender -190
+StartCharMetrics 148
+C 0 ; WX 1204 ; N grave ; B 60 -218 1140 862 ;
+C 1 ; WX 1204 ; N acute ; B 215 442 985 862 ;
+C 2 ; WX 1204 ; N circumflex ; B 215 442 985 862 ;
+C 3 ; WX 1204 ; N tilde ; B 215 -218 985 202 ;
+C 4 ; WX 1204 ; N dieresis ; B 215 -218 985 202 ;
+C 7 ; WX 0 ; N caron ; B -200 652 1000 722 ;
+C 8 ; WX 0 ; N breve ; B -200 -78 1000 -8 ;
+C 9 ; WX 0 ; N macron ; B -1000 -78 -200 -8 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 652 -200 722 ;
+C 11 ; WX 0 ; N cedilla ; B 200 652 1000 722 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -78 1000 -8 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -78 235 722 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -78 235 722 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 652 200 722 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -78 200 -8 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 -118 1200 762 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 -68 1060 712 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 50 -114 960 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 165 147 1035 497 ;
+C 21 ; WX 1204 ; N endash ; B 165 147 1035 497 ;
+C 22 ; WX 602 ; N emdash ; B 0 252 600 392 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 -118 1200 762 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 -118 1140 762 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 252 600 862 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 252 411 862 ;
+C 27 ; WX 602 ; N ff ; B 190 -218 600 392 ;
+C 28 ; WX 602 ; N fi ; B 0 -218 411 392 ;
+C 29 ; WX 1204 ; N fl ; B 0 -218 1200 392 ;
+C 30 ; WX 1204 ; N ffi ; B 0 252 1200 862 ;
+C 31 ; WX 6022 ; N ffl ; B 390 -218 5611 862 ;
+C 33 ; WX 1204 ; N exclam ; B 210 -68 990 712 ;
+C 34 ; WX 1204 ; N quotedbl ; B 240 -114 1150 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 210 -68 950 712 ;
+C 38 ; WX 1204 ; N ampersand ; B 160 -118 1040 762 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 210 -68 950 712 ;
+C 41 ; WX 1204 ; N parenright ; B 250 -68 990 712 ;
+C 42 ; WX 1204 ; N asterisk ; B 258 -68 942 712 ;
+C 43 ; WX 1204 ; N plus ; B 165 147 1035 497 ;
+C 44 ; WX 1204 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 565 -68 635 712 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 165 -85 1035 730 ;
+C 48 ; WX 1204 ; N zero ; B 250 -68 990 712 ;
+C 49 ; WX 1204 ; N one ; B 140 -68 1200 712 ;
+C 50 ; WX 1204 ; N two ; B 210 -68 990 712 ;
+C 51 ; WX 1204 ; N three ; B 160 -118 1040 762 ;
+C 52 ; WX 1204 ; N four ; B 214 -68 986 712 ;
+C 53 ; WX 1204 ; N five ; B 214 -68 986 712 ;
+C 54 ; WX 1204 ; N six ; B 200 -68 1000 712 ;
+C 55 ; WX 1204 ; N seven ; B 326 -78 834 722 ;
+C 56 ; WX 1204 ; N eight ; B 366 -78 874 722 ;
+C 57 ; WX 1204 ; N nine ; B 60 -136 1140 722 ;
+C 58 ; WX 1204 ; N colon ; B 210 -68 950 712 ;
+C 59 ; WX 1204 ; N semicolon ; B 250 -68 990 712 ;
+C 60 ; WX 1204 ; N less ; B 250 -68 990 712 ;
+C 61 ; WX 1204 ; N equal ; B 285 287 915 357 ;
+C 62 ; WX 1204 ; N greater ; B 210 -68 950 712 ;
+C 63 ; WX 1204 ; N question ; B 60 -118 1200 762 ;
+C 64 ; WX 1204 ; N at ; B 307 29 893 615 ;
+C 65 ; WX 1204 ; N A ; B 160 -118 1040 762 ;
+C 66 ; WX 1204 ; N B ; B 303 -68 897 760 ;
+C 67 ; WX 1204 ; N C ; B -35 -313 1235 957 ;
+C 68 ; WX 1204 ; N D ; B -35 -313 1235 957 ;
+C 69 ; WX 1204 ; N E ; B 160 -118 1040 762 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 672 ;
+C 71 ; WX 1204 ; N G ; B -35 -313 1235 957 ;
+C 72 ; WX 1204 ; N H ; B 443 -78 757 757 ;
+C 73 ; WX 1204 ; N I ; B 250 -68 1014 738 ;
+C 74 ; WX 1204 ; N J ; B 186 -68 950 738 ;
+C 75 ; WX 1204 ; N K ; B -35 -313 1235 957 ;
+C 76 ; WX 1204 ; N L ; B 200 -119 1041 762 ;
+C 77 ; WX 1204 ; N M ; B 300 112 900 532 ;
+C 78 ; WX 1204 ; N N ; B -35 -313 1235 957 ;
+C 79 ; WX 1204 ; N O ; B 210 -68 990 712 ;
+C 80 ; WX 1204 ; N P ; B -35 -313 1235 957 ;
+C 81 ; WX 1204 ; N Q ; B 303 -68 897 760 ;
+C 82 ; WX 1204 ; N R ; B 159 -119 1000 762 ;
+C 83 ; WX 1204 ; N S ; B 165 166 1000 479 ;
+C 84 ; WX 1204 ; N T ; B 303 -115 897 712 ;
+C 85 ; WX 1204 ; N U ; B -35 -28 1235 672 ;
+C 86 ; WX 1204 ; N V ; B 210 -68 990 712 ;
+C 87 ; WX 1204 ; N W ; B 160 -118 1040 762 ;
+C 88 ; WX 1204 ; N X ; B 303 -115 897 712 ;
+C 89 ; WX 1204 ; N Y ; B 160 -118 1040 762 ;
+C 90 ; WX 1204 ; N Z ; B 100 -178 1100 822 ;
+C 91 ; WX 1204 ; N bracketleft ; B 170 90 1065 555 ;
+C 93 ; WX 1204 ; N bracketright ; B 135 90 1030 555 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 652 1035 722 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -78 1035 -8 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 160 -118 1040 762 ;
+C 98 ; WX 1204 ; N b ; B 303 -68 897 760 ;
+C 99 ; WX 1204 ; N c ; B -35 -313 1235 957 ;
+C 100 ; WX 1204 ; N d ; B -35 -313 1235 957 ;
+C 101 ; WX 1204 ; N e ; B -35 -313 1235 957 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 672 ;
+C 103 ; WX 1204 ; N g ; B -35 -313 1235 957 ;
+C 104 ; WX 1204 ; N h ; B 443 -113 757 722 ;
+C 105 ; WX 1204 ; N i ; B 250 -68 1014 738 ;
+C 106 ; WX 1204 ; N j ; B 186 -68 950 738 ;
+C 107 ; WX 1204 ; N k ; B -35 -313 1235 957 ;
+C 108 ; WX 1204 ; N l ; B 160 -118 1040 762 ;
+C 109 ; WX 1204 ; N m ; B 300 112 900 532 ;
+C 110 ; WX 1204 ; N n ; B -35 -313 1235 957 ;
+C 111 ; WX 1204 ; N o ; B -35 -313 1235 957 ;
+C 112 ; WX 1204 ; N p ; B -35 -313 1235 957 ;
+C 113 ; WX 1204 ; N q ; B 303 -68 897 760 ;
+C 114 ; WX 1204 ; N r ; B 160 -118 1040 762 ;
+C 115 ; WX 1204 ; N s ; B 200 166 1035 479 ;
+C 116 ; WX 1204 ; N t ; B 303 -115 897 712 ;
+C 117 ; WX 1204 ; N u ; B 214 -68 986 712 ;
+C 118 ; WX 1204 ; N v ; B 210 -68 990 712 ;
+C 119 ; WX 1204 ; N w ; B 160 -118 1040 762 ;
+C 120 ; WX 1204 ; N x ; B 303 -115 897 712 ;
+C 121 ; WX 1204 ; N y ; B 214 -68 986 712 ;
+C 122 ; WX 1204 ; N z ; B 200 -78 1000 722 ;
+C 123 ; WX 636 ; N braceleft ; B 153 87 500 538 ;
+C 124 ; WX 80 ; N bar ; B 0 -298 80 942 ;
+C 125 ; WX 636 ; N braceright ; B 133 87 480 538 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 565 -68 635 712 ;
+C 128 ; WX 1204 ; N Abreve ; B 565 167 635 672 ;
+C 129 ; WX 1204 ; N Aogonek ; B 565 -28 635 477 ;
+C 130 ; WX 1204 ; N Cacute ; B 285 287 915 357 ;
+C 131 ; WX 1204 ; N Ccaron ; B 285 287 915 357 ;
+C 132 ; WX 1204 ; N Dcaron ; B 300 210 900 630 ;
+C 133 ; WX 1204 ; N Ecaron ; B 300 210 900 630 ;
+C 134 ; WX 1204 ; N Eogonek ; B 300 15 900 435 ;
+C 135 ; WX 1204 ; N Gbreve ; B 308 127 853 712 ;
+C 136 ; WX 1204 ; N Lacute ; B 308 127 853 712 ;
+C 137 ; WX 1204 ; N Lcaron ; B 308 -68 853 517 ;
+C 138 ; WX 1204 ; N Lslash ; B 565 167 635 672 ;
+C 139 ; WX 1204 ; N Nacute ; B 565 -28 635 477 ;
+C 140 ; WX 1204 ; N Ncaron ; B 285 287 915 357 ;
+C 141 ; WX 1204 ; N Eng ; B 285 287 915 357 ;
+C 142 ; WX 1204 ; N Odblacute ; B 300 210 900 630 ;
+C 143 ; WX 1204 ; N Racute ; B 300 210 900 630 ;
+C 144 ; WX 1204 ; N Rcaron ; B 300 15 900 435 ;
+C 145 ; WX 1204 ; N Sacute ; B 348 127 892 712 ;
+C 146 ; WX 1204 ; N Scaron ; B 348 127 892 712 ;
+C 147 ; WX 1204 ; N Scedilla ; B 348 -68 892 517 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B -35 -313 1235 957 ;
+C 255 ; WX 1204 ; N germandbls ; B -35 -313 1235 957 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitnp.afm b/fonts/knitting/fonts/afm/knitnp.afm
new file mode 100644
index 0000000000..975d61b924
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitnp.afm
@@ -0,0 +1,169 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:07:40 2019
+FontName KnittingSymbols-nogrid-purl-Medium
+FullName KnittingSymbols-nogrid-purl
+FamilyName KnittingSymbols-nogrid-purl
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -298 1220 942
+CapHeight 942
+XHeight 942
+Descender -298
+StartCharMetrics 148
+C 0 ; WX 1204 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1204 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1204 ; N circumflex ; B -20 -298 1220 942 ;
+C 3 ; WX 1204 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1204 ; N dieresis ; B -20 -298 1220 942 ;
+C 7 ; WX 0 ; N caron ; B -200 652 1000 722 ;
+C 8 ; WX 0 ; N breve ; B -200 -78 1000 -8 ;
+C 9 ; WX 0 ; N macron ; B -1000 -78 -200 -8 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 652 -200 722 ;
+C 11 ; WX 0 ; N cedilla ; B 200 652 1000 722 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -78 1000 -8 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -78 235 722 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -78 235 722 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 652 200 722 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -78 200 -8 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 0 0 0 0 ;
+C 20 ; WX 1204 ; N guillemotright ; B 0 0 0 0 ;
+C 21 ; WX 1204 ; N endash ; B 0 0 0 0 ;
+C 22 ; WX 602 ; N emdash ; B 0 0 0 0 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 602 ; N dotlessi ; B 0 0 0 0 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 0 0 0 ;
+C 27 ; WX 602 ; N ff ; B 0 0 0 0 ;
+C 28 ; WX 602 ; N fi ; B 0 0 0 0 ;
+C 29 ; WX 1204 ; N fl ; B 0 0 0 0 ;
+C 30 ; WX 1204 ; N ffi ; B 0 0 0 0 ;
+C 31 ; WX 6022 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 1204 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 1204 ; N quotedbl ; B 0 0 0 0 ;
+C 35 ; WX 1204 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 1204 ; N ampersand ; B 0 -278 1200 922 ;
+C 39 ; WX 602 ; N quoteright ; B 0 -278 600 922 ;
+C 40 ; WX 1204 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1204 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1204 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1204 ; N plus ; B 0 0 0 0 ;
+C 44 ; WX 1204 ; N comma ; B -20 -298 1220 942 ;
+C 45 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 0 0 0 0 ;
+C 48 ; WX 1204 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1204 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 1204 ; N two ; B -20 -298 1220 942 ;
+C 51 ; WX 1204 ; N three ; B -20 -298 1220 942 ;
+C 52 ; WX 1204 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 1204 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1204 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 1204 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 1204 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 1204 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 1204 ; N colon ; B -20 -298 1220 942 ;
+C 59 ; WX 1204 ; N semicolon ; B -20 -298 1220 942 ;
+C 60 ; WX 1204 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1204 ; N equal ; B -20 -298 1220 942 ;
+C 62 ; WX 1204 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1204 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1204 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 1204 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1204 ; N B ; B -20 -298 1220 942 ;
+C 67 ; WX 1204 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 1204 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 1204 ; N E ; B 195 -83 1005 727 ;
+C 70 ; WX 1204 ; N F ; B -20 -298 1220 942 ;
+C 71 ; WX 1204 ; N G ; B -20 -298 1220 942 ;
+C 72 ; WX 1204 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 1204 ; N I ; B -20 -298 1220 942 ;
+C 74 ; WX 1204 ; N J ; B -20 -298 1220 942 ;
+C 75 ; WX 1204 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 1204 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 1204 ; N M ; B -20 -298 1220 942 ;
+C 78 ; WX 1204 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 1204 ; N O ; B -20 -298 1220 942 ;
+C 80 ; WX 1204 ; N P ; B -20 -298 1220 942 ;
+C 81 ; WX 1204 ; N Q ; B -20 -298 1220 942 ;
+C 82 ; WX 1204 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1204 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 1204 ; N T ; B -20 -298 1220 942 ;
+C 85 ; WX 1204 ; N U ; B 0 0 0 0 ;
+C 86 ; WX 1204 ; N V ; B -20 -298 1220 942 ;
+C 87 ; WX 1204 ; N W ; B -20 -298 1220 942 ;
+C 88 ; WX 1204 ; N X ; B -20 -298 1220 942 ;
+C 89 ; WX 1204 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 1204 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1204 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1204 ; N bracketright ; B 0 0 0 0 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 652 1035 722 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -78 1035 -8 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1204 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1204 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 1204 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 1204 ; N e ; B -20 -298 1220 942 ;
+C 102 ; WX 1204 ; N f ; B 0 0 0 0 ;
+C 103 ; WX 1204 ; N g ; B -20 -298 1220 942 ;
+C 104 ; WX 1204 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 1204 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 1204 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1204 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 1204 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 1204 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 1204 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 1204 ; N o ; B -20 -298 1220 942 ;
+C 112 ; WX 1204 ; N p ; B -20 -298 1220 942 ;
+C 113 ; WX 1204 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 1204 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1204 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 1204 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 1204 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 1204 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 1204 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 1204 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 1204 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 1204 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 80 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 1204 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 1204 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 1204 ; N Cacute ; B -20 -298 1220 942 ;
+C 131 ; WX 1204 ; N Ccaron ; B -20 -298 1220 942 ;
+C 132 ; WX 1204 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 1204 ; N Ecaron ; B -20 -298 1220 942 ;
+C 134 ; WX 1204 ; N Eogonek ; B 0 0 0 0 ;
+C 135 ; WX 1204 ; N Gbreve ; B 0 0 0 0 ;
+C 136 ; WX 1204 ; N Lacute ; B -20 -298 1220 942 ;
+C 137 ; WX 1204 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 1204 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 1204 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 1204 ; N Ncaron ; B -20 -298 1220 942 ;
+C 141 ; WX 1204 ; N Eng ; B -20 -298 1220 942 ;
+C 142 ; WX 1204 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 1204 ; N Racute ; B -20 -298 1220 942 ;
+C 144 ; WX 1204 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 1204 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 1204 ; N Scaron ; B -20 -298 1220 942 ;
+C 147 ; WX 1204 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitnr.afm b/fonts/knitting/fonts/afm/knitnr.afm
new file mode 100644
index 0000000000..51a91e776d
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitnr.afm
@@ -0,0 +1,170 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:07:48 2019
+FontName KnittingSymbols-nogrid-raised-Medium
+FullName KnittingSymbols-nogrid-raised
+FamilyName KnittingSymbols-nogrid-raised
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -1035 -298 5611 942
+CapHeight 357
+XHeight 630
+Ascender 726
+Descender 287
+StartCharMetrics 148
+C 0 ; WX 1204 ; N grave ; B 197 17 1003 822 ;
+C 1 ; WX 1204 ; N acute ; B 312 540 888 862 ;
+C 2 ; WX 1204 ; N circumflex ; B 312 540 888 862 ;
+C 3 ; WX 1204 ; N tilde ; B 312 -23 888 300 ;
+C 4 ; WX 1204 ; N dieresis ; B 312 -23 888 300 ;
+C 7 ; WX 0 ; N caron ; B -200 652 1000 722 ;
+C 8 ; WX 0 ; N breve ; B -200 -78 1000 -8 ;
+C 9 ; WX 0 ; N macron ; B -1000 -78 -200 -8 ;
+C 10 ; WX 0 ; N dotaccent ; B -1000 652 -200 722 ;
+C 11 ; WX 0 ; N cedilla ; B 200 652 1000 722 ;
+C 12 ; WX 0 ; N ogonek ; B 200 -78 1000 -8 ;
+C 13 ; WX 0 ; N quotesinglbase ; B -235 -78 235 722 ;
+C 14 ; WX 0 ; N guilsinglleft ; B -235 -78 235 722 ;
+C 15 ; WX 0 ; N guilsinglright ; B -1000 652 200 722 ;
+C 16 ; WX 0 ; N quotedblleft ; B -1000 -78 200 -8 ;
+C 17 ; WX 1204 ; N quotedblright ; B 0 77 1200 762 ;
+C 18 ; WX 1204 ; N quotedblbase ; B 0 127 1060 712 ;
+C 19 ; WX 1204 ; N guillemotleft ; B 50 -114 960 757 ;
+C 20 ; WX 1204 ; N guillemotright ; B 165 186 1035 458 ;
+C 21 ; WX 1204 ; N endash ; B 165 186 1035 458 ;
+C 22 ; WX 602 ; N emdash ; B 0 350 600 490 ;
+C 23 ; WX 1204 ; N compwordmark ; B 0 77 1200 762 ;
+C 24 ; WX 1204 ; N perthousandzero ; B 0 77 1040 762 ;
+C 25 ; WX 602 ; N dotlessi ; B 190 350 600 862 ;
+C 26 ; WX 602 ; N dotlessj ; B 0 350 411 862 ;
+C 27 ; WX 602 ; N ff ; B 190 -23 600 490 ;
+C 28 ; WX 602 ; N fi ; B 0 -23 411 490 ;
+C 29 ; WX 1204 ; N fl ; B 0 -23 1200 490 ;
+C 30 ; WX 1204 ; N ffi ; B 0 350 1200 862 ;
+C 31 ; WX 6022 ; N ffl ; B 390 -23 5611 862 ;
+C 33 ; WX 1204 ; N exclam ; B 308 127 892 712 ;
+C 34 ; WX 1204 ; N quotedbl ; B 240 -114 1150 757 ;
+C 35 ; WX 1204 ; N numbersign ; B 308 127 853 712 ;
+C 38 ; WX 1204 ; N ampersand ; B 258 77 943 762 ;
+C 39 ; WX 602 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1204 ; N parenleft ; B 308 127 853 712 ;
+C 41 ; WX 1204 ; N parenright ; B 348 127 893 712 ;
+C 42 ; WX 1204 ; N asterisk ; B 342 127 858 712 ;
+C 43 ; WX 1204 ; N plus ; B 165 186 1035 458 ;
+C 44 ; WX 1204 ; N comma ; B 0 0 0 0 ;
+C 45 ; WX 1204 ; N hyphen ; B 565 127 635 712 ;
+C 46 ; WX 1204 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1204 ; N slash ; B 165 12 1035 632 ;
+C 48 ; WX 1204 ; N zero ; B 348 127 892 712 ;
+C 49 ; WX 1204 ; N one ; B 140 127 1200 712 ;
+C 50 ; WX 1204 ; N two ; B 308 127 892 712 ;
+C 51 ; WX 1204 ; N three ; B 258 77 943 762 ;
+C 52 ; WX 1204 ; N four ; B 310 127 890 712 ;
+C 53 ; WX 1204 ; N five ; B 310 127 890 712 ;
+C 54 ; WX 1204 ; N six ; B 298 127 903 712 ;
+C 55 ; WX 1204 ; N seven ; B 385 117 776 722 ;
+C 56 ; WX 1204 ; N eight ; B 425 117 816 722 ;
+C 57 ; WX 1204 ; N nine ; B 60 36 1140 722 ;
+C 58 ; WX 1204 ; N colon ; B 308 127 853 712 ;
+C 59 ; WX 1204 ; N semicolon ; B 348 127 892 712 ;
+C 60 ; WX 1204 ; N less ; B 348 127 892 712 ;
+C 61 ; WX 1204 ; N equal ; B 353 287 847 357 ;
+C 62 ; WX 1204 ; N greater ; B 308 127 853 712 ;
+C 63 ; WX 1204 ; N question ; B 160 77 1200 762 ;
+C 64 ; WX 1204 ; N at ; B 307 29 893 615 ;
+C 65 ; WX 1204 ; N A ; B 258 77 943 762 ;
+C 66 ; WX 1204 ; N B ; B 380 127 820 760 ;
+C 67 ; WX 1204 ; N C ; B 565 167 635 477 ;
+C 68 ; WX 1204 ; N D ; B 445 127 795 517 ;
+C 69 ; WX 1204 ; N E ; B 258 77 943 762 ;
+C 70 ; WX 1204 ; N F ; B -35 287 1235 672 ;
+C 71 ; WX 1204 ; N G ; B 353 287 847 357 ;
+C 72 ; WX 1204 ; N H ; B 476 117 724 757 ;
+C 73 ; WX 1204 ; N I ; B 348 127 916 738 ;
+C 74 ; WX 1204 ; N J ; B 284 127 853 738 ;
+C 75 ; WX 1204 ; N K ; B 565 167 635 477 ;
+C 76 ; WX 1204 ; N L ; B 298 76 943 762 ;
+C 77 ; WX 1204 ; N M ; B 300 210 900 630 ;
+C 78 ; WX 1204 ; N N ; B 300 112 900 532 ;
+C 79 ; WX 1204 ; N O ; B 308 127 892 712 ;
+C 80 ; WX 1204 ; N P ; B 353 287 847 357 ;
+C 81 ; WX 1204 ; N Q ; B 380 127 820 760 ;
+C 82 ; WX 1204 ; N R ; B 257 76 903 762 ;
+C 83 ; WX 1204 ; N S ; B 165 263 1000 576 ;
+C 84 ; WX 1204 ; N T ; B 380 80 820 712 ;
+C 85 ; WX 1204 ; N U ; B -35 167 1235 672 ;
+C 86 ; WX 1204 ; N V ; B 308 127 892 712 ;
+C 87 ; WX 1204 ; N W ; B 258 77 943 762 ;
+C 88 ; WX 1204 ; N X ; B 380 80 820 712 ;
+C 89 ; WX 1204 ; N Y ; B 258 77 943 762 ;
+C 90 ; WX 1204 ; N Z ; B 197 17 1003 822 ;
+C 91 ; WX 1204 ; N bracketleft ; B 170 187 1065 652 ;
+C 93 ; WX 1204 ; N bracketright ; B 135 187 1030 652 ;
+C 94 ; WX 0 ; N asciicircum ; B -1035 652 1035 722 ;
+C 95 ; WX 0 ; N underscore ; B -1035 -78 1035 -8 ;
+C 96 ; WX 602 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1204 ; N a ; B 258 77 943 762 ;
+C 98 ; WX 1204 ; N b ; B 380 127 820 760 ;
+C 99 ; WX 1204 ; N c ; B 565 167 635 672 ;
+C 100 ; WX 1204 ; N d ; B 348 127 892 712 ;
+C 101 ; WX 1204 ; N e ; B 300 210 900 630 ;
+C 102 ; WX 1204 ; N f ; B -35 287 1235 672 ;
+C 103 ; WX 1204 ; N g ; B 353 287 847 357 ;
+C 104 ; WX 1204 ; N h ; B 476 82 724 722 ;
+C 105 ; WX 1204 ; N i ; B 348 127 916 738 ;
+C 106 ; WX 1204 ; N j ; B 284 127 853 738 ;
+C 107 ; WX 1204 ; N k ; B 565 167 635 672 ;
+C 108 ; WX 1204 ; N l ; B 258 77 943 762 ;
+C 109 ; WX 1204 ; N m ; B 300 210 900 630 ;
+C 110 ; WX 1204 ; N n ; B 300 210 900 630 ;
+C 111 ; WX 1204 ; N o ; B 348 127 892 712 ;
+C 112 ; WX 1204 ; N p ; B 353 287 847 357 ;
+C 113 ; WX 1204 ; N q ; B 380 127 820 760 ;
+C 114 ; WX 1204 ; N r ; B 258 77 943 762 ;
+C 115 ; WX 1204 ; N s ; B 200 263 1035 576 ;
+C 116 ; WX 1204 ; N t ; B 380 80 820 712 ;
+C 117 ; WX 1204 ; N u ; B 310 127 890 712 ;
+C 118 ; WX 1204 ; N v ; B 308 127 892 712 ;
+C 119 ; WX 1204 ; N w ; B 258 77 943 762 ;
+C 120 ; WX 1204 ; N x ; B 380 80 820 712 ;
+C 121 ; WX 1204 ; N y ; B 310 127 890 712 ;
+C 122 ; WX 1204 ; N z ; B 297 117 903 722 ;
+C 123 ; WX 636 ; N braceleft ; B 153 87 500 538 ;
+C 124 ; WX 80 ; N bar ; B 0 -298 80 942 ;
+C 125 ; WX 636 ; N braceright ; B 133 87 480 538 ;
+C 126 ; WX 1204 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1204 ; N hyphen ; B 565 127 635 712 ;
+C 128 ; WX 1204 ; N Abreve ; B 565 167 635 672 ;
+C 129 ; WX 1204 ; N Aogonek ; B 565 167 635 477 ;
+C 130 ; WX 1204 ; N Cacute ; B 353 287 847 357 ;
+C 131 ; WX 1204 ; N Ccaron ; B 353 287 847 357 ;
+C 132 ; WX 1204 ; N Dcaron ; B 300 210 900 630 ;
+C 133 ; WX 1204 ; N Ecaron ; B 300 210 900 630 ;
+C 134 ; WX 1204 ; N Eogonek ; B 300 112 900 532 ;
+C 135 ; WX 1204 ; N Gbreve ; B 308 127 853 712 ;
+C 136 ; WX 1204 ; N Lacute ; B 308 127 853 712 ;
+C 137 ; WX 1204 ; N Lcaron ; B 405 127 755 517 ;
+C 138 ; WX 1204 ; N Lslash ; B 565 167 635 672 ;
+C 139 ; WX 1204 ; N Nacute ; B 565 167 635 477 ;
+C 140 ; WX 1204 ; N Ncaron ; B 353 287 847 357 ;
+C 141 ; WX 1204 ; N Eng ; B 353 287 847 357 ;
+C 142 ; WX 1204 ; N Odblacute ; B 300 210 900 630 ;
+C 143 ; WX 1204 ; N Racute ; B 300 210 900 630 ;
+C 144 ; WX 1204 ; N Rcaron ; B 300 112 900 532 ;
+C 145 ; WX 1204 ; N Sacute ; B 348 127 892 712 ;
+C 146 ; WX 1204 ; N Scaron ; B 348 127 892 712 ;
+C 147 ; WX 1204 ; N Scedilla ; B 445 127 795 517 ;
+C 148 ; WX 1204 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 1204 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 1204 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 1204 ; N Uring ; B 0 0 0 0 ;
+C 254 ; WX 1204 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 1204 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitwg.afm b/fonts/knitting/fonts/afm/knitwg.afm
new file mode 100644
index 0000000000..bb167459d4
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitwg.afm
@@ -0,0 +1,262 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:08:01 2019
+FontName KnittingSymbols-wide-grid-Medium
+FullName KnittingSymbols-wide-grid
+FamilyName KnittingSymbols-wide-grid
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -15 -293 8165 937
+CapHeight 937
+XHeight 937
+Ascender 937
+Descender -293
+StartCharMetrics 240
+C 0 ; WX 1636 ; N grave ; B -15 -293 1645 937 ;
+C 1 ; WX 1636 ; N acute ; B -15 -293 1645 937 ;
+C 2 ; WX 1636 ; N circumflex ; B -15 -293 1645 937 ;
+C 3 ; WX 1636 ; N tilde ; B -15 -293 1645 937 ;
+C 4 ; WX 1636 ; N dieresis ; B -15 -293 1645 937 ;
+C 5 ; WX 1636 ; N hungarumlaut ; B -15 -293 1645 937 ;
+C 6 ; WX 0 ; N ring ; B -15 -293 15 937 ;
+C 17 ; WX 1636 ; N quotedblright ; B -15 -293 1645 937 ;
+C 18 ; WX 1636 ; N quotedblbase ; B -15 -293 1645 937 ;
+C 19 ; WX 1636 ; N guillemotleft ; B 0 0 0 0 ;
+C 20 ; WX 1636 ; N guillemotright ; B -15 -293 1645 937 ;
+C 21 ; WX 1636 ; N endash ; B -15 -293 1645 937 ;
+C 22 ; WX 818 ; N emdash ; B -15 -293 830 937 ;
+C 23 ; WX 1636 ; N compwordmark ; B -15 -293 1645 937 ;
+C 24 ; WX 1636 ; N perthousandzero ; B -15 -293 1645 937 ;
+C 25 ; WX 818 ; N dotlessi ; B -15 -293 815 937 ;
+C 26 ; WX 818 ; N dotlessj ; B 0 -293 830 937 ;
+C 27 ; WX 818 ; N ff ; B -15 -293 815 937 ;
+C 28 ; WX 818 ; N fi ; B 0 -293 830 937 ;
+C 29 ; WX 1636 ; N fl ; B -15 -293 1645 937 ;
+C 30 ; WX 1636 ; N ffi ; B -15 -293 1645 937 ;
+C 31 ; WX 8181 ; N ffl ; B -15 -293 8165 937 ;
+C 33 ; WX 1636 ; N exclam ; B -15 -293 1645 937 ;
+C 34 ; WX 1636 ; N quotedbl ; B 0 0 0 0 ;
+C 35 ; WX 1636 ; N numbersign ; B -15 -293 1645 937 ;
+C 38 ; WX 1636 ; N ampersand ; B -15 -293 1645 937 ;
+C 39 ; WX 818 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1636 ; N parenleft ; B -15 -293 1645 937 ;
+C 41 ; WX 1636 ; N parenright ; B -15 -293 1645 937 ;
+C 42 ; WX 1636 ; N asterisk ; B -15 -293 1645 937 ;
+C 43 ; WX 1636 ; N plus ; B -15 -293 1645 937 ;
+C 44 ; WX 1636 ; N comma ; B -15 -293 1645 937 ;
+C 45 ; WX 1636 ; N hyphen ; B -15 -293 1645 937 ;
+C 46 ; WX 1636 ; N period ; B -15 -293 1645 937 ;
+C 47 ; WX 1636 ; N slash ; B -15 -293 1645 937 ;
+C 48 ; WX 1636 ; N zero ; B -15 -293 1645 937 ;
+C 49 ; WX 1636 ; N one ; B -15 -293 1645 937 ;
+C 50 ; WX 1636 ; N two ; B -15 -293 1645 937 ;
+C 51 ; WX 1636 ; N three ; B -15 -293 1645 937 ;
+C 52 ; WX 1636 ; N four ; B -15 -293 1645 937 ;
+C 53 ; WX 1636 ; N five ; B -15 -293 1645 937 ;
+C 54 ; WX 1636 ; N six ; B -15 -293 1645 937 ;
+C 55 ; WX 1636 ; N seven ; B -15 -293 1645 937 ;
+C 56 ; WX 1636 ; N eight ; B -15 -293 1645 937 ;
+C 57 ; WX 1636 ; N nine ; B -15 -293 1645 937 ;
+C 58 ; WX 1636 ; N colon ; B -15 -293 1645 937 ;
+C 59 ; WX 1636 ; N semicolon ; B -15 -293 1645 937 ;
+C 60 ; WX 1636 ; N less ; B -15 -293 1645 937 ;
+C 61 ; WX 1636 ; N equal ; B -15 -293 1645 937 ;
+C 62 ; WX 1636 ; N greater ; B -15 -293 1645 937 ;
+C 63 ; WX 1636 ; N question ; B -15 -293 1645 937 ;
+C 64 ; WX 1636 ; N at ; B -15 -293 1645 937 ;
+C 65 ; WX 1636 ; N A ; B -15 -293 1645 937 ;
+C 66 ; WX 1636 ; N B ; B -15 -293 1645 937 ;
+C 67 ; WX 1636 ; N C ; B -15 -293 1645 937 ;
+C 68 ; WX 1636 ; N D ; B -15 -293 1645 937 ;
+C 69 ; WX 1636 ; N E ; B -15 -293 1645 937 ;
+C 70 ; WX 1636 ; N F ; B 0 0 0 0 ;
+C 71 ; WX 1636 ; N G ; B -15 -293 1645 937 ;
+C 72 ; WX 1636 ; N H ; B -15 -293 1645 937 ;
+C 73 ; WX 1636 ; N I ; B -15 -293 1645 937 ;
+C 74 ; WX 1636 ; N J ; B -15 -293 1645 937 ;
+C 75 ; WX 1636 ; N K ; B -15 -293 1645 937 ;
+C 76 ; WX 1636 ; N L ; B -15 -293 1645 937 ;
+C 77 ; WX 1636 ; N M ; B -15 -293 1645 937 ;
+C 78 ; WX 1636 ; N N ; B -15 -293 1645 937 ;
+C 79 ; WX 1636 ; N O ; B -15 -293 1645 937 ;
+C 80 ; WX 1636 ; N P ; B -15 -293 1645 937 ;
+C 81 ; WX 1636 ; N Q ; B -15 -293 1645 937 ;
+C 82 ; WX 1636 ; N R ; B -15 -293 1645 937 ;
+C 83 ; WX 1636 ; N S ; B -15 -293 1645 937 ;
+C 84 ; WX 1636 ; N T ; B -15 -293 1645 937 ;
+C 85 ; WX 1636 ; N U ; B 0 0 0 0 ;
+C 86 ; WX 1636 ; N V ; B -15 -293 1645 937 ;
+C 87 ; WX 1636 ; N W ; B -15 -293 1645 937 ;
+C 88 ; WX 1636 ; N X ; B -15 -293 1645 937 ;
+C 89 ; WX 1636 ; N Y ; B -15 -293 1645 937 ;
+C 90 ; WX 1636 ; N Z ; B -15 -293 1645 937 ;
+C 91 ; WX 1636 ; N bracketleft ; B -15 -293 1645 937 ;
+C 93 ; WX 1636 ; N bracketright ; B -15 -293 1645 937 ;
+C 96 ; WX 818 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1636 ; N a ; B -15 -293 1645 937 ;
+C 98 ; WX 1636 ; N b ; B -15 -293 1645 937 ;
+C 99 ; WX 1636 ; N c ; B -15 -293 1645 937 ;
+C 100 ; WX 1636 ; N d ; B -15 -293 1645 937 ;
+C 101 ; WX 1636 ; N e ; B -15 -293 1645 937 ;
+C 102 ; WX 1636 ; N f ; B 0 0 0 0 ;
+C 103 ; WX 1636 ; N g ; B -15 -293 1645 937 ;
+C 104 ; WX 1636 ; N h ; B -15 -293 1645 937 ;
+C 105 ; WX 1636 ; N i ; B -15 -293 1645 937 ;
+C 106 ; WX 1636 ; N j ; B -15 -293 1645 937 ;
+C 107 ; WX 1636 ; N k ; B -15 -293 1645 937 ;
+C 108 ; WX 1636 ; N l ; B -15 -293 1645 937 ;
+C 109 ; WX 1636 ; N m ; B -15 -293 1645 937 ;
+C 110 ; WX 1636 ; N n ; B -15 -293 1645 937 ;
+C 111 ; WX 1636 ; N o ; B -15 -293 1645 937 ;
+C 112 ; WX 1636 ; N p ; B -15 -293 1645 937 ;
+C 113 ; WX 1636 ; N q ; B -15 -293 1645 937 ;
+C 114 ; WX 1636 ; N r ; B -15 -293 1645 937 ;
+C 115 ; WX 1636 ; N s ; B -15 -293 1645 937 ;
+C 116 ; WX 1636 ; N t ; B -15 -293 1645 937 ;
+C 117 ; WX 1636 ; N u ; B -15 -293 1645 937 ;
+C 118 ; WX 1636 ; N v ; B -15 -293 1645 937 ;
+C 119 ; WX 1636 ; N w ; B -15 -293 1645 937 ;
+C 120 ; WX 1636 ; N x ; B -15 -293 1645 937 ;
+C 121 ; WX 1636 ; N y ; B -15 -293 1645 937 ;
+C 122 ; WX 1636 ; N z ; B -15 -293 1645 937 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 151 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 1636 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1636 ; N hyphen ; B -15 -293 1645 937 ;
+C 128 ; WX 3272 ; N Abreve ; B -15 -293 3275 937 ;
+C 129 ; WX 3272 ; N Aogonek ; B -15 -293 3275 937 ;
+C 130 ; WX 3272 ; N Cacute ; B -15 -293 3275 937 ;
+C 131 ; WX 3272 ; N Ccaron ; B -15 -293 3275 937 ;
+C 132 ; WX 4908 ; N Dcaron ; B -15 -293 4905 937 ;
+C 133 ; WX 4908 ; N Ecaron ; B -15 -293 4905 937 ;
+C 134 ; WX 4908 ; N Eogonek ; B -15 -293 4905 937 ;
+C 135 ; WX 4908 ; N Gbreve ; B -15 -293 4905 937 ;
+C 136 ; WX 3272 ; N Lacute ; B -15 -293 3275 937 ;
+C 137 ; WX 3272 ; N Lcaron ; B -15 -293 3275 937 ;
+C 138 ; WX 3272 ; N Lslash ; B -15 -293 3275 937 ;
+C 139 ; WX 3272 ; N Nacute ; B -15 -293 3275 937 ;
+C 140 ; WX 3272 ; N Ncaron ; B -15 -293 3275 937 ;
+C 141 ; WX 3272 ; N Eng ; B -15 -293 3275 937 ;
+C 142 ; WX 3272 ; N Odblacute ; B -15 -293 3275 937 ;
+C 143 ; WX 3272 ; N Racute ; B -15 -293 3275 937 ;
+C 144 ; WX 3272 ; N Rcaron ; B -15 -293 3275 937 ;
+C 145 ; WX 3272 ; N Sacute ; B -15 -293 3275 937 ;
+C 146 ; WX 3272 ; N Scaron ; B -15 -293 3275 937 ;
+C 147 ; WX 3272 ; N Scedilla ; B -15 -293 3275 937 ;
+C 148 ; WX 4908 ; N Tcaron ; B -15 -293 4905 937 ;
+C 149 ; WX 4908 ; N Tcedilla ; B -15 -293 4905 937 ;
+C 150 ; WX 4908 ; N Udblacute ; B -15 -293 4905 937 ;
+C 151 ; WX 4908 ; N Uring ; B -15 -293 4905 937 ;
+C 152 ; WX 4908 ; N Ydieresis ; B -15 -293 4905 937 ;
+C 153 ; WX 4908 ; N Zacute ; B -15 -293 4905 937 ;
+C 154 ; WX 4908 ; N Zcaron ; B -15 -293 4905 937 ;
+C 155 ; WX 4908 ; N Zdot ; B -15 -293 4905 937 ;
+C 156 ; WX 4908 ; N IJ ; B -15 -293 4905 937 ;
+C 157 ; WX 4908 ; N Idot ; B -15 -293 4905 937 ;
+C 158 ; WX 4908 ; N dmacron ; B -15 -293 4905 937 ;
+C 159 ; WX 4908 ; N section ; B -15 -293 4905 937 ;
+C 160 ; WX 4908 ; N abreve ; B -15 -293 4905 937 ;
+C 161 ; WX 4908 ; N aogonek ; B -15 -293 4905 937 ;
+C 162 ; WX 4908 ; N cacute ; B -15 -293 4905 937 ;
+C 163 ; WX 4908 ; N ccaron ; B -15 -293 4905 937 ;
+C 164 ; WX 6544 ; N dcaron ; B -15 -293 6535 937 ;
+C 165 ; WX 6544 ; N ecaron ; B -15 -293 6535 937 ;
+C 166 ; WX 6544 ; N eogonek ; B -15 -293 6535 937 ;
+C 167 ; WX 6544 ; N gbreve ; B -15 -293 6535 937 ;
+C 168 ; WX 6544 ; N lacute ; B -15 -293 6535 937 ;
+C 169 ; WX 6544 ; N lcaron ; B -15 -293 6535 937 ;
+C 170 ; WX 6544 ; N lslash ; B -15 -293 6535 937 ;
+C 171 ; WX 6544 ; N nacute ; B -15 -293 6535 937 ;
+C 172 ; WX 6544 ; N ncaron ; B -15 -293 6535 937 ;
+C 173 ; WX 6544 ; N eng ; B -15 -293 6535 937 ;
+C 174 ; WX 6544 ; N odblacute ; B -15 -293 6535 937 ;
+C 175 ; WX 6544 ; N racute ; B -15 -293 6535 937 ;
+C 176 ; WX 4908 ; N rcaron ; B -15 -293 4905 937 ;
+C 177 ; WX 4908 ; N sacute ; B -15 -293 4905 937 ;
+C 178 ; WX 4908 ; N scaron ; B -15 -293 4905 937 ;
+C 179 ; WX 4908 ; N scedilla ; B -15 -293 4905 937 ;
+C 180 ; WX 4908 ; N tcaron ; B -15 -293 4905 937 ;
+C 181 ; WX 4908 ; N tcedilla ; B -15 -293 4905 937 ;
+C 182 ; WX 4908 ; N udblacute ; B -15 -293 4905 937 ;
+C 183 ; WX 4908 ; N uring ; B -15 -293 4905 937 ;
+C 184 ; WX 4908 ; N ydieresis ; B -15 -293 4905 937 ;
+C 185 ; WX 4908 ; N zacute ; B -15 -293 4905 937 ;
+C 186 ; WX 4908 ; N zcaron ; B -15 -293 4905 937 ;
+C 187 ; WX 4908 ; N zdot ; B -15 -293 4905 937 ;
+C 188 ; WX 6544 ; N ij ; B -15 -293 6535 937 ;
+C 189 ; WX 6544 ; N exclamdown ; B -15 -293 6535 937 ;
+C 190 ; WX 6544 ; N questiondown ; B -15 -293 6535 937 ;
+C 191 ; WX 6544 ; N sterling ; B -15 -293 6535 937 ;
+C 192 ; WX 6544 ; N Agrave ; B -15 -293 6535 937 ;
+C 193 ; WX 6544 ; N Aacute ; B -15 -293 6535 937 ;
+C 194 ; WX 6544 ; N Acircumflex ; B -15 -293 6535 937 ;
+C 195 ; WX 6544 ; N Atilde ; B -15 -293 6535 937 ;
+C 196 ; WX 6544 ; N Adieresis ; B -15 -293 6535 937 ;
+C 197 ; WX 6544 ; N Aring ; B -15 -293 6535 937 ;
+C 198 ; WX 6544 ; N AE ; B -15 -293 6535 937 ;
+C 199 ; WX 6544 ; N Ccedilla ; B -15 -293 6535 937 ;
+C 200 ; WX 8181 ; N Egrave ; B -15 -293 8165 937 ;
+C 201 ; WX 8181 ; N Eacute ; B -15 -293 8165 937 ;
+C 202 ; WX 8181 ; N Ecircumflex ; B -15 -293 8165 937 ;
+C 203 ; WX 8181 ; N Edieresis ; B -15 -293 8165 937 ;
+C 204 ; WX 0 ; N Igrave ; B 0 0 0 0 ;
+C 205 ; WX 0 ; N Iacute ; B 0 0 0 0 ;
+C 206 ; WX 0 ; N Icircumflex ; B 0 0 0 0 ;
+C 207 ; WX 0 ; N Idieresis ; B 0 0 0 0 ;
+C 208 ; WX 8181 ; N Eth ; B -15 -293 8165 937 ;
+C 209 ; WX 8181 ; N Ntilde ; B -15 -293 8165 937 ;
+C 210 ; WX 8181 ; N Ograve ; B -15 -293 8165 937 ;
+C 211 ; WX 8181 ; N Oacute ; B -15 -293 8165 937 ;
+C 212 ; WX 8181 ; N Ocircumflex ; B -15 -293 8165 937 ;
+C 213 ; WX 8181 ; N Otilde ; B -15 -293 8165 937 ;
+C 214 ; WX 8181 ; N Odieresis ; B -15 -293 8165 937 ;
+C 215 ; WX 8181 ; N OE ; B -15 -293 8165 937 ;
+C 216 ; WX 8181 ; N Oslash ; B -15 -293 8165 937 ;
+C 217 ; WX 8181 ; N Ugrave ; B -15 -293 8165 937 ;
+C 218 ; WX 8181 ; N Uacute ; B -15 -293 8165 937 ;
+C 219 ; WX 8181 ; N Ucircumflex ; B -15 -293 8165 937 ;
+C 220 ; WX 6544 ; N Udieresis ; B -15 -293 6535 937 ;
+C 221 ; WX 6544 ; N Yacute ; B -15 -293 6535 937 ;
+C 222 ; WX 6544 ; N Thorn ; B -15 -293 6535 937 ;
+C 223 ; WX 6544 ; N Germandbls ; B -15 -293 6535 937 ;
+C 224 ; WX 6544 ; N agrave ; B -15 -293 6535 937 ;
+C 225 ; WX 6544 ; N aacute ; B -15 -293 6535 937 ;
+C 226 ; WX 6544 ; N acircumflex ; B -15 -293 6535 937 ;
+C 227 ; WX 6544 ; N atilde ; B -15 -293 6535 937 ;
+C 228 ; WX 6544 ; N adieresis ; B -15 -293 6535 937 ;
+C 229 ; WX 6544 ; N aring ; B -15 -293 6535 937 ;
+C 230 ; WX 6544 ; N ae ; B -15 -293 6535 937 ;
+C 231 ; WX 6544 ; N ccedilla ; B -15 -293 6535 937 ;
+C 232 ; WX 8181 ; N egrave ; B -15 -293 8165 937 ;
+C 233 ; WX 8181 ; N eacute ; B -15 -293 8165 937 ;
+C 234 ; WX 8181 ; N ecircumflex ; B -15 -293 8165 937 ;
+C 235 ; WX 8181 ; N edieresis ; B -15 -293 8165 937 ;
+C 236 ; WX 8181 ; N igrave ; B -15 -293 8165 937 ;
+C 237 ; WX 8181 ; N iacute ; B -15 -293 8165 937 ;
+C 238 ; WX 8181 ; N icircumflex ; B -15 -293 8165 937 ;
+C 239 ; WX 8181 ; N idieresis ; B -15 -293 8165 937 ;
+C 240 ; WX 8181 ; N eth ; B -15 -293 8165 937 ;
+C 241 ; WX 8181 ; N ntilde ; B -15 -293 8165 937 ;
+C 242 ; WX 8181 ; N ograve ; B -15 -293 8165 937 ;
+C 243 ; WX 8181 ; N oacute ; B -15 -293 8165 937 ;
+C 244 ; WX 0 ; N ocircumflex ; B 0 0 0 0 ;
+C 245 ; WX 0 ; N otilde ; B 0 0 0 0 ;
+C 246 ; WX 0 ; N odieresis ; B 0 0 0 0 ;
+C 247 ; WX 0 ; N oe ; B 0 0 0 0 ;
+C 248 ; WX 0 ; N oslash ; B 0 0 0 0 ;
+C 249 ; WX 0 ; N ugrave ; B 0 0 0 0 ;
+C 250 ; WX 0 ; N uacute ; B 0 0 0 0 ;
+C 251 ; WX 0 ; N ucircumflex ; B 0 0 0 0 ;
+C 252 ; WX 0 ; N udieresis ; B 0 0 0 0 ;
+C 253 ; WX 0 ; N yacute ; B 0 0 0 0 ;
+C 254 ; WX 0 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 0 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitwn.afm b/fonts/knitting/fonts/afm/knitwn.afm
new file mode 100644
index 0000000000..2467f89e87
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitwn.afm
@@ -0,0 +1,262 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:08:31 2019
+FontName KnittingSymbols-wide-foreground-Medium
+FullName KnittingSymbols-wide-foreground
+FamilyName KnittingSymbols-wide-foreground
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox -35 -313 7617 957
+CapHeight 532
+XHeight 687
+Ascender 735
+Descender -166
+StartCharMetrics 240
+C 0 ; WX 1636 ; N grave ; B 295 -198 1335 842 ;
+C 1 ; WX 1636 ; N acute ; B 480 472 1150 842 ;
+C 2 ; WX 1636 ; N circumflex ; B 480 472 1150 842 ;
+C 3 ; WX 1636 ; N tilde ; B 480 -198 1150 172 ;
+C 4 ; WX 1636 ; N dieresis ; B 480 -198 1150 172 ;
+C 5 ; WX 1636 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 17 ; WX 1636 ; N quotedblright ; B 0 147 1630 217 ;
+C 18 ; WX 1636 ; N quotedblbase ; B 0 147 1440 617 ;
+C 19 ; WX 1636 ; N guillemotleft ; B 265 -114 1175 757 ;
+C 20 ; WX 1636 ; N guillemotright ; B 0 0 0 0 ;
+C 21 ; WX 1636 ; N endash ; B 0 0 0 0 ;
+C 22 ; WX 818 ; N emdash ; B 0 252 815 392 ;
+C 23 ; WX 1636 ; N compwordmark ; B 0 -28 1630 545 ;
+C 24 ; WX 1636 ; N perthousandzero ; B 0 -28 1420 712 ;
+C 25 ; WX 818 ; N dotlessi ; B 261 252 815 842 ;
+C 26 ; WX 818 ; N dotlessj ; B 0 252 554 842 ;
+C 27 ; WX 818 ; N ff ; B 261 -198 815 392 ;
+C 28 ; WX 818 ; N fi ; B 0 -198 554 392 ;
+C 29 ; WX 1636 ; N fl ; B 0 -198 1630 392 ;
+C 30 ; WX 1636 ; N ffi ; B 0 252 1630 842 ;
+C 31 ; WX 8181 ; N ffl ; B 533 -198 7617 842 ;
+C 33 ; WX 1636 ; N exclam ; B 475 -18 1155 662 ;
+C 34 ; WX 1636 ; N quotedbl ; B 455 -114 1365 757 ;
+C 35 ; WX 1636 ; N numbersign ; B 475 -18 1115 662 ;
+C 38 ; WX 1636 ; N ampersand ; B 425 -68 1205 712 ;
+C 39 ; WX 818 ; N quoteright ; B 0 0 0 0 ;
+C 40 ; WX 1636 ; N parenleft ; B 475 -18 1115 662 ;
+C 41 ; WX 1636 ; N parenright ; B 515 -18 1155 662 ;
+C 42 ; WX 1636 ; N asterisk ; B 516 -18 1114 662 ;
+C 43 ; WX 1636 ; N plus ; B 0 0 0 0 ;
+C 44 ; WX 1636 ; N comma ; B 515 22 1115 622 ;
+C 45 ; WX 1636 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 1636 ; N period ; B 515 22 1115 622 ;
+C 47 ; WX 1636 ; N slash ; B 0 0 0 0 ;
+C 48 ; WX 1636 ; N zero ; B 515 -18 1155 662 ;
+C 49 ; WX 1636 ; N one ; B 190 147 1630 617 ;
+C 50 ; WX 1636 ; N two ; B 475 -18 1155 662 ;
+C 51 ; WX 1636 ; N three ; B 425 -68 1205 712 ;
+C 52 ; WX 1636 ; N four ; B 478 -18 1152 662 ;
+C 53 ; WX 1636 ; N five ; B 478 -18 1152 662 ;
+C 54 ; WX 1636 ; N six ; B 465 -18 1165 662 ;
+C 55 ; WX 1636 ; N seven ; B 571 -28 1019 672 ;
+C 56 ; WX 1636 ; N eight ; B 611 -28 1059 672 ;
+C 57 ; WX 1636 ; N nine ; B 80 -154 1550 672 ;
+C 58 ; WX 1636 ; N colon ; B 475 -18 1115 662 ;
+C 59 ; WX 1636 ; N semicolon ; B 515 -18 1155 662 ;
+C 60 ; WX 1636 ; N less ; B 515 -18 1155 662 ;
+C 61 ; WX 1636 ; N equal ; B 0 0 0 0 ;
+C 62 ; WX 1636 ; N greater ; B 475 -18 1115 662 ;
+C 63 ; WX 1636 ; N question ; B 210 -28 1630 712 ;
+C 64 ; WX 1636 ; N at ; B 522 29 1108 615 ;
+C 65 ; WX 1636 ; N A ; B 425 -68 1205 712 ;
+C 66 ; WX 1636 ; N B ; B 557 -18 1073 710 ;
+C 67 ; WX 1636 ; N C ; B -35 -313 1665 957 ;
+C 68 ; WX 1636 ; N D ; B -35 -313 1665 957 ;
+C 69 ; WX 1636 ; N E ; B 425 -68 1205 712 ;
+C 70 ; WX 1636 ; N F ; B -35 287 1665 622 ;
+C 71 ; WX 1636 ; N G ; B -35 -313 1665 957 ;
+C 72 ; WX 1636 ; N H ; B 675 -28 955 707 ;
+C 73 ; WX 1636 ; N I ; B 515 -18 1179 688 ;
+C 74 ; WX 1636 ; N J ; B 451 -18 1115 688 ;
+C 75 ; WX 1636 ; N K ; B -35 -313 1665 957 ;
+C 76 ; WX 1636 ; N L ; B 465 -69 1205 712 ;
+C 77 ; WX 1636 ; N M ; B 515 112 1115 532 ;
+C 78 ; WX 1636 ; N N ; B -35 -313 1665 957 ;
+C 79 ; WX 1636 ; N O ; B 475 -18 1155 662 ;
+C 80 ; WX 1636 ; N P ; B -35 -313 1665 957 ;
+C 81 ; WX 1636 ; N Q ; B 557 -18 1073 710 ;
+C 82 ; WX 1636 ; N R ; B 425 -69 1165 712 ;
+C 83 ; WX 1636 ; N S ; B 430 182 1165 462 ;
+C 84 ; WX 1636 ; N T ; B 557 -65 1073 662 ;
+C 85 ; WX 1636 ; N U ; B -35 22 1665 622 ;
+C 86 ; WX 1636 ; N V ; B 475 -18 1155 662 ;
+C 87 ; WX 1636 ; N W ; B 425 -68 1205 712 ;
+C 88 ; WX 1636 ; N X ; B 557 -65 1073 662 ;
+C 89 ; WX 1636 ; N Y ; B 425 -68 1205 712 ;
+C 90 ; WX 1636 ; N Z ; B 335 -158 1295 802 ;
+C 91 ; WX 1636 ; N bracketleft ; B 426 110 1239 534 ;
+C 93 ; WX 1636 ; N bracketright ; B 391 110 1204 534 ;
+C 96 ; WX 818 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1636 ; N a ; B 425 -68 1205 712 ;
+C 98 ; WX 1636 ; N b ; B 557 -18 1073 710 ;
+C 99 ; WX 1636 ; N c ; B -35 -313 1665 957 ;
+C 100 ; WX 1636 ; N d ; B -35 -313 1665 957 ;
+C 101 ; WX 1636 ; N e ; B -35 -313 1665 957 ;
+C 102 ; WX 1636 ; N f ; B -35 287 1665 622 ;
+C 103 ; WX 1636 ; N g ; B -35 -313 1665 957 ;
+C 104 ; WX 1636 ; N h ; B 675 -63 955 672 ;
+C 105 ; WX 1636 ; N i ; B 515 -18 1179 688 ;
+C 106 ; WX 1636 ; N j ; B 451 -18 1115 688 ;
+C 107 ; WX 1636 ; N k ; B -35 -313 1665 957 ;
+C 108 ; WX 1636 ; N l ; B 425 -68 1205 712 ;
+C 109 ; WX 1636 ; N m ; B 515 112 1115 532 ;
+C 110 ; WX 1636 ; N n ; B -35 -313 1665 957 ;
+C 111 ; WX 1636 ; N o ; B -35 -313 1665 957 ;
+C 112 ; WX 1636 ; N p ; B -35 -313 1665 957 ;
+C 113 ; WX 1636 ; N q ; B 557 -18 1073 710 ;
+C 114 ; WX 1636 ; N r ; B 425 -68 1205 712 ;
+C 115 ; WX 1636 ; N s ; B 465 182 1200 462 ;
+C 116 ; WX 1636 ; N t ; B 557 -65 1073 662 ;
+C 117 ; WX 1636 ; N u ; B 478 -18 1152 662 ;
+C 118 ; WX 1636 ; N v ; B 475 -18 1155 662 ;
+C 119 ; WX 1636 ; N w ; B 425 -68 1205 712 ;
+C 120 ; WX 1636 ; N x ; B 557 -65 1073 662 ;
+C 121 ; WX 1636 ; N y ; B 478 -18 1152 662 ;
+C 122 ; WX 1636 ; N z ; B 465 -28 1165 672 ;
+C 123 ; WX 636 ; N braceleft ; B 148 84 500 541 ;
+C 124 ; WX 151 ; N bar ; B 0 -293 150 937 ;
+C 125 ; WX 636 ; N braceright ; B 133 84 485 541 ;
+C 126 ; WX 1636 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1636 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 3272 ; N Abreve ; B -35 -313 3295 957 ;
+C 129 ; WX 3272 ; N Aogonek ; B -35 -313 3295 957 ;
+C 130 ; WX 3272 ; N Cacute ; B -35 -313 3295 957 ;
+C 131 ; WX 3272 ; N Ccaron ; B -35 -313 3295 957 ;
+C 132 ; WX 4908 ; N Dcaron ; B -35 -313 4925 957 ;
+C 133 ; WX 4908 ; N Ecaron ; B -35 -313 4925 957 ;
+C 134 ; WX 4908 ; N Eogonek ; B -35 -313 4925 957 ;
+C 135 ; WX 4908 ; N Gbreve ; B -35 -313 4925 957 ;
+C 136 ; WX 3272 ; N Lacute ; B 0 0 0 0 ;
+C 137 ; WX 3272 ; N Lcaron ; B 0 0 0 0 ;
+C 138 ; WX 3272 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 3272 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 3272 ; N Ncaron ; B 0 0 0 0 ;
+C 141 ; WX 3272 ; N Eng ; B 0 0 0 0 ;
+C 142 ; WX 3272 ; N Odblacute ; B 0 0 0 0 ;
+C 143 ; WX 3272 ; N Racute ; B 0 0 0 0 ;
+C 144 ; WX 3272 ; N Rcaron ; B 0 0 0 0 ;
+C 145 ; WX 3272 ; N Sacute ; B 0 0 0 0 ;
+C 146 ; WX 3272 ; N Scaron ; B 0 0 0 0 ;
+C 147 ; WX 3272 ; N Scedilla ; B 0 0 0 0 ;
+C 148 ; WX 4908 ; N Tcaron ; B 0 0 0 0 ;
+C 149 ; WX 4908 ; N Tcedilla ; B 0 0 0 0 ;
+C 150 ; WX 4908 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 4908 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 4908 ; N Ydieresis ; B 0 0 0 0 ;
+C 153 ; WX 4908 ; N Zacute ; B 0 0 0 0 ;
+C 154 ; WX 4908 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 4908 ; N Zdot ; B 0 0 0 0 ;
+C 156 ; WX 4908 ; N IJ ; B 0 0 0 0 ;
+C 157 ; WX 4908 ; N Idot ; B 0 0 0 0 ;
+C 158 ; WX 4908 ; N dmacron ; B 0 0 0 0 ;
+C 159 ; WX 4908 ; N section ; B 0 0 0 0 ;
+C 160 ; WX 4908 ; N abreve ; B 0 0 0 0 ;
+C 161 ; WX 4908 ; N aogonek ; B 0 0 0 0 ;
+C 162 ; WX 4908 ; N cacute ; B 0 0 0 0 ;
+C 163 ; WX 4908 ; N ccaron ; B 0 0 0 0 ;
+C 164 ; WX 6544 ; N dcaron ; B 0 0 0 0 ;
+C 165 ; WX 6544 ; N ecaron ; B 0 0 0 0 ;
+C 166 ; WX 6544 ; N eogonek ; B 0 0 0 0 ;
+C 167 ; WX 6544 ; N gbreve ; B 0 0 0 0 ;
+C 168 ; WX 6544 ; N lacute ; B 0 0 0 0 ;
+C 169 ; WX 6544 ; N lcaron ; B 0 0 0 0 ;
+C 170 ; WX 6544 ; N lslash ; B 0 0 0 0 ;
+C 171 ; WX 6544 ; N nacute ; B 0 0 0 0 ;
+C 172 ; WX 6544 ; N ncaron ; B 0 0 0 0 ;
+C 173 ; WX 6544 ; N eng ; B 0 0 0 0 ;
+C 174 ; WX 6544 ; N odblacute ; B 0 0 0 0 ;
+C 175 ; WX 6544 ; N racute ; B 0 0 0 0 ;
+C 176 ; WX 4908 ; N rcaron ; B 0 0 0 0 ;
+C 177 ; WX 4908 ; N sacute ; B 0 0 0 0 ;
+C 178 ; WX 4908 ; N scaron ; B 0 0 0 0 ;
+C 179 ; WX 4908 ; N scedilla ; B 0 0 0 0 ;
+C 180 ; WX 4908 ; N tcaron ; B 0 0 0 0 ;
+C 181 ; WX 4908 ; N tcedilla ; B 0 0 0 0 ;
+C 182 ; WX 4908 ; N udblacute ; B 0 0 0 0 ;
+C 183 ; WX 4908 ; N uring ; B 0 0 0 0 ;
+C 184 ; WX 4908 ; N ydieresis ; B 0 0 0 0 ;
+C 185 ; WX 4908 ; N zacute ; B 0 0 0 0 ;
+C 186 ; WX 4908 ; N zcaron ; B 0 0 0 0 ;
+C 187 ; WX 4908 ; N zdot ; B 0 0 0 0 ;
+C 188 ; WX 6544 ; N ij ; B 0 0 0 0 ;
+C 189 ; WX 6544 ; N exclamdown ; B 0 0 0 0 ;
+C 190 ; WX 6544 ; N questiondown ; B 0 0 0 0 ;
+C 191 ; WX 6544 ; N sterling ; B 0 0 0 0 ;
+C 192 ; WX 6544 ; N Agrave ; B 0 0 0 0 ;
+C 193 ; WX 6544 ; N Aacute ; B 0 0 0 0 ;
+C 194 ; WX 6544 ; N Acircumflex ; B 0 0 0 0 ;
+C 195 ; WX 6544 ; N Atilde ; B 0 0 0 0 ;
+C 196 ; WX 6544 ; N Adieresis ; B 0 0 0 0 ;
+C 197 ; WX 6544 ; N Aring ; B 0 0 0 0 ;
+C 198 ; WX 6544 ; N AE ; B 0 0 0 0 ;
+C 199 ; WX 6544 ; N Ccedilla ; B 0 0 0 0 ;
+C 200 ; WX 8181 ; N Egrave ; B 0 0 0 0 ;
+C 201 ; WX 8181 ; N Eacute ; B 0 0 0 0 ;
+C 202 ; WX 8181 ; N Ecircumflex ; B 0 0 0 0 ;
+C 203 ; WX 8181 ; N Edieresis ; B 0 0 0 0 ;
+C 204 ; WX 0 ; N Igrave ; B 0 0 0 0 ;
+C 205 ; WX 0 ; N Iacute ; B 0 0 0 0 ;
+C 206 ; WX 0 ; N Icircumflex ; B 0 0 0 0 ;
+C 207 ; WX 0 ; N Idieresis ; B 0 0 0 0 ;
+C 208 ; WX 8181 ; N Eth ; B 0 0 0 0 ;
+C 209 ; WX 8181 ; N Ntilde ; B 0 0 0 0 ;
+C 210 ; WX 8181 ; N Ograve ; B 0 0 0 0 ;
+C 211 ; WX 8181 ; N Oacute ; B 0 0 0 0 ;
+C 212 ; WX 8181 ; N Ocircumflex ; B 0 0 0 0 ;
+C 213 ; WX 8181 ; N Otilde ; B 0 0 0 0 ;
+C 214 ; WX 8181 ; N Odieresis ; B 0 0 0 0 ;
+C 215 ; WX 8181 ; N OE ; B 0 0 0 0 ;
+C 216 ; WX 8181 ; N Oslash ; B 0 0 0 0 ;
+C 217 ; WX 8181 ; N Ugrave ; B 0 0 0 0 ;
+C 218 ; WX 8181 ; N Uacute ; B 0 0 0 0 ;
+C 219 ; WX 8181 ; N Ucircumflex ; B 0 0 0 0 ;
+C 220 ; WX 6544 ; N Udieresis ; B 0 0 0 0 ;
+C 221 ; WX 6544 ; N Yacute ; B 0 0 0 0 ;
+C 222 ; WX 6544 ; N Thorn ; B 0 0 0 0 ;
+C 223 ; WX 6544 ; N Germandbls ; B 0 0 0 0 ;
+C 224 ; WX 6544 ; N agrave ; B 0 0 0 0 ;
+C 225 ; WX 6544 ; N aacute ; B 0 0 0 0 ;
+C 226 ; WX 6544 ; N acircumflex ; B 0 0 0 0 ;
+C 227 ; WX 6544 ; N atilde ; B 0 0 0 0 ;
+C 228 ; WX 6544 ; N adieresis ; B 0 0 0 0 ;
+C 229 ; WX 6544 ; N aring ; B 0 0 0 0 ;
+C 230 ; WX 6544 ; N ae ; B 0 0 0 0 ;
+C 231 ; WX 6544 ; N ccedilla ; B 0 0 0 0 ;
+C 232 ; WX 8181 ; N egrave ; B 0 0 0 0 ;
+C 233 ; WX 8181 ; N eacute ; B 0 0 0 0 ;
+C 234 ; WX 8181 ; N ecircumflex ; B 0 0 0 0 ;
+C 235 ; WX 8181 ; N edieresis ; B 0 0 0 0 ;
+C 236 ; WX 8181 ; N igrave ; B 0 0 0 0 ;
+C 237 ; WX 8181 ; N iacute ; B 0 0 0 0 ;
+C 238 ; WX 8181 ; N icircumflex ; B 0 0 0 0 ;
+C 239 ; WX 8181 ; N idieresis ; B 0 0 0 0 ;
+C 240 ; WX 8181 ; N eth ; B 0 0 0 0 ;
+C 241 ; WX 8181 ; N ntilde ; B 0 0 0 0 ;
+C 242 ; WX 8181 ; N ograve ; B 0 0 0 0 ;
+C 243 ; WX 8181 ; N oacute ; B 0 0 0 0 ;
+C 244 ; WX 0 ; N ocircumflex ; B 0 0 0 0 ;
+C 245 ; WX 0 ; N otilde ; B 0 0 0 0 ;
+C 246 ; WX 0 ; N odieresis ; B 0 0 0 0 ;
+C 247 ; WX 0 ; N oe ; B 0 0 0 0 ;
+C 248 ; WX 0 ; N oslash ; B 0 0 0 0 ;
+C 249 ; WX 0 ; N ugrave ; B 0 0 0 0 ;
+C 250 ; WX 0 ; N uacute ; B 0 0 0 0 ;
+C 251 ; WX 0 ; N ucircumflex ; B 0 0 0 0 ;
+C 252 ; WX 0 ; N udieresis ; B 0 0 0 0 ;
+C 253 ; WX 0 ; N yacute ; B 0 0 0 0 ;
+C 254 ; WX 0 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 0 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/afm/knitwp.afm b/fonts/knitting/fonts/afm/knitwp.afm
new file mode 100644
index 0000000000..143c9cb80e
--- /dev/null
+++ b/fonts/knitting/fonts/afm/knitwp.afm
@@ -0,0 +1,261 @@
+StartFontMetrics 2.0
+Comment Generated by FontForge 20120731
+Comment Creation Date: Thu Apr 4 22:08:38 2019
+FontName KnittingSymbols-wide-purl-Medium
+FullName KnittingSymbols-wide-purl
+FamilyName KnittingSymbols-wide-purl
+Weight Medium
+Notice (Font converted to Type 1 by mf2pt1, written by Scott Pakin.)
+ItalicAngle 0
+IsFixedPitch false
+UnderlinePosition -100
+UnderlineThickness 50
+Version 001.000
+EncodingScheme FontSpecific
+FontBBox 0 -278 8150 922
+CapHeight 922
+XHeight 922
+Descender -278
+StartCharMetrics 240
+C 0 ; WX 1636 ; N grave ; B 0 0 0 0 ;
+C 1 ; WX 1636 ; N acute ; B 0 0 0 0 ;
+C 2 ; WX 1636 ; N circumflex ; B 0 -278 1630 922 ;
+C 3 ; WX 1636 ; N tilde ; B 0 0 0 0 ;
+C 4 ; WX 1636 ; N dieresis ; B 0 -278 1630 922 ;
+C 5 ; WX 1636 ; N hungarumlaut ; B 0 0 0 0 ;
+C 6 ; WX 0 ; N ring ; B 0 0 0 0 ;
+C 17 ; WX 1636 ; N quotedblright ; B 0 0 0 0 ;
+C 18 ; WX 1636 ; N quotedblbase ; B 0 0 0 0 ;
+C 19 ; WX 1636 ; N guillemotleft ; B 0 0 0 0 ;
+C 20 ; WX 1636 ; N guillemotright ; B 0 -278 1630 922 ;
+C 21 ; WX 1636 ; N endash ; B 0 -278 1630 922 ;
+C 22 ; WX 818 ; N emdash ; B 0 0 0 0 ;
+C 23 ; WX 1636 ; N compwordmark ; B 0 0 0 0 ;
+C 24 ; WX 1636 ; N perthousandzero ; B 0 0 0 0 ;
+C 25 ; WX 818 ; N dotlessi ; B 0 0 0 0 ;
+C 26 ; WX 818 ; N dotlessj ; B 0 0 0 0 ;
+C 27 ; WX 818 ; N ff ; B 0 0 0 0 ;
+C 28 ; WX 818 ; N fi ; B 0 0 0 0 ;
+C 29 ; WX 1636 ; N fl ; B 0 0 0 0 ;
+C 30 ; WX 1636 ; N ffi ; B 0 0 0 0 ;
+C 31 ; WX 8181 ; N ffl ; B 0 0 0 0 ;
+C 33 ; WX 1636 ; N exclam ; B 0 0 0 0 ;
+C 34 ; WX 1636 ; N quotedbl ; B 0 0 0 0 ;
+C 35 ; WX 1636 ; N numbersign ; B 0 0 0 0 ;
+C 38 ; WX 1636 ; N ampersand ; B 0 -278 1630 922 ;
+C 39 ; WX 818 ; N quoteright ; B 0 -278 815 922 ;
+C 40 ; WX 1636 ; N parenleft ; B 0 0 0 0 ;
+C 41 ; WX 1636 ; N parenright ; B 0 0 0 0 ;
+C 42 ; WX 1636 ; N asterisk ; B 0 0 0 0 ;
+C 43 ; WX 1636 ; N plus ; B 0 -278 1630 922 ;
+C 44 ; WX 1636 ; N comma ; B 0 -278 1630 922 ;
+C 45 ; WX 1636 ; N hyphen ; B 0 0 0 0 ;
+C 46 ; WX 1636 ; N period ; B 0 0 0 0 ;
+C 47 ; WX 1636 ; N slash ; B 15 -263 1615 907 ;
+C 48 ; WX 1636 ; N zero ; B 0 0 0 0 ;
+C 49 ; WX 1636 ; N one ; B 0 0 0 0 ;
+C 50 ; WX 1636 ; N two ; B 0 -278 1630 922 ;
+C 51 ; WX 1636 ; N three ; B 0 -278 1630 922 ;
+C 52 ; WX 1636 ; N four ; B 0 0 0 0 ;
+C 53 ; WX 1636 ; N five ; B 0 0 0 0 ;
+C 54 ; WX 1636 ; N six ; B 0 0 0 0 ;
+C 55 ; WX 1636 ; N seven ; B 0 0 0 0 ;
+C 56 ; WX 1636 ; N eight ; B 0 0 0 0 ;
+C 57 ; WX 1636 ; N nine ; B 0 0 0 0 ;
+C 58 ; WX 1636 ; N colon ; B 0 -278 1630 922 ;
+C 59 ; WX 1636 ; N semicolon ; B 0 -278 1630 922 ;
+C 60 ; WX 1636 ; N less ; B 0 0 0 0 ;
+C 61 ; WX 1636 ; N equal ; B 0 -278 1630 922 ;
+C 62 ; WX 1636 ; N greater ; B 0 0 0 0 ;
+C 63 ; WX 1636 ; N question ; B 0 0 0 0 ;
+C 64 ; WX 1636 ; N at ; B 0 0 0 0 ;
+C 65 ; WX 1636 ; N A ; B 0 0 0 0 ;
+C 66 ; WX 1636 ; N B ; B 0 -278 1630 922 ;
+C 67 ; WX 1636 ; N C ; B 0 0 0 0 ;
+C 68 ; WX 1636 ; N D ; B 0 0 0 0 ;
+C 69 ; WX 1636 ; N E ; B 460 -33 1170 677 ;
+C 70 ; WX 1636 ; N F ; B 0 -278 1630 922 ;
+C 71 ; WX 1636 ; N G ; B 0 -278 1630 922 ;
+C 72 ; WX 1636 ; N H ; B 0 0 0 0 ;
+C 73 ; WX 1636 ; N I ; B 0 -278 1630 922 ;
+C 74 ; WX 1636 ; N J ; B 0 -278 1630 922 ;
+C 75 ; WX 1636 ; N K ; B 0 0 0 0 ;
+C 76 ; WX 1636 ; N L ; B 0 0 0 0 ;
+C 77 ; WX 1636 ; N M ; B 0 -278 1630 922 ;
+C 78 ; WX 1636 ; N N ; B 0 0 0 0 ;
+C 79 ; WX 1636 ; N O ; B 0 -278 1630 922 ;
+C 80 ; WX 1636 ; N P ; B 0 -278 1630 922 ;
+C 81 ; WX 1636 ; N Q ; B 0 -278 1630 922 ;
+C 82 ; WX 1636 ; N R ; B 0 0 0 0 ;
+C 83 ; WX 1636 ; N S ; B 0 0 0 0 ;
+C 84 ; WX 1636 ; N T ; B 0 -278 1630 922 ;
+C 85 ; WX 1636 ; N U ; B 0 0 0 0 ;
+C 86 ; WX 1636 ; N V ; B 0 -278 1630 922 ;
+C 87 ; WX 1636 ; N W ; B 0 -278 1630 922 ;
+C 88 ; WX 1636 ; N X ; B 0 -278 1630 922 ;
+C 89 ; WX 1636 ; N Y ; B 0 0 0 0 ;
+C 90 ; WX 1636 ; N Z ; B 0 0 0 0 ;
+C 91 ; WX 1636 ; N bracketleft ; B 0 0 0 0 ;
+C 93 ; WX 1636 ; N bracketright ; B 0 0 0 0 ;
+C 96 ; WX 818 ; N quoteleft ; B 0 0 0 0 ;
+C 97 ; WX 1636 ; N a ; B 0 0 0 0 ;
+C 98 ; WX 1636 ; N b ; B 0 0 0 0 ;
+C 99 ; WX 1636 ; N c ; B 0 0 0 0 ;
+C 100 ; WX 1636 ; N d ; B 0 0 0 0 ;
+C 101 ; WX 1636 ; N e ; B 0 0 0 0 ;
+C 102 ; WX 1636 ; N f ; B 0 0 0 0 ;
+C 103 ; WX 1636 ; N g ; B 0 -278 1630 922 ;
+C 104 ; WX 1636 ; N h ; B 0 0 0 0 ;
+C 105 ; WX 1636 ; N i ; B 0 0 0 0 ;
+C 106 ; WX 1636 ; N j ; B 0 0 0 0 ;
+C 107 ; WX 1636 ; N k ; B 0 0 0 0 ;
+C 108 ; WX 1636 ; N l ; B 0 0 0 0 ;
+C 109 ; WX 1636 ; N m ; B 0 0 0 0 ;
+C 110 ; WX 1636 ; N n ; B 0 0 0 0 ;
+C 111 ; WX 1636 ; N o ; B 0 0 0 0 ;
+C 112 ; WX 1636 ; N p ; B 0 -278 1630 922 ;
+C 113 ; WX 1636 ; N q ; B 0 0 0 0 ;
+C 114 ; WX 1636 ; N r ; B 0 0 0 0 ;
+C 115 ; WX 1636 ; N s ; B 0 0 0 0 ;
+C 116 ; WX 1636 ; N t ; B 0 0 0 0 ;
+C 117 ; WX 1636 ; N u ; B 0 0 0 0 ;
+C 118 ; WX 1636 ; N v ; B 0 0 0 0 ;
+C 119 ; WX 1636 ; N w ; B 0 0 0 0 ;
+C 120 ; WX 1636 ; N x ; B 0 0 0 0 ;
+C 121 ; WX 1636 ; N y ; B 0 0 0 0 ;
+C 122 ; WX 1636 ; N z ; B 0 0 0 0 ;
+C 123 ; WX 636 ; N braceleft ; B 0 0 0 0 ;
+C 124 ; WX 151 ; N bar ; B 0 0 0 0 ;
+C 125 ; WX 636 ; N braceright ; B 0 0 0 0 ;
+C 126 ; WX 1636 ; N asciitilde ; B 0 0 0 0 ;
+C 127 ; WX 1636 ; N hyphen ; B 0 0 0 0 ;
+C 128 ; WX 3272 ; N Abreve ; B 0 0 0 0 ;
+C 129 ; WX 3272 ; N Aogonek ; B 0 0 0 0 ;
+C 130 ; WX 3272 ; N Cacute ; B 0 -278 3260 922 ;
+C 131 ; WX 3272 ; N Ccaron ; B 0 -278 3260 922 ;
+C 132 ; WX 4908 ; N Dcaron ; B 0 0 0 0 ;
+C 133 ; WX 4908 ; N Ecaron ; B 0 0 0 0 ;
+C 134 ; WX 4908 ; N Eogonek ; B 0 -278 4890 922 ;
+C 135 ; WX 4908 ; N Gbreve ; B 0 -278 4890 922 ;
+C 136 ; WX 3272 ; N Lacute ; B 0 -278 3260 922 ;
+C 137 ; WX 3272 ; N Lcaron ; B 0 -278 3260 922 ;
+C 138 ; WX 3272 ; N Lslash ; B 0 0 0 0 ;
+C 139 ; WX 3272 ; N Nacute ; B 0 0 0 0 ;
+C 140 ; WX 3272 ; N Ncaron ; B 0 -278 3260 922 ;
+C 141 ; WX 3272 ; N Eng ; B 0 -278 3260 922 ;
+C 142 ; WX 3272 ; N Odblacute ; B 0 -278 3260 922 ;
+C 143 ; WX 3272 ; N Racute ; B 0 -278 3260 922 ;
+C 144 ; WX 3272 ; N Rcaron ; B 0 -278 3260 922 ;
+C 145 ; WX 3272 ; N Sacute ; B 0 -278 3260 922 ;
+C 146 ; WX 3272 ; N Scaron ; B 0 -278 3260 922 ;
+C 147 ; WX 3272 ; N Scedilla ; B 0 -278 3260 922 ;
+C 148 ; WX 4908 ; N Tcaron ; B 0 -278 4890 922 ;
+C 149 ; WX 4908 ; N Tcedilla ; B 0 -278 4890 922 ;
+C 150 ; WX 4908 ; N Udblacute ; B 0 0 0 0 ;
+C 151 ; WX 4908 ; N Uring ; B 0 0 0 0 ;
+C 152 ; WX 4908 ; N Ydieresis ; B 0 -278 4890 922 ;
+C 153 ; WX 4908 ; N Zacute ; B 0 -278 4890 922 ;
+C 154 ; WX 4908 ; N Zcaron ; B 0 0 0 0 ;
+C 155 ; WX 4908 ; N Zdot ; B 0 0 0 0 ;
+C 156 ; WX 4908 ; N IJ ; B 0 -278 4890 922 ;
+C 157 ; WX 4908 ; N Idot ; B 0 -278 4890 922 ;
+C 158 ; WX 4908 ; N dmacron ; B 0 -278 4890 922 ;
+C 159 ; WX 4908 ; N section ; B 0 -278 4890 922 ;
+C 160 ; WX 4908 ; N abreve ; B 0 -278 4890 922 ;
+C 161 ; WX 4908 ; N aogonek ; B 0 -278 4890 922 ;
+C 162 ; WX 4908 ; N cacute ; B 0 -278 4890 922 ;
+C 163 ; WX 4908 ; N ccaron ; B 0 -278 4890 922 ;
+C 164 ; WX 6544 ; N dcaron ; B 0 -278 6520 922 ;
+C 165 ; WX 6544 ; N ecaron ; B 0 -278 6520 922 ;
+C 166 ; WX 6544 ; N eogonek ; B 0 0 0 0 ;
+C 167 ; WX 6544 ; N gbreve ; B 0 0 0 0 ;
+C 168 ; WX 6544 ; N lacute ; B 0 -278 6520 922 ;
+C 169 ; WX 6544 ; N lcaron ; B 0 -278 6520 922 ;
+C 170 ; WX 6544 ; N lslash ; B 0 -278 6520 922 ;
+C 171 ; WX 6544 ; N nacute ; B 0 -278 6520 922 ;
+C 172 ; WX 6544 ; N ncaron ; B 0 -278 6520 922 ;
+C 173 ; WX 6544 ; N eng ; B 0 -278 6520 922 ;
+C 174 ; WX 6544 ; N odblacute ; B 0 -278 6520 922 ;
+C 175 ; WX 6544 ; N racute ; B 0 -278 6520 922 ;
+C 176 ; WX 4908 ; N rcaron ; B 0 -278 4890 922 ;
+C 177 ; WX 4908 ; N sacute ; B 0 -278 4890 922 ;
+C 178 ; WX 4908 ; N scaron ; B 0 0 0 0 ;
+C 179 ; WX 4908 ; N scedilla ; B 0 0 0 0 ;
+C 180 ; WX 4908 ; N tcaron ; B 0 -278 4890 922 ;
+C 181 ; WX 4908 ; N tcedilla ; B 0 -278 4890 922 ;
+C 182 ; WX 4908 ; N udblacute ; B 0 -278 4890 922 ;
+C 183 ; WX 4908 ; N uring ; B 0 -278 4890 922 ;
+C 184 ; WX 4908 ; N ydieresis ; B 0 -278 4890 922 ;
+C 185 ; WX 4908 ; N zacute ; B 0 -278 4890 922 ;
+C 186 ; WX 4908 ; N zcaron ; B 0 -278 4890 922 ;
+C 187 ; WX 4908 ; N zdot ; B 0 -278 4890 922 ;
+C 188 ; WX 6544 ; N ij ; B 0 -278 6520 922 ;
+C 189 ; WX 6544 ; N exclamdown ; B 0 -278 6520 922 ;
+C 190 ; WX 6544 ; N questiondown ; B 0 0 0 0 ;
+C 191 ; WX 6544 ; N sterling ; B 0 0 0 0 ;
+C 192 ; WX 6544 ; N Agrave ; B 0 -278 6520 922 ;
+C 193 ; WX 6544 ; N Aacute ; B 0 -278 6520 922 ;
+C 194 ; WX 6544 ; N Acircumflex ; B 0 -278 6520 922 ;
+C 195 ; WX 6544 ; N Atilde ; B 0 -278 6520 922 ;
+C 196 ; WX 6544 ; N Adieresis ; B 0 -278 6520 922 ;
+C 197 ; WX 6544 ; N Aring ; B 0 -278 6520 922 ;
+C 198 ; WX 6544 ; N AE ; B 0 -278 6520 922 ;
+C 199 ; WX 6544 ; N Ccedilla ; B 0 -278 6520 922 ;
+C 200 ; WX 8181 ; N Egrave ; B 0 -278 8150 922 ;
+C 201 ; WX 8181 ; N Eacute ; B 0 -278 8150 922 ;
+C 202 ; WX 8181 ; N Ecircumflex ; B 0 0 0 0 ;
+C 203 ; WX 8181 ; N Edieresis ; B 0 0 0 0 ;
+C 204 ; WX 0 ; N Igrave ; B 0 0 0 0 ;
+C 205 ; WX 0 ; N Iacute ; B 0 0 0 0 ;
+C 206 ; WX 0 ; N Icircumflex ; B 0 0 0 0 ;
+C 207 ; WX 0 ; N Idieresis ; B 0 0 0 0 ;
+C 208 ; WX 8181 ; N Eth ; B 0 -278 8150 922 ;
+C 209 ; WX 8181 ; N Ntilde ; B 0 -278 8150 922 ;
+C 210 ; WX 8181 ; N Ograve ; B 0 0 0 0 ;
+C 211 ; WX 8181 ; N Oacute ; B 0 0 0 0 ;
+C 212 ; WX 8181 ; N Ocircumflex ; B 0 -278 8150 922 ;
+C 213 ; WX 8181 ; N Otilde ; B 0 -278 8150 922 ;
+C 214 ; WX 8181 ; N Odieresis ; B 0 -278 8150 922 ;
+C 215 ; WX 8181 ; N OE ; B 0 -278 8150 922 ;
+C 216 ; WX 8181 ; N Oslash ; B 0 -278 8150 922 ;
+C 217 ; WX 8181 ; N Ugrave ; B 0 -278 8150 922 ;
+C 218 ; WX 8181 ; N Uacute ; B 0 -278 8150 922 ;
+C 219 ; WX 8181 ; N Ucircumflex ; B 0 -278 8150 922 ;
+C 220 ; WX 6544 ; N Udieresis ; B 0 -278 6520 922 ;
+C 221 ; WX 6544 ; N Yacute ; B 0 -278 6520 922 ;
+C 222 ; WX 6544 ; N Thorn ; B 0 0 0 0 ;
+C 223 ; WX 6544 ; N Germandbls ; B 0 0 0 0 ;
+C 224 ; WX 6544 ; N agrave ; B 0 -278 6520 922 ;
+C 225 ; WX 6544 ; N aacute ; B 0 -278 6520 922 ;
+C 226 ; WX 6544 ; N acircumflex ; B 0 -278 6520 922 ;
+C 227 ; WX 6544 ; N atilde ; B 0 -278 6520 922 ;
+C 228 ; WX 6544 ; N adieresis ; B 0 -278 6520 922 ;
+C 229 ; WX 6544 ; N aring ; B 0 -278 6520 922 ;
+C 230 ; WX 6544 ; N ae ; B 0 -278 6520 922 ;
+C 231 ; WX 6544 ; N ccedilla ; B 0 -278 6520 922 ;
+C 232 ; WX 8181 ; N egrave ; B 0 -278 8150 922 ;
+C 233 ; WX 8181 ; N eacute ; B 0 -278 8150 922 ;
+C 234 ; WX 8181 ; N ecircumflex ; B 0 0 0 0 ;
+C 235 ; WX 8181 ; N edieresis ; B 0 0 0 0 ;
+C 236 ; WX 8181 ; N igrave ; B 0 -278 8150 922 ;
+C 237 ; WX 8181 ; N iacute ; B 0 -278 8150 922 ;
+C 238 ; WX 8181 ; N icircumflex ; B 0 -278 8150 922 ;
+C 239 ; WX 8181 ; N idieresis ; B 0 -278 8150 922 ;
+C 240 ; WX 8181 ; N eth ; B 0 -278 8150 922 ;
+C 241 ; WX 8181 ; N ntilde ; B 0 -278 8150 922 ;
+C 242 ; WX 8181 ; N ograve ; B 0 -278 8150 922 ;
+C 243 ; WX 8181 ; N oacute ; B 0 -278 8150 922 ;
+C 244 ; WX 0 ; N ocircumflex ; B 0 0 0 0 ;
+C 245 ; WX 0 ; N otilde ; B 0 0 0 0 ;
+C 246 ; WX 0 ; N odieresis ; B 0 0 0 0 ;
+C 247 ; WX 0 ; N oe ; B 0 0 0 0 ;
+C 248 ; WX 0 ; N oslash ; B 0 0 0 0 ;
+C 249 ; WX 0 ; N ugrave ; B 0 0 0 0 ;
+C 250 ; WX 0 ; N uacute ; B 0 0 0 0 ;
+C 251 ; WX 0 ; N ucircumflex ; B 0 0 0 0 ;
+C 252 ; WX 0 ; N udieresis ; B 0 0 0 0 ;
+C 253 ; WX 0 ; N yacute ; B 0 0 0 0 ;
+C 254 ; WX 0 ; N thorn ; B 0 0 0 0 ;
+C 255 ; WX 0 ; N germandbls ; B 0 0 0 0 ;
+EndCharMetrics
+EndFontMetrics
diff --git a/fonts/knitting/fonts/map/knitfont.map b/fonts/knitting/fonts/map/knitfont.map
new file mode 100644
index 0000000000..f9ee9a780b
--- /dev/null
+++ b/fonts/knitting/fonts/map/knitfont.map
@@ -0,0 +1,23 @@
+knitnn KnittingSymbols-nogrid-foreground-Medium <knitnn.pfb
+knitwn KnittingSymbols-wide-foreground-Medium <knitwn.pfb
+knitgn KnittingSymbols-grid-foreground-Medium <knitgn.pfb
+knitmn KnittingSymbols-mixed-foreground-Medium <knitmn.pfb
+
+knitnp KnittingSymbols-nogrid-purl-Medium <knitnp.pfb
+knitwp KnittingSymbols-wide-purl-Medium <knitwp.pfb
+knitgp KnittingSymbols-grid-purl-Medium <knitgp.pfb
+knitmp KnittingSymbols-mixed-purl-Medium <knitmp.pfb
+
+knitnr KnittingSymbols-nogrid-raised-Medium <knitnr.pfb
+knitnl KnittingSymbols-nogrid-lowered-Medium <knitnl.pfb
+knitmr KnittingSymbols-mixed-raised-Medium <knitmr.pfb
+knitml KnittingSymbols-mixed-lowered-Medium <knitml.pfb
+
+knitgg KnittingSymbols-grid-grid-Medium <knitgg.pfb
+knitwg KnittingSymbols-wide-grid-Medium <knitwg.pfb
+knitmg KnittingSymbols-mixed-grid-Medium <knitmg.pfb
+
+knitn_sc_in KnittingSymbols-nogrid-incount-Medium <knitn_sc_in.pfb
+knitn_sc_out KnittingSymbols-nogrid-outcount-Medium <knitn_sc_out.pfb
+knitg_sc_in KnittingSymbols-grid-incount-Medium <knitg_sc_in.pfb
+knitg_sc_out KnittingSymbols-grid-outcount-Medium <knitg_sc_out.pfb
diff --git a/fonts/knitting/fonts/source/knit_dimens.mf b/fonts/knitting/fonts/source/knit_dimens.mf
new file mode 100644
index 0000000000..5066b71a81
--- /dev/null
+++ b/fonts/knitting/fonts/source/knit_dimens.mf
@@ -0,0 +1,112 @@
+% Date: 2019/04/05
+
+widewd# = 16.3pt#;
+% This is as wide as a cell can be without causing problems with 5-cell-wide symbols
+if known wd#: else: wd# = 12 pt#; fi
+ ht# + dp# = 12 pt#; ht#-dp# = 6.44444pt#;
+
+ symbolwidth#=0.7pt#;
+ purl_symbolwidth#=0.7pt#;
+ finesymbolwidth# = 0.4pt#;
+ dotwidth# = 1pt#;
+ gridwidth# = if gridfont: 0.3pt# else: 0pt# fi;
+ overlinewd# = if gridfont: 1.5pt# else: 0.8pt# fi;
+
+eraserwidth# = 3pt#;
+wrapturngap# = 2pt#;
+
+ o#:=0.4pt#; %Vertical overshoot
+ ho#:=o#; %Horizontal overshoot
+
+% Vertical gaps
+standardgap# = if gridfont: 3pt# else: 2.5pt# fi;
+smallgap# = if gridfont: 2.5pt# else: 2pt# fi;
+mingap# = if gridfont: 1.2pt# else: 1pt# fi;
+
+botcableheight# - symbolwidth#/2 = (-dp# + smallgap#);
+topcableheight# + symbolwidth#/2 = (ht# - smallgap#);
+
+cablevertgap# = 3symbolwidth#;
+cablebargap# = 4pt#;
+cableslant# = 4pt#;
+
+if known topgap#: else: topgap# = standardgap#; fi
+if known bottomgap#: else: bottomgap# = standardgap#; fi
+
+cableextend# := 0pt#;
+% If your software is prone to leaving little gaps between the nogrid
+% cable connectors, or in wide increases and decreases, you might want
+% to make this nonzero.
+
+if known gridcables: else: boolean gridcables; gridcables = gridfont; fi
+
+nogrid_purlextend# := 0.2pt#;
+
+if gridcables:
+purlextend# := 0pt#;
+else:
+purlextend# := nogrid_purlextend#;
+fi
+
+% Purlextend affects how far outside their box the purl background goes.
+%
+% This is largely irrelevant when printing,
+% but it makes the PDFs look much better.
+%
+% If you do a Knuth-esque bitmap-font customization to your
+% particular printer, this is one parameter you *have* to fiddle with.
+
+define_pixels(wd,ht,dp);
+define_blacker_pixels(cableextend,purlextend,nogrid_purlextend,gridwidth,symbolwidth,
+ purl_symbolwidth, finesymbolwidth, overlinewidth, dotwidth);
+define_pixels(eraserwidth,wrapturngap);
+define_corrected_pixels(o,ho);
+define_pixels(standardgap,smallgap,mingap,topgap,bottomgap,
+ cablevertgap,cablebargap,cableslant, botcableheight,topcableheight);
+
+pickup pencircle scaled symbolwidth; symbol_pen := savepen;
+pickup pencircle scaled dotwidth; dot_pen := savepen;
+pickup pencircle scaled finesymbolwidth; fine_pen := savepen;
+pickup pencircle scaled purl_symbolwidth; purl_symbol_pen := savepen;
+pickup pencircle scaled eraserwidth; eraser_pen := savepen;
+
+offset = (topgap-bottomgap)/2;
+small_topgap = topgap + smallgap-standardgap;
+small_bottomgap = bottomgap + smallgap-standardgap;
+min_topgap = topgap + mingap-standardgap;
+min_bottomgap = bottomgap + mingap-standardgap;
+
+standardheight := ht+dp-topgap-bottomgap;
+biggerheight := ht+dp-small_topgap-small_bottomgap;
+
+font_size 10pt#;
+
+font_slant := 0pt#; % fontdimen 1
+font_normal_space := 0pt#; % fontdimen 2
+font_normal_stretch := 0pt#; % fontdimen 3
+font_normal_shrink := 0pt#; % fontdimen 4
+font_x_height := ht#; % fontdimen 5
+font_quad := wd#; % fontdimen 6
+font_extra_space := 0pt#; % fontdimen 7
+
+fontdimen 8: % Font dimensions 8+ listed here
+dp#, % dimen 8: depth
+% width is not needed because it is quad (dimen 6)
+% height is not needed because it is xheight (dimen 5)
+ht#+dp#, % dimen 9: height+depth (LaTeX height)
+gridwidth#, % dimen 10: grid width
+overlinewd#, % dimen 11: overline/bar width
+(ht#+dp#)/8, % dimen 12: raise/lower symbols in narrow increases
+(topgap#-bottomgap#), % dimen 13: vertical offset
+purlextend#; % dimen 14: purl box outlap
+
+if known incrwidthdefined: else:
+ def incrwidth (expr stsin, stsout) = 1*wd# enddef;
+ def decrwidth (expr stsin, stsout) = 1*wd# enddef;
+fi
+Vwidth := standardheight; % Used twice: v and y
+Wwidth := biggerheight; % Used for make 3 from 1
+wideincline := 2symbolwidth;
+wideinctip := 0.3symbolwidth;
+
+symbolmaxwd# = 82.244pt# - max(2purlextend#,gridwidth#);
diff --git a/fonts/knitting/fonts/source/knit_grid_cables.mf b/fonts/knitting/fonts/source/knit_grid_cables.mf
new file mode 100644
index 0000000000..f101cd9866
--- /dev/null
+++ b/fonts/knitting/fonts/source/knit_grid_cables.mf
@@ -0,0 +1,593 @@
+% Date: 2019/04/05
+
+picture symbolpic[];
+
+beginchar(5,wd#,ht#,dp#); "Top and bottom outlines";
+ pickup pensquare scaled gridwidth;
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ draw (0,-d)--(w,-d); draw (0,h)--(w,h);
+ fi
+endchar;
+
+beginchar(6,0,ht#,dp#); "Vertical grid line";
+ pickup pensquare scaled gridwidth;
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ draw (0,-d)--(0,h);
+ fi
+endchar;
+
+code := 127;
+
+beginchar("-",wd#,ht#,dp#); "A knit stitch";
+ charbox; endchar;
+beginchar("=",wd#,ht#,dp#); "A purl stitch";
+ purlbox; endchar;
+beginchar(".",incrwidth(0,0),ht#,dp#); "No stitch";
+ fill (0.5(w-standardheight),-d+bottomgap) --
+ (0.5(w-standardheight),h-topgap) --
+ (0.5(w+standardheight),h-topgap) --
+ (0.5(w+standardheight),-d+bottomgap) -- cycle;
+ symbolpic0 := currentpicture;
+ charbox; endchar;
+beginchar(",",incrwidth(0,0),ht#,dp#); "Purl no stitch";
+ currentpicture := symbolpic0;
+ purlbox; endchar;
+
+% Cables
+
+cablelinewidth#:=0.4pt#;
+define_blacker_pixels(cablelinewidth);
+pickup pencircle scaled cablelinewidth; cable_pen := savepen;
+
+% The one-letter cells
+
+beginchar("p",wd#,ht#,dp#); "Purl cable background";
+ currentpicture := errorsymbol1;
+ purlbox; endchar;
+beginchar("P",wd#,ht#,dp#); "Purl cable foreground";
+ currentpicture := errorsymbol1;
+ purlbox; endchar;
+beginchar("k",wd#,ht#,dp#); "Knit cable background";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("K",wd#,ht#,dp#); "Knit cable foreground";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("g",wd#,ht#,dp#); "Purl cable background";
+ currentpicture := errorsymbol1;
+ purlbox; endchar;
+beginchar("G",wd#,ht#,dp#); "Purl cable foreground";
+ currentpicture := errorsymbol1;
+ purlbox; endchar;
+beginchar("c",wd#,ht#,dp#); "Knit cable background";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("C",wd#,ht#,dp#); "Knit cable foreground";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("d",wd#,ht#,dp#); "White knit cable background";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("D",wd#,ht#,dp#); "White knit cable foreground";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("n",wd#,ht#,dp#); "Odd knit cable background";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("N",wd#,ht#,dp#); "Odd knit cable foreground";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("e",wd#,ht#,dp#); "Odd twist";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+beginchar("o",wd#,ht#,dp#); "Odd twist";
+ currentpicture := errorsymbol1;
+ charbox; endchar;
+
+% Horizontal cables
+
+horizcablegap# := 0.3 wd#;
+define_pixels(horizcablegap);
+
+beginchar("+",wd#,ht#,dp#); "Left end of a horizontal cable";
+ charbox;
+ pickup pensquare scaled cablelinewidth;
+ x1=x4=horizcablegap; x2=x3=w; bot y1=bot y2= -d+bottomgap; top y3=top y4=h-topgap;
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ draw lft z3--rt z4; draw rt z1--lft z2; draw rt z4--rt z1;
+ fi
+ if fonttype = purltype:
+ fill (0,-d)--(w,-d)--z2--z1--z4--z3--(w,h)--(0,h)--cycle;
+ fi
+ symbolpic0 := currentpicture;
+endchar;
+
+midhoriz := 20;
+righthoriz := 21;
+specialhoriz := ASCII"/";
+
+beginchar(midhoriz,wd#,ht#,dp#); "Middle of a horizontal cable";
+ charbox;
+ pickup pensquare scaled cablelinewidth;
+ x1=x4=gridwidth/2; x2=x3=w-gridwidth/2; bot y1=bot y2= -d+bottomgap; top y3=top y4=h-topgap;
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ draw rt z1--lft z2; draw lft z3--rt z4;
+ fi
+ if fonttype = purltype:
+ fill z1--z2--(w,-d)--(0,-d)--cycle;
+ fill z4--z3--(w,h)--(0,h)--cycle;
+ fi
+ labels(1,2,3,4);
+ endchar;
+
+beginchar(specialhoriz,wd#,ht#,dp#); "Special horizontal cable";
+ charbox;
+ pickup pensquare scaled cablelinewidth;
+ x1=x4=gridwidth/2; x2=x3=w-gridwidth/2;
+ bot y1=bot y2= -d+bottomgap; top y3=top y4=h-topgap;
+
+ x5=x6; x7=x8; x7-x5 = y3-y2; 0.5[x7,x5]=0.5w;
+ y5=y7=-d+gridwidth/2; y6=y8=h-gridwidth/2;
+
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ draw top z5--bot z6; draw top z7--bot z8;
+ draw rt z1--lft (x5,y2);
+ draw rt (x7,y2)--lft z2;
+ draw lft z3--rt(x7,y3);
+ draw lft(x5,y4)--rt z4;
+ fi
+
+ if fonttype = purltype:
+ fill (x1,y5)--z1--(x5,y1)--z5--cycle;
+ fill (x2,y7)--z2--(x7,y2)--z7--cycle;
+ fill (x3,y8)--z3--(x8,y3)--z8--cycle;
+ fill (x4,y6)--z4--(x6,y4)--z6--cycle;
+ fi
+ labels(1,2,3,4,5,6,7,8);
+ endchar;
+
+
+beginchar(righthoriz,if fonttype = counttype: 0 else: wd# fi,ht#,dp#); "Right end of a horizontal cable";
+ fliphoriz(symbolpic0)(currentpicture);
+ endchar;
+
+ligtable "+": specialhoriz:
+ "+" |=: righthoriz;
+ligtable righthoriz:
+ "+" |=: righthoriz,
+ specialhoriz =:| midhoriz,
+ righthoriz =:| midhoriz;
+
+% Setup for the standard cables
+
+numeric cableleft[][][]; numeric cableright[][][];
+numeric whitecableleft[][][]; numeric whitecableright[][][];
+numeric twistleft[][]; numeric twistright[][];
+numeric revcableleft[][]; numeric revcableright[][];
+numeric topcableleft[][]; numeric topcableright[][];
+numeric botcableleft[][]; numeric botcableright[][];
+
+for sts = 2 upto 3:
+ cableright[0][sts][0] := incr code;
+ beginchar(code, (sts)*wd#,ht#,dp#); decimal sts&" cable background stitches";
+ addto currentpicture also errorsymbol[sts];
+ charbox; endchar;
+
+ cableleft[sts][0][0] := incr code;
+ beginchar(code, (sts)*wd#,ht#,dp#); decimal sts&" cable foreground stitches";
+ addto currentpicture also errorsymbol[sts];
+ charbox; endchar;
+
+ revcableright[0][sts] := incr code;
+ beginchar(code, (sts)*wd#,ht#,dp#); decimal sts&" twist background stitches";
+ addto currentpicture also errorsymbol[sts];
+ purlbox; endchar;
+
+ revcableleft[sts][0] := incr code;
+ beginchar(code, (sts)*wd#,ht#,dp#); decimal sts&" twist foreground stitches";
+ addto currentpicture also errorsymbol[sts];
+ purlbox; endchar;
+endfor
+
+% Draw the cables
+
+if known slantcutoff: else: slantcutoff = 0; fi
+
+for backsts = 1 upto 3:
+for frontsts = 1 upto 3:
+for midsts = 0 upto if frontsts = backsts: if frontsts < 3: frontsts else: 0 fi else: 0 fi:
+
+
+cableleft[frontsts][backsts][midsts] = incr code;
+cableright[frontsts][backsts][midsts] = incr code;
+whitecableleft[frontsts][backsts][midsts] = incr code;
+whitecableright[frontsts][backsts][midsts] = incr code;
+
+if midsts = 0:
+topcableleft[frontsts][backsts] = incr code;
+topcableright[frontsts][backsts] = incr code;
+botcableleft[frontsts][backsts] = incr code;
+botcableright[frontsts][backsts] = incr code;
+twistleft[frontsts][backsts] = incr code;
+twistright[frontsts][backsts] = incr code;
+revcableleft[frontsts][backsts] = incr code;
+revcableright[frontsts][backsts] = incr code;
+fi
+
+symbolpic0 := nullpicture;
+symbolpic1 := nullpicture;
+symbolpic2 := nullpicture;
+
+totsts := frontsts + backsts + midsts;
+
+if (frontsts+backsts+midsts)*wd# < symbolmaxwd#:
+
+beginchar(cableleft[frontsts][backsts][midsts],totsts * wd#,ht#,dp#);
+ % Cable/cable front
+ "Cable " & decimal(frontsts) & " over " &decimal(backsts) & " over " &decimal(midsts);
+
+ frontstroke := cablelinewidth * ((backsts+midsts)++1);
+ backstroke := cablelinewidth * ((frontsts+midsts)++1)/2;
+
+ charbox; % Have to do it here so the grid type fonts have stuff
+ if (fonttype = gridtype) or (fonttype = bothtype):
+
+ % Define top and bottom points
+ for k=0 upto totsts:
+ z.bot[k] = (k*wd,-d);
+ z.top[k] = (k*wd,h);
+ penpos.bot[k] (frontstroke, 0);
+ penpos.top[k] (frontstroke, 0);
+ endfor
+
+ for k=0 upto totsts:
+ labels(bot[k],top[k],bot[k]l,bot[k]r,top[k]l,top[k]r);
+ endfor
+
+ % Draw the lines on the front cable
+ if slantcutoff > (backsts+midsts-1):
+ for k=1 upto frontsts-1:
+ penstroke z.top[k]e -- z.bot[k+backsts+midsts]e;
+ endfor
+ fi
+
+ % Draw the left and right lines of the front cable
+ pair temp;
+ temp = (0,whatever);
+ temp = whatever[z.top0l,z.bot[backsts+midsts]l];
+
+ fill z.top0r--z.bot[backsts+midsts]r -- z.bot[backsts+midsts]l--temp--z.top0--cycle;
+
+ pair temp;
+ temp = (w,whatever);
+ temp = whatever[z.bot[totsts]r,z.top[frontsts]r];
+
+ fill z.top[frontsts]r--z.top[frontsts]l--z.bot[totsts]l --z.bot[totsts]--temp--cycle;
+
+ symbolpic1 := currentpicture;
+ % Save this pic for twist front
+
+ % Draw the back lines
+ pair slip;
+ slip = whatever[(-backstroke,0),(frontsts+midsts,1)+(-backstroke,0)];
+ slip = whatever * (-backsts,1);
+
+ % Define some more points
+ for k=0 upto backsts:
+ z.ur[k] = whatever [z.top0,z.bot[backsts+midsts]];
+ z.ur[k] = whatever [z.bot[k],z.top[frontsts+midsts+k]];
+ z.ll[k] = whatever [z.bot[totsts],z.top[frontsts]];
+ z.ll[k] = whatever [z.bot[k],z.top[frontsts+midsts+k]];
+ endfor
+
+ % Top back lines
+ fill z.top[totsts]+(-backstroke,0) -- z.top[totsts] -- z.top[totsts]+(0,-ypart(slip)) -- z.ll[backsts]-slip -- z.ll[backsts]+slip --cycle;
+
+ if midsts > 0:
+ fill z.top[frontsts+midsts]+(-backstroke,0) -- z.top[frontsts+midsts]+(backstroke,0) -- z.ll[0]-slip -- z.ll[0]+slip --cycle;
+ fi
+
+ if slantcutoff > (frontsts+midsts-1):
+ for k=1 upto backsts-1:
+ fill z.top[frontsts+midsts+k]+(-backstroke,0) -- z.top[frontsts+midsts+k]+(backstroke,0) -- z.ll[k]-slip -- z.ll[k]+slip --cycle;
+ endfor
+ fi
+
+ symbolpic2 := currentpicture;
+
+ % Bottom back lines
+ fill z.bot[0]+(backstroke,0) -- z.bot[0] -- z.bot[0]+(0,ypart(slip)) -- z.ur[0]+slip -- z.ur[0]-slip --cycle;
+
+ if midsts > 0:
+ fill z.bot[backsts]+(backstroke,0) -- z.bot[backsts]-(backstroke,0) -- z.ur[backsts]+slip -- z.ur[backsts]-slip --cycle;
+ fi
+
+ if slantcutoff > (frontsts+midsts-1):
+ for k=1 upto backsts-1:
+ fill z.bot[k]+(backstroke,0) -- z.bot[k]-(backstroke,0) -- z.ur[k]+slip -- z.ur[k]-slip --cycle;
+ endfor
+ fi
+
+ fi
+
+ if fonttype = purltype:
+ z.L = whatever[(0,-d),((frontsts+midsts)*wd,h)];
+ z.L = whatever[(0,h),((backsts+midsts)*wd,-d)];
+ z.R = whatever[(w,-d),(w-(backsts+midsts)*wd,h)];
+ z.R = whatever[(w,h),(w-(frontsts+midsts)*wd,-d)];
+
+ if midsts = 0: else:
+ z.top1 = (frontsts*wd,h); z.top2 = ((frontsts+midsts)*wd,h);
+ z.bot1 = (frontsts*wd,-d); z.bot2 = ((frontsts+midsts)*wd,-d);
+ z.top3 = whatever[z.top1,(w,-d)];
+ z.top3 = whatever[z.top2,(0,-d)];
+ z.bot3 = whatever[z.bot1,(w,h)];
+ z.bot3 = whatever[z.bot2,(0,h)];
+ fill z.top1 -- z.top2 -- z.top3 -- cycle;
+ fill z.bot1 -- z.bot2 -- z.bot3 -- cycle;
+ fi
+
+ fill (0,-d) -- z.L -- (0,h) --cycle;
+ fill (w,-d) -- z.R -- (w,h) --cycle;
+ fi
+ symbolpic0 := currentpicture;
+ endchar;
+beginchar(cableright[frontsts][backsts][midsts],totsts * wd#,ht#,dp#);
+ "Cable right " & decimal(frontsts) & " over " &decimal(backsts);
+ currentpicture := symbolpic0 reflectedabout ((w/2,0),(w/2,h));
+ endchar;
+beginchar(whitecableleft[frontsts][backsts][midsts],totsts * wd#,ht#,dp#);
+ "White cable " & decimal(frontsts) & " over " &decimal(backsts);
+ if fonttype <> purltype: currentpicture := symbolpic0; fi
+ endchar;
+beginchar(whitecableright[frontsts][backsts][midsts],totsts * wd#,ht#,dp#);
+ "White cable " & decimal(frontsts) & " over " &decimal(backsts);
+ if fonttype <> purltype: currentpicture := symbolpic0 reflectedabout ((w/2,0),(w/2,h)); fi
+ endchar;
+
+if midsts = 0:
+
+beginchar(twistleft[frontsts][backsts],totsts * wd#,ht#,dp#);
+ % Twist/twist front
+ "Twist " & decimal(frontsts) & " over " &decimal(backsts);
+ charbox;
+ if fonttype <> purltype:
+ currentpicture := symbolpic1;
+ % Draw some missing lines
+ for k=1 upto backsts-1:
+ z.bot[k] = (k*wd,-d);
+ x.slant.bot[k] = k*wd;
+ z.slant.bot[k] = whatever[(0,h),(backsts*wd,-d)];
+ draw z.bot[k]--z.slant.bot[k];
+
+ z.top[k] = ((frontsts+k)*wd,h);
+ x.slant.top[k] = (frontsts+k)*wd;
+ z.slant.top[k] = whatever[(frontsts*wd,h),(w,-d)]; %whatever[(w,-d),(w-backsts*wd,h)];
+ draw z.top[k]--z.slant.top[k];
+ endfor
+ else:
+ fill (0,h)--(wd*backsts,-d)--(0,-d)--cycle; % Bottom triangle
+ fill (w,-d)--(wd*frontsts,h)--(w,h)--cycle; % Top triangle
+ fi
+ symbolpic1 := currentpicture;
+ endchar;
+beginchar(twistright[frontsts][backsts],totsts * wd#,ht#,dp#);
+ "Twist " & decimal(frontsts) & " over " &decimal(backsts);
+ currentpicture := symbolpic1 reflectedabout ((w/2,0),(w/2,h));
+ endchar;
+
+beginchar(topcableleft[frontsts][backsts],totsts * wd#,ht#,dp#);
+ % Twist/twist front
+ "Cable " & decimal(frontsts) & " over " &decimal(backsts);
+ z.R = whatever[(w,-d),(w-(backsts+midsts)*wd,h)];
+ z.R = whatever[(w,h),(w-(frontsts+midsts)*wd,-d)];
+ charbox;
+ if fonttype <> purltype: currentpicture := symbolpic2;
+ else:
+ fill (0,h)--(wd*backsts,-d)--(0,-d)--cycle; % Bottom left triangle
+ fill (w,-d) -- z.R -- (w,h) --cycle; % Right triangle
+ fi
+ symbolpic2 := currentpicture;
+ endchar;
+beginchar(topcableright[frontsts][backsts],totsts * wd#,ht#,dp#);
+ "Cable " & decimal(frontsts) & " over " &decimal(backsts);
+ currentpicture := symbolpic2 reflectedabout ((w/2,0),(w/2,h));
+ endchar;
+beginchar(botcableleft[frontsts][backsts],totsts * wd#,ht#,dp#);
+ "Cable " & decimal(frontsts) & " over " &decimal(backsts);
+ currentpicture := symbolpic2 rotatedaround ((w/2,(h-d)/2),180);
+ endchar;
+beginchar(botcableright[frontsts][backsts],totsts * wd#,ht#,dp#);
+ "Cable " & decimal(frontsts) & " over " &decimal(backsts);
+ currentpicture := symbolpic2 reflectedabout ((0,(h-d)/2),(w,(h-d)/2));
+ endchar;
+
+beginchar(revcableleft[frontsts][backsts],totsts * wd#,ht#,dp#);
+ % Reverse cable/twist back
+ "Reverse cable left " & decimal(frontsts) & " over " &decimal(backsts);
+ if fonttype <> purltype:
+ currentpicture := symbolpic0;
+ else: purlbox; fi
+ endchar;
+beginchar(revcableright[frontsts][backsts],totsts * wd#,ht#,dp#);
+ "Reverse cable " & decimal(frontsts) & " over " &decimal(backsts);
+ if fonttype <> purltype:
+ currentpicture := symbolpic0 reflectedabout ((w/2,0),(w/2,h));
+ else: purlbox; fi
+ endchar;
+fi
+
+else:
+
+beginchar(cableleft[frontsts][backsts][midsts],0pt#,ht#,dp#); endchar;
+beginchar(cableright[frontsts][backsts][midsts],0pt#,ht#,dp#); endchar;
+beginchar(whitecableleft[frontsts][backsts][midsts],0pt#,ht#,dp#); endchar;
+beginchar(whitecableright[frontsts][backsts][midsts],0pt#,ht#,dp#); endchar;
+
+if midsts = 0:
+beginchar(twistleft[frontsts][backsts],0pt#,ht#,dp#); endchar;
+beginchar(twistright[frontsts][backsts],0pt#,ht#,dp#); endchar;
+beginchar(topcableleft[frontsts][backsts],0pt#,ht#,dp#); endchar;
+beginchar(topcableright[frontsts][backsts],0pt#,ht#,dp#); endchar;
+beginchar(botcableleft[frontsts][backsts],0pt#,ht#,dp#); endchar;
+beginchar(botcableright[frontsts][backsts],0pt#,ht#,dp#); endchar;
+beginchar(revcableleft[frontsts][backsts],0pt#,ht#,dp#); endchar;
+beginchar(revcableright[frontsts][backsts],0pt#,ht#,dp#); endchar;
+
+fi
+
+fi
+
+endfor endfor endfor
+
+% Ligatures to let kkKK turn into a cable
+
+if fonttype <> counttype:
+
+cableright[0][1][0] := ASCII"k";
+cableleft[1][0][0] := ASCII"K";
+revcableright[0][1] := ASCII"p";
+revcableleft[1][0] := ASCII"P";
+
+ligtable "c":
+ "k" =: cableright[0][1+1][0],
+ "c" =: cableright[0][1+1][0],
+ "p" =: cableright[1][1][1],
+ "K" =: cableright[1][1][0],
+ "D" =: whitecableright[1][1][0],
+ "N" =: topcableright[1][1];
+ligtable "C":
+ "K" =: cableleft[1+1][0][0],
+ "C" =: cableleft[1+1][0][0],
+ "p" =: twistleft[1][1],
+ "k" =: cableleft[1][1][0],
+ "d" =: whitecableleft[1][1][0],
+ "n" =: topcableleft[1][1],
+ "e" =: botcableleft[1][1],
+ "o" =: botcableleft[1][1];
+ ligtable "g":
+ "p" =: revcableright[0][1+1],
+ "g" =: revcableright[0][1+1],
+ "K" =: twistright[1][1],
+ "P" =: revcableright[1][1],
+ "N" =: botcableright[1][1];
+ ligtable "G":
+ "P" =: revcableleft[1+1][0],
+ "G" =: revcableleft[1+1][0],
+ "p" =: revcableleft[1][1];
+
+for sts = 1 upto 3:
+ ligtable cableright[0][sts][0]:
+ if sts < 3:
+ "k" =: cableright[0][sts+1][0],
+ "c" =: cableright[0][sts+1][0],
+ "p" =: cableright[sts][sts][1],
+ fi
+ "K" =: cableright[1][sts][0],
+ "D" =: whitecableright[1][sts][0],
+ "N" =: topcableright[1][sts];
+ ligtable cableleft[sts][0][0]:
+ if sts < 3:
+ "K" =: cableleft[sts+1][0][0],
+ "C" =: cableleft[sts+1][0][0],
+ fi
+ "p" =: twistleft[sts][1],
+ "k" =: cableleft[sts][1][0],
+ "d" =: whitecableleft[sts][1][0],
+ "n" =: topcableleft[sts][1],
+ "e" =: botcableleft[sts][1],
+ "o" =: botcableleft[sts][1];
+ ligtable revcableright[0][sts]:
+ if sts < 3:
+ "p" =: revcableright[0][sts+1],
+ "g" =: revcableright[0][sts+1],
+ fi
+ "K" =: twistright[1][sts],
+ "P" =: revcableright[1][sts],
+ "N" =: botcableright[1][sts];
+ ligtable revcableleft[sts][0]:
+ if sts < 3:
+ "P" =: revcableleft[sts+1][0],
+ "G" =: revcableleft[sts+1][0],
+ fi
+ "p" =: revcableleft[sts][1];
+
+endfor
+
+for sts = 1 upto 2:
+ ligtable cableleft[sts][sts][1]:
+ if sts > 1: "p" =: cableleft[sts][sts][2], fi
+ "k" =: cableleft[sts][sts][1],
+ "d" =: whitecableleft[sts][sts][1];
+ ligtable cableright[sts][sts][1]:
+ if sts > 1: "p" =: cableright[sts][sts][2], fi
+ "K" =: cableright[sts][sts][1],
+ "D" =: whitecableright[sts][sts][1];
+ ligtable whitecableleft[sts][sts][1]:
+ "d" =: whitecableleft[sts][sts][1];
+ ligtable whitecableright[sts][sts][1]:
+ "D" =: whitecableright[sts][sts][1];
+endfor
+
+if 6wd# < symbolmaxwd#:
+ ligtable cableleft[2][2][2]:
+ "k" =: cableleft[2][2][2],
+ "d" =: whitecableleft[2][2][2];
+ ligtable cableright[2][2][2]:
+ "K" =: cableright[2][2][2],
+ "D" =: whitecableright[2][2][2];
+ ligtable whitecableleft[2][2][2]:
+ "d" =: whitecableleft[2][2][2];
+ ligtable whitecableright[2][2][2]:
+ "D" =: whitecableright[2][2][2];
+fi
+
+for backsts = 1 upto 3:
+for frontsts = 1 upto 3:
+
+ if frontsts < 3:
+ ligtable cableright[frontsts][backsts][0]:
+ "K" =: cableright[frontsts+1][backsts][0],
+ "N" =: topcableright[frontsts+1][backsts],
+ "D" =: whitecableright[frontsts+1][backsts][0];
+ ligtable whitecableright[frontsts][backsts][0]:
+ "D" =: whitecableright[frontsts+1][backsts][0];
+ ligtable topcableright[frontsts][backsts]:
+ "N" =: topcableright[frontsts+1][backsts];
+ ligtable botcableright[frontsts][backsts]:
+ "N" =: botcableright[frontsts+1][backsts];
+ ligtable twistright[frontsts][backsts]:
+ "K" =: twistright[frontsts+1][backsts],
+ "N" =: botcableright[frontsts+1][backsts];
+ ligtable revcableright[frontsts][backsts]:
+ "P" =: revcableright[frontsts+1][backsts];
+ fi
+
+ if backsts < 3:
+ ligtable cableleft[frontsts][backsts][0]:
+ "k" =: cableleft[frontsts][backsts+1][0],
+ "n" =: topcableleft[frontsts][backsts+1],
+ "d" =: whitecableleft[frontsts][backsts+1][0];
+ ligtable whitecableleft[frontsts][backsts][0]:
+ "d" =: whitecableleft[frontsts][backsts+1][0];
+ ligtable topcableleft[frontsts][backsts]:
+ "n" =: topcableleft[frontsts][backsts+1];
+ ligtable botcableleft[frontsts][backsts]:
+ "e" =: botcableleft[frontsts][backsts+1],
+ "o" =: botcableleft[frontsts][backsts+1];
+ ligtable twistleft[frontsts][backsts]:
+ if frontsts < 3: if backsts <= frontsts:
+ "k" =: cableleft[frontsts][frontsts][backsts],
+ "d" =: whitecableleft[frontsts][frontsts][backsts],
+ fi fi
+ "e" =: botcableleft[frontsts][backsts+1],
+ "o" =: botcableleft[frontsts][backsts+1],
+ "p" =: twistleft[frontsts][backsts+1];
+ ligtable revcableleft[frontsts][backsts]:
+ "p" =: revcableleft[frontsts][backsts+1];
+ fi
+
+endfor
+endfor
+
+fi
diff --git a/fonts/knitting/fonts/source/knit_nogrid_cables.mf b/fonts/knitting/fonts/source/knit_nogrid_cables.mf
new file mode 100644
index 0000000000..a99f64d9c6
--- /dev/null
+++ b/fonts/knitting/fonts/source/knit_nogrid_cables.mf
@@ -0,0 +1,703 @@
+% Date: 2019/04/05
+
+code := 127;
+
+if known debugcables: else: boolean debugcables; debugcables = true; fi
+
+beginchar("-",wd#,ht#,dp#); "A knit stitch";
+ pickup symbol_pen;
+ draw bot (w/2,h-topgap+o) -- top (w/2, -d+bottomgap-o);
+ charbox; endchar;
+path purlbar;
+beginchar("=",wd#,ht#,dp#); "A purl stitch";
+ pickup symbol_pen;
+ lft x1-rt x2 = 0.7standardheight; x1+x2=w; y1=y2=0.5[h,-d];
+ purlbar = z1--z2;
+ draw purlbar;
+ purlbox; endchar;
+beginchar(",",incrwidth(0,0),ht#,dp#); "No stitch";
+ purlbox;
+ endchar;
+beginchar(".",incrwidth(0,0),ht#,dp#); "No stitch";
+ charbox;
+ endchar;
+
+%Cables
+
+kright := incr code;
+Kright := incr code;
+pright := incr code;
+Pright := incr code;
+nright := incr code;
+eright := incr code;
+Nright := incr code;
+dright := incr code;
+oright := incr code;
+Dright := incr code;
+
+%if debugcables:
+kleft := incr code;
+Kleft := incr code;
+pleft := incr code;
+Pleft := incr code;
+nleft := incr code;
+eleft := incr code;
+Nleft := incr code;
+dleft := incr code;
+oleft := incr code;
+Dleft := incr code;
+%fi
+
+% Cable background/foreground blocks (empty cables)
+cablebgblock := 255;
+cablefgblock := 254;
+cablebgblockright := incr code;
+cablefgblockright := incr code;
+cablebgblockleft := incr code;
+cablefgblockleft := incr code;
+
+% Grid outlines and empty cables
+ left_cable_grid := incr code;
+ mid_cable_grid := incr code;
+right_cable_grid_bg := incr code;
+right_cable_grid_fg := incr code;
+ left_cable_grid_rt := incr code;
+ mid_cable_grid_rt := incr code;
+right_cable_grid_rt := incr code;
+
+% Empty boxes
+if gridfont:
+ noknitleft := incr code;
+ noknitmid := incr code;
+ noknitright:= incr code;
+ nopurlleft := incr code;
+ nopurlmid := incr code;
+ nopurlright:= incr code;
+
+ beginchar(noknitleft, if fonttype = counttype: 0 else: wd# fi, ht#, dp#); "Left no stitch";
+ leftgrid_charbox;
+ endchar;
+ beginchar(noknitmid, if fonttype = counttype: 0 else: wd# fi, ht#, dp#); "Middle no stitch";
+ topbotgrid_charbox;
+ endchar;
+ beginchar(noknitright, if fonttype = counttype: 0 else: wd# fi, ht#, dp#); "Right no stitch";
+ rightgrid_charbox;
+ endchar;
+
+ beginchar(nopurlleft, if fonttype = counttype: 0 else: wd# fi, ht#, dp#); "Left no stitch";
+ leftgrid_charbox;
+ if fonttype = purltype:
+ fill
+ ( 0,-d)--
+ (w+nogrid_purlextend,-d)--
+ (w+nogrid_purlextend, h)--
+ ( 0, h)--cycle;
+ fi
+ endchar;
+ beginchar(nopurlmid, if fonttype = counttype: 0 else: wd# fi, ht#, dp#); "Middle no stitch";
+ topbotgrid_charbox;
+ if fonttype = purltype:
+ fill
+ ( -nogrid_purlextend,-d)--
+ (w+nogrid_purlextend,-d)--
+ (w+nogrid_purlextend, h)--
+ ( -nogrid_purlextend, h)--cycle;
+ fi
+ endchar;
+ beginchar(nopurlright, if fonttype = counttype: 0 else: wd# fi, ht#, dp#); "Right no stitch";
+ rightgrid_charbox;
+ if fonttype = purltype:
+ fill
+ ( -nogrid_purlextend,-d)--
+ (w,-d)--
+ (w, h)--
+ ( -nogrid_purlextend, h)--cycle;
+ fi
+ endchar;
+
+ ligtable ".": "." =:| noknitleft;
+ ligtable noknitleft: "." |=: noknitright;
+ ligtable noknitright: "." =:| noknitmid;
+ ligtable noknitmid: "." |=: noknitright;
+
+ ligtable ",": "," =:| nopurlleft;
+ ligtable nopurlleft: "," |=: nopurlright;
+ ligtable nopurlright: "," =:| nopurlmid;
+ ligtable nopurlmid: "," |=: nopurlright;
+fi
+
+% Cable background blocks
+
+beginchar(cablebgblock, wd#, ht#, dp#);
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar(cablefgblock, wd#, ht#, dp#);
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar(cablebgblockright, wd#, ht#, dp#); endchar;
+beginchar(cablefgblockright, wd#, ht#, dp#); endchar;
+beginchar(cablebgblockleft, wd#, ht#, dp#); endchar;
+beginchar(cablefgblockleft, wd#, ht#, dp#); endchar;
+
+midhoriz := 20;
+righthoriz := 21;
+specialhoriz := ASCII"/";
+
+cabletopleft := 15;
+cablebotleft := 16;
+cabletopright:= 7;
+cablebotright:= 8;
+
+cableleftslash := 9;
+cableleftbackslash := 10;
+cablerightslash := 11;
+cablerightbackslash := 12;
+
+leftslash := 13;
+rightslash := 14;
+
+beginchar("+",wd#,ht#,dp#); "Horizontal cable";
+ pickup symbol_pen;
+ HCtop = (h-d)/2 + 0.2standardheight;
+ HCbot = (h-d)/2 - 0.2standardheight;
+ HCttop = bot (h-d)/2 + 0.5standardheight + o;
+ HCbbot = top (h-d)/2 - 0.5standardheight - o;
+ y.ul = y.ur = HCtop;
+ y.ll = y.lr = HCbot;
+ x.ul = x.ll = w-x.ur = w-x.lr;
+ x.ur-x.ul = (ht+dp)-2smallgap;
+ symbolpath0 := z.ul--z.ur;
+ symbolpath1 := z.ll--z.lr;
+ draw symbolpath0; draw symbolpath1;
+ symbolpic0 := currentpicture;
+ leftgrid_charbox; endchar;
+
+beginchar(midhoriz,wd#,ht#,dp#); "Middle of a horizontal cable";
+ currentpicture := symbolpic0;
+ topbotgrid_charbox; endchar;
+beginchar(righthoriz,if fonttype = counttype: 0 else: wd# fi,ht#,dp#); "Right end of a horizontal cable";
+ currentpicture := symbolpic0;
+ rightgrid_charbox; endchar;
+
+ligtable "+": specialhoriz:
+ "+" |=: righthoriz;
+ligtable righthoriz:
+ "+" |=: righthoriz,
+ specialhoriz =:| midhoriz,
+ righthoriz =:| midhoriz;
+
+
+beginchar(specialhoriz,wd#,ht#,dp#); "Special horizontal cable";
+ pickup symbol_pen;
+ specialspread = 1.5symbolwidth;
+ y.ul = y.ur = HCtop;
+ y.ll = y.lr = HCbot;
+ x.ul = x.ll = w-x.ur = w-x.lr;
+ x.ur-x.ul = (ht+dp)-2smallgap;
+ draw rt (w/2+specialspread,y.ur)--z.ur;
+ draw rt (w/2+specialspread,y.lr)--z.lr;
+ draw lft (w/2-specialspread,y.ur)--z.ul;
+ draw lft (w/2-specialspread,y.lr)--z.ll;
+ draw (w/2+specialspread,HCttop)--(w/2+specialspread,HCbbot);
+ draw (w/2-specialspread,HCttop)--(w/2-specialspread,HCbbot);
+ topbotgrid_charbox; endchar;
+
+beginchar("k",wd#,ht#,dp#); "Knit cable background";
+ pickup symbol_pen;
+ %if gridfont:
+ %drawdot (w/2, 0.5[botcableheight+cablevertgap,h-topgap]);
+ %else:
+ draw top (w/2, botcableheight+cablevertgap)--bot(w/2,h-topgap);
+ %fi
+ charbox;
+ symbolpic0 := currentpicture;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar("c",wd#,ht#,dp#); "Knit cable background";
+ currentpicture := symbolpic0;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar(kleft,wd#,ht#,dp#); "Knit cable background";
+ currentpicture := symbolpic0;
+ endchar;
+beginchar(kright,wd#,ht#,dp#); "Knit cable background";
+ currentpicture := symbolpic0;
+ endchar;
+
+beginchar("p",wd#,ht#,dp#); "Purl cable background";
+ pickup symbol_pen;
+ %if gridfont:
+ %drawdot (w/2, 0.5[botcableheight+cablevertgap,h-topgap]);
+ %else:
+ draw purlbar;
+ %fi
+ charbox; purlfill;
+ symbolpic0 := currentpicture;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar("g",wd#,ht#,dp#); "Purl cable background";
+ currentpicture := symbolpic0;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar(pright,wd#,ht#,dp#); "Purl cable background";
+ currentpicture := symbolpic0;
+ endchar;
+beginchar(pleft,wd#,ht#,dp#); "Purl cable background";
+ currentpicture := symbolpic0;
+ endchar;
+
+beginchar("n",incrwidth(0,1),ht#,dp#); "Back make one";
+ pickup symbol_pen;
+ drawM(h-topgap, botcableheight+cablevertgap, 0.5wd,symbolwidth);
+ charbox;
+ symbolpic0:=currentpicture;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar(nright,incrwidth(0,1),ht#,dp#); "Back make one";
+ currentpicture := symbolpic0; endchar;
+beginchar(nleft,incrwidth(0,1),ht#,dp#); "Back make one";
+ currentpicture := symbolpic0; endchar;
+
+beginchar("e",incrwidth(0,1),ht#,dp#); "Back purlwise make one";
+ pickup purl_symbol_pen;
+ drawM(h-topgap, botcableheight+cablevertgap, 0.5wd,purl_symbolwidth);
+ charbox; purlfill;
+ symbolpic0:=currentpicture;
+ addto currentpicture also errorsymbol1;
+endchar;
+beginchar(eright,incrwidth(0,1),ht#,dp#); "Back purlwise make one";
+ currentpicture := symbolpic0;
+endchar;
+beginchar(eleft,incrwidth(0,1),ht#,dp#); "Back purlwise make one";
+ currentpicture := symbolpic0;
+endchar;
+
+beginchar("N",incrwidth(0,1),ht#,dp#); "Front make one";
+ pickup symbol_pen;
+ drawM(topcableheight-cablevertgap, -d+bottomgap, 0.5wd,symbolwidth);
+ charbox;
+ symbolpic0 := currentpicture;
+ addto currentpicture also errorsymbol1;
+endchar;
+beginchar(Nright,incrwidth(0,1),ht#,dp#); "Front make one";
+ currentpicture := symbolpic0;
+endchar;
+beginchar(Nleft,incrwidth(0,1),ht#,dp#); "Front make one";
+ currentpicture := symbolpic0;
+endchar;
+
+beginchar("d",decrwidth(2,1),ht#,dp#); "Back decrease";
+ pickup symbol_pen;
+ drawSSK(h-topgap, botcableheight+cablevertgap);
+ charbox;
+ symbolpic0:=currentpicture;
+ addto currentpicture also errorsymbol1;
+endchar;
+beginchar(dright,decrwidth(2,1),ht#,dp#); "Back decrease";
+ fliphoriz(symbolpic0)(currentpicture); endchar;
+beginchar(dleft,decrwidth(2,1),ht#,dp#); "Back decrease";
+ currentpicture := symbolpic0; endchar;
+
+beginchar("o",decrwidth(2,1),ht#,dp#); "Back purl decrease";
+ pickup purl_symbol_pen;
+ drawSSK(h-topgap, botcableheight+cablevertgap);
+ charbox; purlfill;
+ symbolpic0:=currentpicture;
+ addto currentpicture also errorsymbol1;
+endchar;
+beginchar(oright,decrwidth(2,1),ht#,dp#); "Back purl decrease";
+ fliphoriz(symbolpic0)(currentpicture);
+ endchar;
+beginchar(oleft,decrwidth(2,1),ht#,dp#); "Back purl decrease";
+ currentpicture := symbolpic0;;
+ endchar;
+
+beginchar("D",decrwidth(2,1),ht#,dp#); "Front decrease";
+ pickup symbol_pen;
+ drawSSK(topcableheight-cablevertgap,-d+bottomgap);
+ charbox;
+ symbolpic0:=currentpicture;
+ addto currentpicture also errorsymbol1;
+endchar;
+beginchar(Dright,decrwidth(2,1),ht#,dp#); "Front decrease";
+ fliphoriz(symbolpic0)(currentpicture); endchar;
+beginchar(Dleft,decrwidth(2,1),ht#,dp#); "Front decrease";
+ currentpicture := symbolpic0; endchar;
+
+
+beginchar("K",wd#,ht#,dp#); "Knit cable foreground";
+ pickup symbol_pen;
+ %if gridfont:
+ %drawdot (w/2, 0.5[-d+bottomgap,topcableheight-cablevertgap]);
+ %else:
+ draw top (w/2, -d+bottomgap)--bot(w/2,topcableheight-cablevertgap);
+ %fi
+ charbox;
+ symbolpic0 := currentpicture;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar("C",wd#,ht#,dp#); "Knit cable foreground";
+ currentpicture := symbolpic0;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar(Kright,wd#,ht#,dp#); "Knit cable foreground";
+ currentpicture := symbolpic0;
+ endchar;
+beginchar(Kleft,wd#,ht#,dp#); "Knit cable foreground";
+ currentpicture := symbolpic0;
+ endchar;
+
+beginchar("P",wd#,ht#,dp#); "Purl cable foreground";
+ %if gridfont:
+ %pickup dot_pen;
+ %drawdot (w/2, 0.5[-d+bottomgap,topcableheight-cablevertgap]);
+ %else:
+ pickup symbol_pen;
+ draw purlbar;
+ %fi
+ charbox; purlfill;
+ symbolpic0 := currentpicture;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar("G",wd#,ht#,dp#); "Purl cable foreground";
+ currentpicture := symbolpic0;
+ addto currentpicture also errorsymbol1;
+ endchar;
+beginchar(Pright,wd#,ht#,dp#); "Purl cable foreground";
+ currentpicture := symbolpic0;
+ endchar;
+beginchar(Pleft,wd#,ht#,dp#); "Purl cable foreground";
+ currentpicture := symbolpic0;
+ endchar;
+
+beginchar("_",0,ht#,dp#); "Cable bottom connector";
+ pickup symbol_pen;
+ x2 - x1 = 2wd - cablebargap;
+ 0.5[x1,x2]=0;
+ y1=y2=botcableheight; draw z1--z2;
+ endchar;
+beginchar("^",0,ht#,dp#); "Cable top connector";
+ pickup symbol_pen;
+ x2 - x1 = 2wd - cablebargap;
+ 0.5[x1,x2]=0;
+ y1=y2=topcableheight; draw z1--z2;
+% pickup pensquare scaled symbolwidth;
+% draw rt (-wd/2,topcableheight) -- lft (wd/2,topcableheight);
+ endchar;
+
+beginchar(rightslash,0,ht#,dp#); "Cable right slant connector";
+ pickup symbol_pen;
+ x4 - x3 = cableslant; 0.5[x3,x4]=0;
+ y3=botcableheight; y4=topcableheight;
+ draw z3--z4;
+ symbolpic0 := currentpicture;
+ endchar;
+
+beginchar(leftslash,0,ht#,dp#); "Cable left slant connector";
+ pickup symbol_pen;
+ x3 - x4 = cableslant; 0.5[x3,x4]=0;
+ y3=botcableheight; y4=topcableheight;
+ draw z3--z4;
+ symbolpic0 := currentpicture;
+ endchar;
+
+
+beginchar(cabletopleft,0,ht#,dp#); "Cable top left connector";
+ pickup pensquare scaled symbolwidth;
+ rt x2 - lft x1 = wd+2cableextend; lft x1 = -wd + cablebargap/2;
+ y1=y2=topcableheight;
+ symbolpath0 := z1--z2;
+ draw symbolpath0;
+ symbolpic0 := currentpicture;
+ endchar;
+beginchar(cabletopright,0,ht#,dp#); "Cable top right connector";
+ currentpicture := symbolpic0 reflectedabout ((0,0),(0,h));
+ endchar;
+beginchar(cablebotleft,0,ht#,dp#); "Cable bot left connector";
+ pickup pensquare scaled symbolwidth;
+ y1=y2=botcableheight;
+ x1 = xpart (point 0 of symbolpath0);
+ x2 = xpart (point 1 of symbolpath0);
+ draw z1--z2;
+ symbolpic0 := currentpicture;
+ endchar;
+beginchar(cablebotright,0,ht#,dp#); "Cable bot right connector";
+ currentpicture := symbolpic0 reflectedabout ((0,0),(0,h));
+ endchar;
+
+beginchar(cableleftslash,0,ht#,dp#); "Cable slash connector";
+ pickup pensquare scaled symbolwidth;
+ y1 = y2 = botcableheight;
+ rt x1 = - cableslant/2; lft x2 = -wd + cablebargap/2;
+ draw z1--z2;
+ symbolpic0 := currentpicture;
+ endchar;
+beginchar(cablerightbackslash,0,ht#,dp#); "Cable slash connector";
+ currentpicture := symbolpic0 reflectedabout ((0,0),(0,h));
+ endchar;
+beginchar(cableleftbackslash,0,ht#,dp#); "Cable slash connector";
+ pickup pensquare scaled symbolwidth;
+ y1 = y2 = topcableheight;
+ rt x1 = - cableslant/2; lft x2 = -wd + cablebargap/2;
+ draw z1--z2;
+ symbolpic0 := currentpicture;
+ endchar;
+beginchar(cablerightslash,0,ht#,dp#); "Cable slash connector";
+ currentpicture := symbolpic0 reflectedabout ((0,0),(0,h));
+ endchar;
+
+if gridfont:
+beginchar(left_cable_grid,wd#,ht#,dp#); "Left-end cable outlines";
+ leftgrid_charbox; endchar;
+beginchar(mid_cable_grid,wd#,ht#,dp#); "Cable outlines";
+ topbotgrid_charbox; endchar;
+beginchar(mid_cable_grid_rt,wd#,ht#,dp#); "Cable outlines";
+ topbotgrid_charbox; endchar;
+beginchar(right_cable_grid_bg,wd#,ht#,dp#); "Right-end cable outlines";
+ rightgrid_charbox; endchar;
+beginchar(right_cable_grid_fg,wd#,ht#,dp#); "Right-end cable outlines";
+ rightgrid_charbox; endchar;
+beginchar(right_cable_grid_rt,wd#,ht#,dp#); "Right-end cable outlines";
+ rightgrid_charbox; endchar;
+fi
+
+if fonttype = gridtype:
+ligtable
+"k":
+"p":
+"c":
+"g":
+"o":
+"e":
+"n":
+"d":
+cablebgblock:
+ "k" |=: right_cable_grid_bg,
+ "c" |=: right_cable_grid_bg,
+ "n" |=: right_cable_grid_bg,
+ "d" |=: right_cable_grid_bg,
+ "p" |=: right_cable_grid_bg,
+ "g" |=: right_cable_grid_bg,
+ "e" |=: right_cable_grid_bg,
+ "o" |=: right_cable_grid_bg,
+ cablebgblock |=: right_cable_grid_bg,
+ "K" |=: right_cable_grid_rt,
+ "P" |=: right_cable_grid_rt,
+ "C" |=: right_cable_grid_rt,
+ "G" |=: right_cable_grid_rt,
+ "N" |=: right_cable_grid_rt,
+ "D" |=: right_cable_grid_rt,
+ cablefgblock |=: right_cable_grid_rt,
+ right_cable_grid_rt =:| left_cable_grid,
+ right_cable_grid_bg =:| left_cable_grid;
+
+ligtable
+"K":
+"P":
+"C":
+"G":
+"N":
+"D":
+cablefgblock:
+ "k" |=: right_cable_grid_rt,
+ "c" |=: right_cable_grid_rt,
+ "n" |=: right_cable_grid_rt,
+ "d" |=: right_cable_grid_rt,
+ "p" |=: right_cable_grid_rt,
+ "g" |=: right_cable_grid_rt,
+ "e" |=: right_cable_grid_rt,
+ "o" |=: right_cable_grid_rt,
+ cablebgblock |=: right_cable_grid_rt,
+ "K" |=: right_cable_grid_fg,
+ "P" |=: right_cable_grid_fg,
+ "C" |=: right_cable_grid_fg,
+ "G" |=: right_cable_grid_fg,
+ "N" |=: right_cable_grid_fg,
+ "D" |=: right_cable_grid_fg,
+ cablefgblock |=: right_cable_grid_fg,
+ right_cable_grid_rt =:| left_cable_grid,
+ right_cable_grid_fg =:| left_cable_grid;
+
+ligtable
+right_cable_grid_fg:
+ "k" |=: right_cable_grid_rt,
+ "n" |=: right_cable_grid_rt,
+ "d" |=: right_cable_grid_rt,
+ "p" |=: right_cable_grid_rt,
+ "e" |=: right_cable_grid_rt,
+ "o" |=: right_cable_grid_rt,
+ cablebgblock |=: right_cable_grid_rt,
+ "K" |=: right_cable_grid_fg,
+ "P" |=: right_cable_grid_fg,
+ "C" |=: right_cable_grid_fg,
+ "G" |=: right_cable_grid_fg,
+ "N" |=: right_cable_grid_fg,
+ "D" |=: right_cable_grid_fg,
+ cablefgblock |=: right_cable_grid_fg,
+ right_cable_grid_rt =:| mid_cable_grid,
+ right_cable_grid_fg =:| mid_cable_grid;
+ligtable
+right_cable_grid_bg:
+ "k" |=: right_cable_grid_bg,
+ "c" |=: right_cable_grid_bg,
+ "n" |=: right_cable_grid_bg,
+ "d" |=: right_cable_grid_bg,
+ "p" |=: right_cable_grid_bg,
+ "g" |=: right_cable_grid_bg,
+ "e" |=: right_cable_grid_bg,
+ "o" |=: right_cable_grid_bg,
+ cablebgblock |=: right_cable_grid_bg,
+ "K" |=: right_cable_grid_rt,
+ "P" |=: right_cable_grid_rt,
+ "N" |=: right_cable_grid_rt,
+ "D" |=: right_cable_grid_rt,
+ cablefgblock |=: right_cable_grid_rt,
+ right_cable_grid_rt =:| mid_cable_grid,
+ right_cable_grid_bg =:| mid_cable_grid;
+ligtable
+right_cable_grid_rt:
+ "k" |=: right_cable_grid_rt,
+ "n" |=: right_cable_grid_rt,
+ "d" |=: right_cable_grid_rt,
+ "p" |=: right_cable_grid_rt,
+ "e" |=: right_cable_grid_rt,
+ "o" |=: right_cable_grid_rt,
+ cablebgblock |=: right_cable_grid_rt,
+ "K" |=: right_cable_grid_rt,
+ "P" |=: right_cable_grid_rt,
+ "N" |=: right_cable_grid_rt,
+ "D" |=: right_cable_grid_rt,
+ cablefgblock |=: right_cable_grid_rt,
+ right_cable_grid_rt =:| mid_cable_grid;
+fi
+
+if fonttype = foretype:
+
+for leftglyph = "k", "p", "o", "e", "n", "d", "c", "g", "cablebgblock":
+ if leftglyph = "cablebgblock":
+ leftglyphlig := cablebgblockleft;
+ elseif leftglyph = "c":
+ leftglyphlig := kleft;
+ elseif leftglyph = "g":
+ leftglyphlig := pleft;
+ else:
+ leftglyphlig := scantokens (leftglyph & "left");
+ fi
+ligtable if leftglyph = "cablebgblock": cablebgblock else: leftglyph fi:
+ "k" |=:| cablebotleft,
+ "c" |=:| cablebotleft,
+ "n" |=:| cablebotleft,
+ "d" |=:| cablebotleft,
+ "p" |=:| cablebotleft,
+ "g" |=:| cablebotleft,
+ "e" |=:| cablebotleft,
+ "o" |=:| cablebotleft,
+ cablebgblock |=:| cablebotleft,
+ "K" |=:| rightslash,
+ "P" |=:| rightslash,
+ "N" |=:| rightslash,
+ "D" |=:| rightslash,
+ cablefgblock |=:| rightslash,
+ rightslash |=:| cableleftslash,
+ cablebotleft =:| leftglyphlig,
+ cableleftslash =:| leftglyphlig;
+endfor
+
+for leftglyph = "K", "P", "C", "G", "N", "D", "cablefgblock":
+ if leftglyph = "cablefgblock":
+ leftglyphlig := cablefgblockleft;
+ elseif leftglyph = "C":
+ leftglyphlig := Kleft;
+ elseif leftglyph = "G":
+ leftglyphlig := Pleft;
+ else:
+ leftglyphlig := scantokens (leftglyph & "left");
+ fi
+ligtable if leftglyph = "cablefgblock": cablefgblock else: leftglyph fi:
+ "K" |=:| cabletopleft,
+ "P" |=:| cabletopleft,
+ "G" |=:| cabletopleft,
+ "C" |=:| cabletopleft,
+ "N" |=:| cabletopleft,
+ "D" |=:| cabletopleft,
+ cablefgblock |=:| cabletopleft,
+ "k" |=:| leftslash,
+ "p" |=:| leftslash,
+ "o" |=:| leftslash,
+ "e" |=:| leftslash,
+ "n" |=:| leftslash,
+ "d" |=:| leftslash,
+ cablebgblock |=:| leftslash,
+ leftslash |=:| cableleftbackslash,
+ cabletopleft =:| leftglyphlig,
+ cableleftbackslash =:| leftglyphlig;
+endfor
+
+ligtable
+Kright:
+Pright:
+Nright:
+Dright:
+cablefgblockright:
+ "K" |=: Kright,
+ Kright |=:| cabletopright,
+ "P" |=: Pright,
+ Pright |=:| cabletopright,
+ "N" |=: Nright,
+ Nright |=:| cabletopright,
+ "D" |=: Dright,
+ Dright |=:| cabletopright,
+ cablefgblock |=: cablefgblockright,
+ cablefgblockright |=:| cabletopright;
+
+ligtable
+kright:
+pright:
+oright:
+eright:
+nright:
+dright:
+cablebgblockright:
+ "k" |=: kright,
+ kright |=:| cablebotright,
+ "p" |=: pright,
+ pright |=:| cablebotright,
+ "o" |=: oright,
+ oright |=:| cablebotright,
+ "e" |=: eright,
+ eright |=:| cablebotright,
+ "n" |=: nright,
+ nright |=:| cablebotright,
+ "d" |=: dright,
+ dright |=:| cablebotright,
+ cablebgblock |=: cablebgblockright,
+ cablebgblockright |=:| cablebotright;
+
+ligtable rightslash:
+ "K" |=: Kright,
+ Kright |=:| cablerightslash,
+ "P" |=: Pright,
+ Pright |=:| cablerightslash,
+ "N" |=: Nright,
+ Nright |=:| cablerightslash,
+ "D" |=: Dright,
+ Dright |=:| cablerightslash,
+ cablefgblock |=: cablefgblockright,
+ cablefgblockright |=:| cablerightslash;
+ligtable leftslash:
+ "k" |=: kright,
+ "p" |=: pright,
+ "o" |=: oright,
+ "e" |=: eright,
+ "n" |=: nright,
+ "d" |=: dright,
+ cablebgblock |=: cablebgblockright,
+ kright |=:| cablerightbackslash,
+ nright |=:| cablerightbackslash,
+ dright |=:| cablerightbackslash,
+ pright |=:| cablerightbackslash,
+ eright |=:| cablerightbackslash,
+ oright |=:| cablerightbackslash,
+ cablebgblockright |=:| cablerightbackslash;
+
+fi
diff --git a/fonts/knitting/fonts/source/knit_symbols.mf b/fonts/knitting/fonts/source/knit_symbols.mf
new file mode 100644
index 0000000000..e0fb61c80a
--- /dev/null
+++ b/fonts/knitting/fonts/source/knit_symbols.mf
@@ -0,0 +1,1163 @@
+% Date: 2019/04/05
+
+% Don't flash pictures of the characters as you draw them.
+% This is dizzying, and UNIX can't do it anyway.
+displaying := 0;
+
+% If you want actual documentation, say
+% "mf knitnn" and then
+% "gftodvi knitnn.2602gf" and then
+% "dvipdfm knitnn"
+% at a command prompt in the directory containing this file.
+% This will give you a PDF with big pictures of all the characters in
+% the font with the important points labeled.
+
+if known ps_output:
+ font_coding_scheme := "T1-WGL4.enc";
+fi
+
+def purlfill =
+ if fonttype = purltype:
+ fill
+ ( -purlextend,-d-purlextend)--
+ (w+purlextend,-d-purlextend)--
+ (w+purlextend, h+purlextend)--
+ ( -purlextend, h+purlextend)--cycle;
+ fi
+enddef;
+
+purltype = 0;
+gridtype = 1;
+foretype = 2;
+bothtype = 3; % Both the grid and the symbols
+counttype = 4;
+
+if fonttype = counttype:
+ % extra_endchar := extra_endchar & " pickup pencircle scaled 0.2pt; if w>0: draw (0,-d)--(0,h); draw (w,-d)--(w,h); fi ";
+fi
+
+def nogrid_charbox =
+ if (fonttype = purltype) or (fonttype = gridtype):
+ currentpicture := nullpicture;
+ fi
+ enddef;
+
+def leftgrid_charbox =
+ if (fonttype = purltype): currentpicture := nullpicture; fi
+ if (fonttype = gridtype): currentpicture := nullpicture; fi
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ pickup pensquare scaled gridwidth;
+ draw lft (w,h)--(0,h);
+ draw (0,h)--(0,-d);
+ draw (0,-d)--lft (w,-d);
+ fi
+enddef;
+
+def rightgrid_charbox =
+ if (fonttype = purltype): currentpicture := nullpicture; fi
+ if (fonttype = gridtype): currentpicture := nullpicture; fi
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ pickup pensquare scaled gridwidth;
+ draw (w,h)--rt (0,h);
+ draw (w,h)--(w,-d);
+ draw rt (0,-d)--(w,-d);
+ fi
+enddef;
+
+def topbotgrid_charbox =
+ if (fonttype = purltype): currentpicture := nullpicture; fi
+ if (fonttype = gridtype): currentpicture := nullpicture; fi
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ pickup pensquare scaled gridwidth;
+ draw (w,h)--(0,h);
+ draw (0,-d)--(w,-d);
+ fi
+enddef;
+
+if gridfont:
+def charbox =
+ if fonttype = purltype:
+ currentpicture := nullpicture;
+ fi
+ if fonttype = gridtype: currentpicture := nullpicture; fi
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ pickup pencircle scaled gridwidth;
+ fill (-gridwidth/2,-d-gridwidth/2)--(w+gridwidth/2,-d-gridwidth/2)--
+ (w+gridwidth/2,h+gridwidth/2)--(-gridwidth/2,h+gridwidth/2)--cycle;
+ if (w>0):
+ unfill (gridwidth/2,-d+gridwidth/2)--(w-gridwidth/2,-d+gridwidth/2)--
+ (w-gridwidth/2,h-gridwidth/2)--(gridwidth/2,h-gridwidth/2)--cycle;
+ fi
+ fi
+ enddef;
+else:
+def charbox = nogrid_charbox enddef;
+fi
+
+def purlbox = charbox; purlfill; enddef;
+
+% We don't need any symbols in the counting fonts because we will never
+% actually show them and clearing them saves a bit of disk space.
+if fonttype = counttype:
+ def charbox = currentpicture := nullpicture; enddef;
+ def purlbox = currentpicture := nullpicture; enddef;
+fi
+
+ picture symbolpic[];
+ path symbolpath[];
+
+def fliphoriz(text beginning, ending) =
+ ending := (beginning) reflectedabout ((.5w,0),(.5w,h));
+ enddef;
+def flipvert(text beginning, ending) =
+ ending := (beginning) reflectedabout ((0,(h-d)/2),(w,(h-d)/2));
+ ending := (ending) shifted (0,bottomgap-topgap);
+ enddef;
+
+pair arrowpoint;
+
+def definearrow(text thepath, arrowlength, endpath) =
+
+ arrowpoint := point infinity of thepath;
+ arrowdir := angle(direction infinity of thepath);
+ endpath := arrowpoint + ((1,0) rotated (arrowdir+150) scaled arrowlength)
+ --arrowpoint + ((1,0) rotated arrowdir scaled 0.5symbolwidth)
+ --arrowpoint + ((1,0) rotated (arrowdir-150) scaled arrowlength)
+ ;
+ enddef;
+
+% Error symbols (glyphs that should not happen)
+
+if known debugcables: else: boolean debugcables; debugcables = true; fi
+
+picture errorsymbol[];
+for k=1,2,3:
+ errorsymbol[k] = nullpicture;
+endfor
+if debugcables:
+ errorslashes = 4;
+ if (fonttype=foretype) or (fonttype=bothtype):
+ for j=1,2,3:
+ for k=(1/errorslashes) step (1/errorslashes) until 0.99:
+ addto errorsymbol[j] doublepath ((0,k[-dp,ht])--(k[wd,0],.001pt+ht)) withpen (pencircle scaled symbolwidth);
+ addto errorsymbol[j] doublepath ((j*wd,k[-dp,ht])--(k[j*wd,(j-1)*wd],.001pt-dp)) withpen (pencircle scaled symbolwidth);
+ endfor
+ for k=0 step (1/errorslashes) until (j-1):
+ addto errorsymbol[j] doublepath ((k*wd,-dp)--((k+1)*wd,ht)) withpen (pencircle scaled symbolwidth);
+ endfor
+ endfor
+ fi
+fi
+
+% Arrow symbols
+
+beginchar("s",wd#,ht#,dp#); "Slip one left";
+ pickup symbol_pen;
+ y1 = y2 = (h-d)/2-offset;
+ 0.5[x1,x2]=w/2;
+ rt x2 - lft x1 = ht+dp-2*smallgap;
+ symbolpath0 := z1--z2;
+ definearrow(symbolpath0)((x2-x1)/3)(symbolpath1);
+ draw symbolpath0;
+ draw symbolpath1;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+
+beginchar("S",wd#,ht#,dp#); "Slip one right";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+beginchar("[",wd#,ht#,dp#); "Slip one left knitwise";
+ pickup symbol_pen;
+ y1 = y2 = (h-d)/2-offset;
+ 0.5[x1,x2]=w/2;
+ rt x2 - lft x1 = ht+dp-2*0.3[smallgap,mingap];
+ symbolpath0 := z1--z2;
+ definearrow(symbolpath0)((x2-x1)/3)(symbolpath1);
+ draw symbolpath0;
+ draw symbolpath1;
+ 0.5[y3,y4] = y1;
+ 0.5[x3,x4] = 0.5[lft x1, lft xpart point 0 of symbolpath1];
+ z4 = z3+whatever*(1,2);
+ y4-y3 = 1.5 ypart (point 2 of symbolpath1 - point 0 of symbolpath1);
+ draw z3--z4;
+ labels(1,2,3,4);
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+
+beginchar("]",wd#,ht#,dp#); "Slip one right knitwise";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ flipvert(currentpicture)(currentpicture);
+ charbox; endchar;
+
+
+beginchar("h",decrwidth(1,0),ht#,dp#); "Drop stitch";
+ pickup symbol_pen;
+ y1 = bot h-small_topgap;
+ y2 = top -d+small_bottomgap;
+ x1 = x2 =w/2;
+ symbolpath0 := z1--z2;
+ definearrow(symbolpath0)((y1-y2)/3)(symbolpath1);
+ draw symbolpath0;
+ draw symbolpath1;
+ charbox; endchar;
+
+beginchar("H",incrwidth(0,1),ht#,dp#); "Up arrow";
+ pickup symbol_pen;
+ y1 = bot h-small_topgap;
+ y2 = top -d+small_bottomgap;
+ x1 = x2 =w/2;
+ symbolpath0 := z1--z2;
+ definearrow(reverse symbolpath0)((y1-y2)/3)(symbolpath1);
+ draw symbolpath0;
+ draw symbolpath1;
+ charbox; endchar;
+
+% Miscellaneous symbols
+
+beginchar("O",incrwidth(0,1),ht#,dp#); "Yarn over";
+ pickup symbol_pen;
+ top z1 = (0.5w, h-topgap+o);
+ bot z3 = (0.5w, bottomgap-d-o);
+ x2-x4 = y1-y3; 0.5[x2,x4]=0.5w;
+ y2 = y4 = 0.5[y1,y3];
+ penpos1(symbolwidth,90);
+ penpos2(symbolwidth,0);
+ penpos3(symbolwidth,270);
+ penpos4(symbolwidth,180);
+ penstroke z1e..z2e..z3e..z4e..cycle;
+ purlbox; endchar;
+
+beginchar("@",wd#,ht#,dp#); "Bead";
+ pickup symbol_pen;
+ z1 = (0.5w, 0.667h);
+ z3 = (x1,-d+h-y1);
+ x2-x4 = y1-y3; 0.5[x2,x4]=0.5w;
+ y2 = y4 = 0.5[y1,y3];
+ fill z1..z2..z3..z4..cycle;
+ unfill fullcircle scaled 0.3333(y1-y3) shifted 0.5[z1,z3];
+ charbox; endchar;
+
+beginchar(ditto,incrwidth(0,0),ht#,dp#); "Wrap and turn";
+ pickup symbol_pen;
+ z0 = 0.4[z1,z3] = 0.5[z2,z4];
+ x3=x1=w/2; y2=y4; y3-y1=x4-x2;
+
+ z5 = z3 + 1.5((x4-x2)/2,0);
+ z6 = z5 + ((x4-x2)/2,0) rotated 150;
+ z7 = z5 + ((x4-x2)/2,0) rotated -150;
+
+ y6 = h-wrapturngap;
+ y1 = -d+wrapturngap;
+
+ top (1-2spiralgap)[z0,z3]+(whatever,symbolwidth) = bot z7;
+
+ symbolpath0 :=
+ (1-2spiralgap)[z0,z2]
+ ..(1-2spiralgap)[z0,z3]
+ ..(1-spiralgap)[z0,z4]
+ ..z1
+ ..z2
+ ..z3{right}--z5;
+ definearrow(symbolpath0)((x4-x2)/2)(symbolpath1);
+ draw symbolpath0;
+ draw symbolpath1;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ nogrid_charbox; endchar;
+beginchar(19,incrwidth(0,0),ht#,dp#); "Reverse wrap and turn";
+ fliphoriz(symbolpic0)(currentpicture);
+ currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ nogrid_charbox; endchar;
+
+ligtable
+ditto:
+ ditto =: 19;
+ligtable
+"-":
+"=":
+ ditto |=: 19;
+
+
+def drawM(expr topheight, bottomheight, mwidth, penwidth) =
+ pickup pensquare scaled penwidth;
+ rt x3 - lft x1 = 1.43 (y7-y1) = mwidth;
+ y1 = y2 = y3;
+ bot y7 = y8 = y9;
+ topheight - y7 = y1-bottomheight;
+ y4 = y10; y5 = y6;
+ y8 - y5 = 0.4(x2 - x1);
+ y8 - y4 = 1.6(y8 - y5);
+ x1 = x7; x5 = x2; x6 = x3;
+ x4 - x1 = x10 - x2 = 0.3penwidth;
+ x8 = 0.6[x1,x2]; x9 - x2 = x8 - x1;
+ x3 - x2 = x2 - x1;
+ x1 = w - x3;
+ penpos1 (penwidth, 0);
+ penpos7 (penwidth, 0);
+ penpos5 (penwidth, 0);
+ penpos6 (penwidth, 0);
+ penpos2 (penwidth, 0);
+ penpos3 (penwidth, 0);
+ penpos4 (penwidth-2(x4-x1), 180);
+ penpos10 (penwidth-2(x4-x1), 180);
+ penpos8 (penwidth, 90);
+ penpos9 (penwidth, 90);
+ %draw z4{up}..z8{right}..z5{down}; draw z10{up}..z9{right}..z6{down};
+ penstroke z1e--z7e;
+ penstroke z4e{up}..z8e..z5e{down}--z2e; penstroke z10e{up}..z9e..z6e{down}--z3e;
+ labels(1,2,3,4,5,6,7,8,9,10,4l,4r);
+enddef;
+
+beginchar("*",wd#,ht#,dp#); "Special instructions";
+ pickup symbol_pen;
+ top z1 = (w/2,h-topgap+o);
+ bot z2 = (w/2, -d+bottomgap-o);
+ z3 - z4 = (z1-z2) rotated 60;
+ z5 - z6 = (z1-z2) rotated 120;
+ 0.5[z3,z4] = 0.5 [z5,z6] = 0.5[z1,z2];
+ for k=1,3,5:
+ z[k]' = 0.25[z[k],z[k+1]];
+ 0.5[z[k+1]',z[k]']=0.5[z1,z2];
+ z[k]'' = 0.5[z[k],z[k+1]];
+ penpos[k]'(symbolwidth, angle (z[k]-z[k+1])+90);
+ penpos[k+1]'(symbolwidth, angle (z[k]-z[k+1])+90);
+ penpos[k]''((1/sqrt(3))*symbolwidth, angle (z[k]-z[k+1])+90);
+ draw z[k]--z[k]'; draw z[k+1]--z[k+1]';
+ penstroke z[k]'e{z[k+1]-z[k]}..z[k]''e..{z[k+1]-z[k]}z[k+1]'e;
+ endfor
+charbox; endchar;
+
+%beginchar("a",wd#,ht#,dp#); "Small bobble";
+% pickup symbol_pen;
+% top z1 = (0.5w, h-small_topgap+o);
+% bot z3 = (0.5w, small_bottomgap-d-o);
+% x2-x4 = y1-y3; 0.5[x2,x4]=0.5w;
+% y2 = y4 = 0.5[y1,y3];
+% pickup pensquare scaled symbolwidth rotated 45;
+% draw z1--z2; draw z2--z3; draw z3--z4; draw z4--z1;
+% drawdot 0.5[z1,z3];
+%charbox; endchar;
+beginchar(0,wd#,ht#,dp#); "Large bobble";
+ pickup symbol_pen;
+ top z0 = (w/2, h-min_topgap) if offset=0: + (0,o) fi;
+ bot z2 = (w/2, -d+min_bottomgap) if offset=0: - (0,o) fi;
+ 0.5[z1,z3] = 0.5[z0,z2];
+ z1-z3 = (z2-z0) rotated 90;
+ draw z0..z1..z2..z3..cycle;
+charbox; endchar;
+
+
+def drawhat(expr linewd) =
+ pickup symbol_pen;
+ top z1 = (w/2, h-min_topgap+o);
+ x3-x1 = x1-x2; y3=y2;
+ x3-x2 = standardheight;
+ y1-y3 = (x1-x2);
+ z3l = z3 + ((linewd/2,0) rotated (angle (z1-z3)-90));
+ z3m = z3 + ((linewd/2,0) rotated (angle (z3-z1)));
+ 0.5[z3l,z3r] = z3;
+ z2l = z2 + ((linewd/2,0) rotated (angle (z2-z1)-90));
+ z2m = z2 + ((linewd/2,0) rotated (angle (z2-z1)));
+ 0.5[z2l,z2r] = z2;
+ z1r = z3r + whatever*(z1-z3);
+ z1r = z2r + whatever*(z2-z1);
+ z1l3-z1 = z3l-z3;
+ z1l2-z1 = z2l-z2;
+ fill z3l---z1l3..z1l2---z2l..z2m..z2r---z1r---z3r..z3m..cycle;
+enddef;
+
+% Increases and decreases
+
+beginchar(1,wd#,ht#,dp#); "Make 1 from N";
+ % Fontforge keeps mangling this symbol, so I'm doing it the slow, hard, but reliable way.
+ drawhat(symbolwidth);
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar(2,wd#,ht#,dp#); "Purl make 1 from N";
+ drawhat(purl_symbolwidth);
+ symbolpic1 := currentpicture; symbolpicwd1 := w;
+ purlbox; endchar;
+beginchar(3,wd#,ht#,dp#); "Make N from 1";
+ flipvert(symbolpic0)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ charbox; endchar;
+beginchar(4,wd#,ht#,dp#); "Purl make N from 1";
+ flipvert(symbolpic1)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd1)/2,0);
+ purlbox; endchar;
+
+beginchar("U",incrwidth(0,1),ht#,dp#); "Cast on";
+ pickup symbol_pen;
+ bot y1 = bot y3 = -d+bottomgap;
+ x1 = 0; x3 = w; x2 = w/2; top y2 = h-topgap;
+ draw z1{right}..z2{left}..z3{right};
+ nogrid_charbox; endchar;
+beginchar("f",decrwidth(1,0),ht#,dp#); "Bind off knitwise";
+ pickup symbol_pen;
+ x3-x1=wd; 0.5[x1,x3]=w/2; x2 = 0.5[x1,x3];
+ y1 = y3 = (h-d)/2; top y2 = h-topgap;
+ bot z4 = (w/2, -d+bottomgap);
+ symbolpath0 := z1..z2{right}..z3;
+ draw symbolpath0;
+ %draw z4--bot z1;
+ nogrid_charbox; endchar;
+beginchar("F",decrwidth(1,0),ht#,dp#); "Bind off purlwise";
+ if fonttype <> purltype:
+ pickup purl_symbol_pen;
+ draw symbolpath0;
+ fi
+ nogrid_charbox; purlfill; endchar;
+beginchar("Z",incrwidth(1,3),ht#,dp#); "Knit one doubly elongated";
+ pickup symbol_pen;
+ 0.5[z1,z7] = top (w/2, -d+min_bottomgap);
+ y1 = y7;
+ x7 - x1 = 0.8(x8 - x0);
+ 0.5[x0,x8] = w/2;
+ y0 = y8 = 0.5[y1,y2];
+ x8 - x0 = y2 - y1;
+ 0.5[z2,z6] = bot (w/2, h-min_topgap);
+ y2 = y6;
+ x6 - x2 = 0.7(x7-x1);
+ 0.5[x3,x5] = w/2;
+ y3 = y5 = 0.2[y1,y2];
+ x5 - x3 = 0.5(x7-x1);
+
+ x4 = w/2; y4 = y2;
+
+ endangle := 110;
+ midtension := 2;
+ sidetension := 2;
+
+ draw
+ z1{dir endangle}
+ ..z0{up}
+ ..z2{right}
+ ..tension sidetension
+ ..z3{left}
+ ..tension midtension
+ ..z4{right}
+ ..tension midtension
+ ..z5{left}
+ ..tension sidetension
+ ..z6{right}
+ ..z8{down}
+ ..z7{dir(-endangle)};
+
+ charbox; endchar;
+
+beginchar("z",incrwidth(1,2),ht#,dp#); "Knit one elongated";
+ pickup symbol_pen;
+ 0.5[z1,z5] = top (w/2, -d+small_bottomgap);
+ y1 = y5;
+ x5 - x1 = 0.8(x6-x0);
+ 0.5[x0,x6] = w/2;
+ y0 = y6 = 0.5[y1,y2];
+ x6 - x0 = y2 - y1;
+ 0.5[z2,z4] = bot (w/2, h-small_topgap);
+ y2 = y4;
+ x4 - x2 = 0.6(x5-x1);
+ x3 = w/2; y3 = 0.2[y1,y2];
+
+ endangle := 110;
+ midtension := 1.5;
+
+ draw
+ z1{dir endangle}..z0{up}..z2{right}..tension midtension..z3{left}
+ ..tension midtension..z4{right}..z6{down}..z5{dir(-endangle)};
+
+ charbox; endchar;
+beginchar("9",incrwidth(1,2),ht#,dp#); "CYCA knit one elongated";
+ pickup symbol_pen;
+ y0l=y0r; y1l=y1r; y2l=y2r;
+ x0r=wd-x0l;
+ x1r=wd-x1l;
+ x2r=wd-x2l;
+ z0l = top rt (mingap-ho,-d+small_bottomgap-o);
+ y1l = bot h-small_topgap;
+ x2r-x2l = y1l-y0l+2(smallgap-mingap-o/2);
+ x1l = 0.23[x2l,x2r];
+ y2l = 0.7[y0l,y1l];
+ draw z0l..tension 3..z1l{left}..z2l{down}..tension 1.5..
+ z2r{up}..z1r{left}..tension 3..z0r;
+ labels(0l,1l,2l,0r,1r,2r);
+ currentpicture := currentpicture shifted ((w-wd)/2,0);
+ charbox; endchar;
+
+
+
+beginchar(25,wd#/2,ht#,dp#); "Left end of a wide increase";
+ pickup pensquare xscaled wideinctip yscaled wideincline;
+ z1 = (w+cableextend,(h-topgap-d+bottomgap)/2);
+ x2 = w/3; top y2 = h-min_topgap+o;
+ fill bot lft z2{down}..bot z1{right}--top z1{left}..top rt z2{up}--top lft z2---cycle;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ leftgrid_charbox; endchar;
+beginchar(22,wd#/2,ht#,dp#); "Extender for a wide increase/decrease";
+ z1 = (w+cableextend,(h-topgap-d+bottomgap)/2);
+ x2 = 0-cableextend; y2 = y1;
+ pickup pensquare scaled wideincline;
+ draw rt z2 -- lft z1;
+ topbotgrid_charbox; endchar;
+beginchar(26,wd#/2,ht#,dp#); "Right end of a wide increase";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0); rightgrid_charbox; endchar;
+beginchar(27,wd#/2,ht#,dp#); "Left end of a wide decrease";
+ flipvert(symbolpic0)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0); leftgrid_charbox; endchar;
+beginchar(28,wd#/2,ht#,dp#); "Right end of a wide decrease";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0); flipvert(currentpicture)(currentpicture); rightgrid_charbox; endchar;
+
+beginchar(29,wd#,ht#,dp#); "Middle of a wide increase";
+ pickup pensquare xscaled wideinctip yscaled wideincline;
+ z1 = (-cableextend,(h-topgap-d+bottomgap)/2);
+ z3 = (w+cableextend,(h-topgap-d+bottomgap)/2);
+ x2 = w/2; bot y2 = -d+min_bottomgap-o;
+ %draw z1{right}..z2{down};
+ fill bot lft z2{up}..bot z1{left}--top z1{right}..top rt z2---bot rt z2--cycle;
+ %draw z3{left}..z2{down};
+ fill bot rt z2{up}..bot z3{right}--top z3{left}..top lft z2---bot lft z2--cycle;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ topbotgrid_charbox;
+ endchar;
+beginchar(30,wd#,ht#,dp#); "Middle of a wide decrease";
+ flipvert(symbolpic0)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ topbotgrid_charbox;
+ endchar;
+
+if 5*wd# < symbolmaxwd#:
+
+beginchar(31,if fonttype = counttype: decrwidth(5,1) else: 5wd# fi,ht#,dp#); "Make 1 from 5";
+ pickup pensquare xscaled wideinctip yscaled wideincline;
+ top z1 = (w/2,h-min_topgap+o);
+ x2 = wd/3; bot y2 = bot y3 = -d+min_bottomgap-o;
+ x3 - x1 = x1 - x2;
+ z4 = 0.5[z1,z2]; z5 = 0.5[z1,z3];
+ %draw z2{up}..z4{right}..z1{up};
+ %draw z3{up}..z5{left}..z1{up};
+
+ fill bot lft z2---top lft z2..top z4{right}..top lft z1{up}--top rt z1---bot rt z1..bot z4{left }..bot rt z2{down}--cycle;
+ fill bot rt z3---top rt z3..top z5{left }..top rt z1{up}--top lft z1---bot lft z1..bot z5{right}..bot lft z3{down}--cycle;
+
+ charbox; endchar;
+fi
+
+beginchar("~",incrwidth(0,0),ht#,dp#); "Empty box (spacer)"; endchar;
+beginchar("`",if fonttype = counttype: 0 else: 0.5wd# fi,ht#,dp#); "Empty box (spacer)"; endchar;
+beginchar("'",if fonttype = counttype: 0 else: 0.5wd# fi,ht#,dp#); "Empty box (spacer)";
+ if fonttype = purltype: fill (0,-d)--(w,-d)--(w,h)--(0,h)--cycle; fi
+ endchar;
+
+
+beginchar("m",incrwidth(0,1),ht#,dp#); "Make one";
+ pickup symbol_pen;
+ drawM(h-topgap, -d+bottomgap, 0.5(h+d),symbolwidth);
+ charbox; endchar;
+beginchar("M",incrwidth(0,1),ht#,dp#); "Make one purlwise";
+ pickup purl_symbol_pen;
+ drawM(h-topgap, -d+bottomgap, 0.5(h+d),purl_symbolwidth);
+ purlbox; endchar;
+
+%def drawB(expr topgap, bottomgap, symbolwidth) =
+% x1 = x2 = x3; x4 = x5 = x6; x7=x8 + 0.05(x7-x1);
+% y1 = y4; y2 = y5; y3 = y6; y7 = 0.5[y1,y2]; y8 = 0.5[y2,y3];
+% top y3 = h-topgap; bot y1 = -d+bottomgap;
+% y2 = 0.51[y1,y3];
+% x7-x1 = 1.3(y2-y1);
+% x7-x6 = 0.7(x7-x1);
+% 0.5[x7,x1]=w/2+ho;
+% z9=z10=z5; z11=rt z2;
+%
+% penpos11(symbolwidth,-90);
+% penpos5(symbolwidth,-90);
+% penpos8(symbolwidth,0);
+% penpos6(symbolwidth,90);
+% penpos2(symbolwidth,180);
+% penpos4(symbolwidth,-90);
+% penpos7(symbolwidth,0);
+% z10l=z5l; z9l=z5r; z10r = 0.4[z5,z5r];
+% z9r-z9l=z10l-z10r;
+% y3r=y6r; y3l=y6l; x3r=x2r=x1r; x3l=x2l=x1l;
+% y1r=y4r; y1l=y4l;
+% penstroke z11e--z5e--z10e{right}..z8e..z6e---z3e--z2e--z1e---z4e..z7e..z9e{left};
+%
+%enddef;
+%
+%
+%beginchar("b",wd#,ht#,dp#); "Knit tbl";
+% pickup symbol_pen;
+% drawB(topgap, bottomgap, symbolwidth);
+% charbox; endchar;
+%beginchar("B",wd#,ht#,dp#); "Purl tbl";
+% pickup purl_symbol_pen;
+% drawB(topgap, bottomgap, purl_symbolwidth);
+% purlbox; endchar;
+
+beginchar("|",if fonttype <> counttype: overlinewd# else: 0 fi,ht#,dp#); "Divider";
+ if (fonttype = foretype) or (fonttype = bothtype):
+ fill(0,-d-gridwidth/2-purlextend)--(0,h+gridwidth/2+purlextend)
+ --(w,h+gridwidth/2+purlextend)--(w,-d-gridwidth/2-purlextend)
+ --cycle;
+ fi
+endchar;
+
+%Twists
+
+path twistpath[];
+
+ pair time;
+
+beginchar("x",incrwidth(0,1),ht#,dp#); "Twist slanting right";
+ pickup symbol_pen;
+ bot lft z0 = (0.5w-0.4 standardheight-ho,-d+small_bottomgap-o);
+ bot rt z4 = (0.5w+0.4 standardheight+ho,-d+small_bottomgap-o);
+ top z2 = (0.5w, h-topgap+o);
+ x3-x1 = 0.8(x0-x4); 0.5[x1,x3] = w/2;
+ y1 = y3 = 0.7[y0,y2];
+ twistpath0:=z0{curl 0.1}..z1{up}..z2..z3{down}..z4{curl 0.1};
+
+ pathdir0 = angle (direction 0 of twistpath0);
+ pathdir4 = angle (direction 4 of twistpath0);
+
+ penpos0(symbolwidth, (pathdir0 + 90));
+ penpos1(symbolwidth, 180);
+ penpos2(symbolwidth, 270);
+ penpos3(symbolwidth, 360);
+ penpos4(symbolwidth, (pathdir4 + 90));
+
+ z5 = z0; z6 = z1;
+ penpos5(eraserwidth, (pathdir0 + 90));
+ penpos6(eraserwidth, 180);
+
+ time := (z5l{direction 0 of twistpath0}..z6l{up}) intersectiontimes
+ (z3l{down}..z4l{direction 4 of twistpath0});
+ twistpath1 := subpath (ypart(time),1) of (z3l{down}..z4l{direction 4 of twistpath0});
+ time := (z5l{direction 0 of twistpath0}..z6l{up}) intersectiontimes
+ (z3r{down}..z4r{direction 4 of twistpath0});
+ twistpath2 := subpath (ypart(time),1) of (z3r{down}..z4r{direction 4 of twistpath0});
+ fill twistpath1 & (point infinity of twistpath1--point infinity of twistpath2)
+ & reverse twistpath 2 &
+ (point 0 of twistpath2--point 0 of twistpath1) & cycle;
+
+ time := (z5r{direction 0 of twistpath0}..z6r{up}) intersectiontimes
+ (z3l{down}..z4l{direction 4 of twistpath0});
+ twistpath1 := subpath (0,ypart(time)) of (z3l{down}..z4l{direction 4 of twistpath0});
+ time := (z5r{direction 0 of twistpath0}..z6r{up}) intersectiontimes
+ (z3r{down}..z4r{direction 4 of twistpath0});
+ twistpath2:= subpath (0,ypart(time)) of (z3r{down}..z4r{direction 4 of twistpath0});
+ fill twistpath1 & (point infinity of twistpath1--point infinity of twistpath2)
+ & reverse twistpath 2 &
+ (point 0 of twistpath2--point 0 of twistpath1) & cycle;
+
+ penstroke z0e{direction 0 of twistpath0}..
+ z1e{up}..z2e{left}..z3e{down}
+ ;%..z4e{direction 4 of twistpath0};
+
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ labels(0,1,2,3,4,5);
+ charbox; endchar;
+
+ numeric t[];
+
+beginchar("t",incrwidth(0,1),ht#,dp#); "Twist slanting left";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+beginchar("X",incrwidth(0,1),ht#,dp#); "Purl right twist";
+ currentpicture := symbolpic0; currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ purlbox; endchar;
+beginchar("T",incrwidth(0,1),ht#,dp#); "Purl left twist";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ purlbox; endchar;
+
+beginchar("b",wd#,ht#,dp#); "Right upside-down twist";
+ flipvert(symbolpic0)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar("q",wd#,ht#,dp#); "Left upside-down twist";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar("Q",wd#,ht#,dp#); "Purl right upside-down twist";
+ currentpicture := symbolpic0; currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ purlbox; endchar;
+beginchar("B",wd#,ht#,dp#); "Purl left upside-down twist";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ purlbox; endchar;
+
+%2/1 increases and decreases
+
+def drawSSK(expr topheight,bottom) =
+ bot rt z1 = (0.5w+0.5 (topheight-bottom)+ho,bottom-o);
+ top lft z2 = (0.5w-0.5 (topheight-bottom), topheight+o);
+ bot lft z3 = (0.5w-0.5 (topheight-bottom), bottom-o);
+ symbolpath0 := z1--z2--z3;
+ draw symbolpath0;
+enddef;
+
+beginchar("<",decrwidth(2,1),ht#,dp#); "SSK or left-slant cable";
+ pickup symbol_pen;
+ drawSSK(h-topgap,-d+bottomgap);
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar(">",decrwidth(2,1),ht#,dp#); "k2tog or right-slant cable";
+ fliphoriz(symbolpic0)(currentpicture);
+ currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+beginchar("0",incrwidth(1,2),ht#,dp#); "Make 2 from 1";
+ flipvert(symbolpic0)(currentpicture);
+ charbox; endchar;
+beginchar("#",incrwidth(1,2),ht#,dp#); "Make 2 from 1";
+ flipvert(symbolpic0)(currentpicture);
+ fliphoriz(currentpicture)(currentpicture);
+ charbox; endchar;
+
+beginchar(";",decrwidth(2,1),ht#,dp#); "P2tog";
+ pickup purl_symbol_pen;
+ draw symbolpath0;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ purlbox; endchar;
+beginchar(":",decrwidth(2,1),ht#,dp#); "SSP";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ purlbox; endchar;
+
+beginchar("j",incrwidth(0,1),ht#,dp#); "Lifted increase slanting left";
+ pickup symbol_pen;
+ top lft z1 = (0.5w-0.5 standardheight-ho,h-topgap+o);
+ bot rt z2 = (0.5w+0.5 standardheight, -d+bottomgap-o);
+ symbolpath0 := z2--z1;
+ definearrow(symbolpath0)((y1-y2)/3)(symbolpath1);
+ draw symbolpath0;
+ draw symbolpath1;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar("i",incrwidth(0,1),ht#,dp#); "Lifted increase slanting right";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+beginchar("J",incrwidth(0,1),ht#,dp#); "Purl increase slanting right";
+ pickup purl_symbol_pen;
+ draw symbolpath0;
+ draw symbolpath1;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ purlbox; endchar;
+beginchar("I",incrwidth(0,1),ht#,dp#); "Purl increase slanting left";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ purlbox; endchar;
+
+beginchar("(",wd#,ht#,dp#); "Left-slanting line";
+ pickup symbol_pen;
+ top lft z1 = (0.5w-0.5 standardheight-ho,h-topgap+o);
+ bot rt z2 = (0.5w+0.5 standardheight, -d+bottomgap-o);
+ symbolpath0 := z2--z1;
+ draw symbolpath0;
+ charbox; endchar;
+beginchar(")",wd#,ht#,dp#); "Right-slanting line";
+ pickup symbol_pen;
+ draw symbolpath0;
+ fliphoriz(currentpicture)(currentpicture);
+ charbox; endchar;
+
+beginchar("y",incrwidth(1,2),ht#,dp#); "Knit front and back";
+ pickup symbol_pen;
+ bot lft z1 = (0.5w-0.495 Vwidth-ho,-d+bottomgap-o);
+ top rt z2 = (0.5w+0.495 Vwidth+ho,h-topgap+o);
+ bot rt z3 = (0.5w+0.495 Vwidth+ho,-d+bottomgap-o);
+ top lft z4 = (0.5w-0.495 Vwidth-ho,h-topgap+o);
+ % For some reason, mf2pt1 doesn't like it if I use 0.5 Vwidth
+ z5 = whatever[z1,z2] = whatever[z3,z4];
+ draw z1--z2;
+ draw z4--z5;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar("u",incrwidth(1,2),ht#,dp#); "Knit back and front";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+beginchar("4",decrwidth(2,1),ht#,dp#); "Alternative SSK";
+ flipvert(symbolpic0)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ charbox; endchar;
+beginchar("5",decrwidth(2,1),ht#,dp#); "Alternative K2tog";
+ flipvert(symbolpic0)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ fliphoriz(currentpicture)(currentpicture);
+ charbox; endchar;
+
+
+
+beginchar("7",incrwidth(1,2),ht#,dp#); "Alt front and back";
+ pickup symbol_pen;
+ x0 = x1 = x2;
+ bot y0 = -d+small_bottomgap;
+ top y1 = h-small_topgap;
+ 0.5[x3+ho,x0] = w/2;
+ z3 = z2 + whatever*(-1.2,1);
+ y3 = 0.9[y0,y1];
+ y2 = 0.4[y0,y1];
+ draw z2--z3; draw z1--z0;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar("8",incrwidth(1,2),ht#,dp#); "Alt back and front";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+
+
+beginchar("v",incrwidth(1,2),ht#,dp#); "Generic make 2 from 1";
+ pickup symbol_pen;
+ top rt z1 = (0.5w+0.5 Vwidth+ho,h-topgap+o);
+ bot y2 = -d+bottomgap-o; x2 = 0.5[x1,x3];
+ top lft z3 = (0.5w-0.5 Vwidth-ho,h-topgap+o);
+ symbolpath0 := z1--z2--z3;
+ draw symbolpath0;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ charbox; endchar;
+beginchar("V",incrwidth(1,2),ht#,dp#); "Purl make 2 from 1";
+ pickup purl_symbol_pen;
+ draw symbolpath0;
+ symbolpic1 := currentpicture; symbolpicwd1 := w;
+ purlbox; endchar;
+beginchar("6",wd#,ht#,dp#); "V with bar";
+ pickup symbol_pen;
+ currentpicture := symbolpic0; currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ 0.5[x0,x1]=w/2;
+ y0=y1=0.6[-d+bottomgap,h-topgap];
+ rt x1-lft x0 = Wwidth;
+ draw z0--z1;
+ charbox; endchar;
+
+beginchar("!",decrwidth(2,1),ht#,dp#); "Make 1 from 2";
+ flipvert(symbolpic0)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ charbox; endchar;
+beginchar("2",decrwidth(2,1),ht#,dp#); "Make 1 from 2 purlwise";
+ flipvert(symbolpic1)(currentpicture); currentpicture := currentpicture shifted ((w-symbolpicwd1)/2,0);
+ purlbox; endchar;
+
+%Double decreases and increases
+
+beginchar("w",incrwidth(1,3),ht#,dp#); "make 3 from 1";
+ pickup symbol_pen;
+ top lft z1 = (0.5w-0.5 Wwidth-ho,h-small_topgap+o);
+ bot z2 = (0.5w,-d+small_bottomgap-o);
+ top rt z3 = (0.5w+0.5 Wwidth+ho, h-small_topgap+o);
+ z4 = 0.5[z1,z3];
+ symbolpath0 := z1--z2--z3;
+ draw symbolpath0;
+ symbolpath1 := z2--z4;
+ draw symbolpath1;
+ charbox; endchar;
+beginchar("W",incrwidth(1,3),ht#,dp#); "Purl make 3 from 1";
+ pickup purl_symbol_pen;
+ draw symbolpath0; draw symbolpath1;
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ purlbox; endchar;
+beginchar("Y",incrwidth(1,3),ht#,dp#); "Make 3 from 1 with YO center";
+ pickup symbol_pen;
+ draw symbolpath0;
+ top z4 = (0.5w, h-small_topgap+o);
+ bot z5 = z4 - (0, 0.5Wwidth); %Better way?
+ z6-z7 = (z4-z5) rotated 90; 0.5[z6,z7]=0.5[z4,z5];
+ draw z4..z6..z5..z7..cycle;
+ charbox; endchar;
+
+beginchar("E",incrwidth(1,3),ht#,dp#); "make 3 from 1 with purl center";
+ pickup symbol_pen;
+ if (fonttype = foretype) or (fonttype = bothtype):
+ currentpicture := symbolpic0; currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ fi
+ charbox;
+ if (fonttype = purltype):
+ z1 = point 0 of symbolpath0;
+ z2 = point 1 of symbolpath0;
+ z3 = point 2 of symbolpath0;
+ fill z1--z2--z3--cycle;
+ fi
+ endchar;
+
+beginchar("&",incrwidth(1,3),ht#,dp#); "make 3 from 1 with knit center";
+ pickup symbol_pen;
+ if (fonttype = foretype) or (fonttype = bothtype):
+ currentpicture := symbolpic0; currentpicture := currentpicture shifted ((w-symbolpicwd0)/2,0);
+ fi
+ charbox;
+ if (fonttype = purltype):
+ z1 = point 0 of symbolpath0;
+ z2 = point 1 of symbolpath0;
+ z3 = point 2 of symbolpath0;
+ fill z1--z2--z3--%z1--(0,h)--
+ (w,h)--(w,-d)--(0,-d)--(0,h)--cycle;
+ fi
+ endchar;
+
+beginchar("A",decrwidth(3,1),ht#,dp#); "Make 1 from 3";
+ pickup symbol_pen;
+ bot lft z1 = (0.5w-0.5 biggerheight-ho,-d+small_bottomgap-o);
+ bot rt z3 = (0.5w+0.5 biggerheight+ho,-d+small_bottomgap-o);
+ top z2 = (xpart z4, h-small_topgap+o);
+ z4 = 0.5[z1,z3];
+ symbolpath0 := z1--z2--z3;
+ symbolpath1 := z2--z4;
+ draw symbolpath0;
+ draw symbolpath1;
+ labels(1,2,3,4);
+ charbox; endchar;
+beginchar("3",decrwidth(3,1),ht#,dp#); "Purl make 1 from 3";
+ pickup purl_symbol_pen;
+ draw symbolpath0;
+ draw symbolpath1;
+ purlbox; endchar;
+
+beginchar("R",decrwidth(3,1),ht#,dp#); "k3tog";
+ pickup symbol_pen;
+ finesymbolwidth := 4/7symbolwidth;
+ top rt z0 = (0.5w+0.5 biggerheight, h-small_topgap+o);
+ bot lft z1 = (0.5w-0.5 biggerheight-ho,-d+small_bottomgap-o);
+ bot rt z3 = (0.5w+0.5 biggerheight, -d+small_bottomgap-o);
+
+ % The line z0--z4 is halfway between z0--z1 and z0--z3 as angles
+ z4 = whatever[z1,z3];
+ z4 = z0+whatever*(dir 0.5[angle(z1-z0),angle(z3-z0)]);
+ z5 = 0.5[z1,z3];
+
+ z2 = 0.5[z4,z5];
+
+ z1' = 0.5[z1,z0];
+ z3' = 0.2[z3,z0];
+ z2'' = z0;
+ z2' = 0.2[z2,z2''];
+ penpos1(symbolwidth, -90+angle (z0-z1));
+ penpos1'(symbolwidth, -90+angle (z0-z1));
+ penpos3(symbolwidth, 0);
+ penpos3'(symbolwidth, 0);
+
+ z1''l = whatever[z1l,z1'l];
+ z1''l = z0 + whatever*((z1-z0) rotated 90);
+ penpos1''(finesymbolwidth, -90+angle (z0-z1));
+
+ z3''r = (x3r,y0);
+ penpos3''(finesymbolwidth, 0);
+
+ penpos2(symbolwidth, -90+angle (z2''-z2));
+ penpos2'(symbolwidth, -90+angle (z2''-z2));
+ penpos2''(finesymbolwidth, -90+angle (z2''-z2));
+
+ symbolpath1 := z1''l..z1'l---z1l..z1r---z1'r..z1''r;
+ symbolpath2 := z2''l..z2'l---z2l..z2r---z2'r..z2''r;
+ symbolpath3 := z3''l..z3'l---z3l..z3r---z3'r..z3''r;
+ % Not penstroke because we want the endpoints to be rounded
+
+ numeric t[];
+ (t12,t21) = symbolpath1 intersectiontimes symbolpath2;
+ (t23,t32) = symbolpath2 intersectiontimes symbolpath3;
+ fill (subpath(0,t12) of symbolpath1
+ -- subpath (t21,t23) of symbolpath2
+ -- subpath (t32,infinity) of symbolpath3
+ -- z3''r{z3''r-z3'r}..{z1-z0}cycle
+ );
+ %pickup pencircle scaled 0.01pt;
+ %draw symbolpath2; draw symbolpath3;
+
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ labels(1,2,3,1',2',3',1r,1l,2r,2l,3r,3l,1'r,1'l,2'r,2'l,3'r,3'l, 1''r,1''l);
+
+ symbolpath0 := z1--z0--z3--z2;
+ charbox; endchar;
+beginchar("L",decrwidth(3,1),ht#,dp#); "SSSK";
+
+ %draw subpath(0,2) of symbolpath0;
+ %draw point 3 of symbolpath0--point 1 of symbolpath0;
+ fliphoriz(symbolpic0)(currentpicture);
+ %currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+beginchar("r",decrwidth(3,1),ht#,dp#); "LRC";
+ pickup symbol_pen;
+ bot lft z1 = (0.5w-0.5 biggerheight-ho,-d+small_bottomgap-o);
+ top rt z2 = (0.5w+0.5 biggerheight+ho,h-small_topgap+o);
+ bot rt z3 = (0.5w+0.5 biggerheight+ho,-d+small_bottomgap-o);
+ top lft z4 = (0.5w-0.5 biggerheight-ho,h-small_topgap+o);
+ x5 = 0.5w; y5 = 0.53[y1,y4];
+ x6=x5; y6=y1;
+ draw z1..z5..z2;
+ draw z3--z5;
+ draw z5--z6;
+
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ labels(1,2,3,4,5,6,7);
+ charbox; endchar;
+beginchar("l",decrwidth(3,1),ht#,dp#); "RLC";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+beginchar("a",decrwidth(3,1),ht#,dp#); "LRC";
+ pickup symbol_pen;
+ bot lft z1 = (0.5w-0.5 biggerheight-ho,-d+small_bottomgap-o);
+ top rt z2 = (0.5w+0.5 biggerheight+ho,h-small_topgap+o);
+ bot rt z3 = (0.5w+0.5 biggerheight+ho,-d+small_bottomgap-o);
+ top lft z4 = (0.5w-0.5 biggerheight-ho,h-small_topgap+o);
+ x5 = 0.5w; y5 = 0.6[y1,y4];
+ top z6 = (0.5w, h-small_topgap+o);
+ bot z7 = (0.5w, -d+small_bottomgap-o);
+ draw z1--z5;
+ draw z3--z5;
+ draw z6--z7;
+ charbox; endchar;
+
+% Rownumber triangles (modified from manfnt.mf)
+
+trianglecharwd# = 19/3 pt#;
+
+beginchar("}", trianglecharwd#, 6.25pt#, 0); "Triangle pointing right";
+ if (fonttype = foretype) or (fonttype = bothtype):
+ x1=x2=w-x3-max(purlextend, 0.5gridwidth)=4/3pt; y3=.5h;
+ y1-y3=y3-y2;
+ y1-y2 = 1.3*(x3-x1);
+ % For an equilateral triangle, use 2/sqrt 3 = 1.1547
+ fill z1--z2--z3--cycle;
+ fi
+ symbolpic0 := currentpicture;
+ labels(1,2,3); endchar;
+
+beginchar("{", trianglecharwd#, 6.25pt#, 0); "Triangle pointing left";
+ fliphoriz(symbolpic0)(currentpicture);
+ endchar;
+
+
+% Wrapped stitches
+
+beginchar("?",wd#,ht#,dp#); "Left end of wrapped stitches";
+ pickup symbol_pen;
+ x0r = x1r = x2r = w;
+ y0r-y1r = y1r-y2r;
+ y0m=y0r; y1m=y1r; y2m=y2r;
+ y0l-y0r = y1l-y1r = y2l-y2r;
+
+ if gridfont:
+ h-small_topgap+o = top y0l;
+ bot y2r = small_bottomgap-d;
+ y1l = 2/3[y1r,y0r];
+ x2l+ho = h-y0l+o;
+ x0m = 0.4[x0l,x0r];
+ x2m = 0.5[x2l,x2r];
+ z0l = z2l + whatever*(1,3);
+ wraplines := 3;
+ else:
+ h-small_topgap-top y0r = bot y2r-small_bottomgap+d;
+ if (topgap>standardgap) or (bottomgap>standardgap):
+ wraplines := 2; else: wraplines:=3; fi
+ if wraplines = 2:
+ y0r - y2r = 1.5(h-small_topgap-top y0r);
+ lft x2l+ho = smallgap;
+ else:
+ y0r - y1r = 1.5(h-small_topgap-top y0r);
+ lft x2l+ho = mingap;
+ fi
+ x0m = 0.2[x0l,x0r];
+ x2m = 0.3[x2l,x2r];
+ y0l = 0.6[y0r,h-small_topgap+o];
+ z0l = z2l + whatever*(1,4);
+ fi
+
+ z1l=whatever[z0l,z2l];
+ z1m=whatever[z0m,z2m];
+ pickup pensquare scaled symbolwidth;
+ draw lft z0r--rt (0,y0r);
+ if wraplines=3: draw lft z1r--rt (0,y1r); fi
+ draw lft z2r--rt (0,y2r);
+ symbolpic1 := currentpicture; symbolpicwd1 := w;
+ currentpicture := nullpicture;
+ draw lft z0r---rt z0m;
+ if wraplines=3: draw lft z1r---rt z1m; fi
+ draw lft z2r---rt z2m;
+ pickup symbol_pen;
+ draw z0m{left}..z0l;
+ if wraplines=3: draw z1m{left}..z1l; fi
+ draw z2m{left}..z2l;
+
+ if gridfont: else:
+ draw bot (w/2,h-small_topgap+o) -- top (w/2, -d+small_bottomgap-o);
+ fi
+
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ labels(0r,0m,0l,1r,1m,1l,2r,2m,2l);
+ charbox; endchar;
+
+beginchar(23,wd#,ht#,dp#); "Middle of wrapped stitches";
+ pickup symbol_pen;
+ currentpicture := symbolpic1; currentpicture := currentpicture shifted ((w-symbolpicwd1)/2,0);
+ if gridfont: else:
+ draw bot (w/2,h-small_topgap+o) -- top (w/2, -d+small_bottomgap-o);
+ fi
+ charbox; endchar;
+beginchar(24,wd#,ht#,dp#); "Right end of wrapped stitches";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+ligtable "?":
+ "?" |=: 24;
+ligtable 24:
+ "?" |=: 24,
+ 24 =:| 23;
+
+beginchar("1",wd#,ht#,dp#); "Left end of single-wrapped stitches";
+ pickup symbol_pen;
+ x1r=w;
+ y1m=y1r;
+
+ if gridfont:
+ if wd>ht+dp:
+ y1l-y1r = (h+d)/3;
+ else:
+ y1l-y1r = (h+d)/4;
+ fi
+ else:
+ y1l-y1r = (h+d)/5;
+ fi
+ x1m = 0.1[x1r,x1l];
+ h-topgap+o-y1l = 1/2(y1r+d-bottomgap);
+ rt x1l+ho = standardgap;
+ wraplines := 1;
+ if y1r<bottomgap-d: message("Your single-wrapped stitch symbol is too tall."); fi
+
+ pickup pensquare scaled symbolwidth;
+ draw lft z1r--rt (0,y1r);
+ symbolpic1 := currentpicture; symbolpicwd1 := w;
+ currentpicture := nullpicture;
+ draw lft z1r---rt z1m;
+ pickup symbol_pen;
+ draw z1m{left}..z1l;
+
+ if gridfont: else:
+ draw bot (w/2,h-topgap+o) -- top (w/2, -d+bottomgap-o);
+ fi
+
+ symbolpic0 := currentpicture; symbolpicwd0 := w;
+ labels(1r,1m,1l);
+ charbox; endchar;
+
+beginchar(17,wd#,ht#,dp#); "Middle of wrapped stitches";
+ pickup symbol_pen;
+ currentpicture := symbolpic1; currentpicture := currentpicture shifted ((w-symbolpicwd1)/2,0);
+ if gridfont: else:
+ draw bot (w/2,h-small_topgap+o) -- top (w/2, -d+small_bottomgap-o);
+ fi
+ charbox; endchar;
+beginchar(18,decrwidth(1,0),ht#,dp#); "Right end of wrapped stitches";
+ fliphoriz(symbolpic0)(currentpicture); currentpicture := currentpicture shifted (-(w-symbolpicwd0)/2,0);
+ charbox; endchar;
+
+ligtable "1":
+ "1" |=: 18;
+ligtable 18:
+ "1" |=: 18,
+ 18 =:| 17;
+
+% Outlines
+
+if gridfont:
+
+beginchar(5,wd#,ht#,dp#); "Top and bottom outlines";
+ topbotgrid_charbox; endchar;
+
+beginchar(6,0,ht#,dp#); "Vertical grid line";
+ pickup pensquare scaled gridwidth;
+ if (fonttype = gridtype) or (fonttype = bothtype):
+ draw (0,-d)--(0,h);
+ fi
+endchar;
+
+fi
+
diff --git a/fonts/knitting/fonts/source/knitg_sc_in.mf b/fonts/knitting/fonts/source/knitg_sc_in.mf
new file mode 100644
index 0000000000..c5df48332b
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitg_sc_in.mf
@@ -0,0 +1,24 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = counttype; % Count stitches only -- don't draw anything
+
+def incrwidth (expr stsin, stsout) = stsin*wd# enddef;
+def decrwidth (expr stsin, stsout) = stsin*wd# enddef;
+boolean incrwidthdefined; incrwidthdefined = true;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-grid-incount";
+fi
+
+string Vtitle; Vtitle := "Knit grid font for checking stitch counts";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
diff --git a/fonts/knitting/fonts/source/knitg_sc_out.mf b/fonts/knitting/fonts/source/knitg_sc_out.mf
new file mode 100644
index 0000000000..3aa0c481f8
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitg_sc_out.mf
@@ -0,0 +1,24 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = counttype; % Count stitches only -- don't draw anything
+
+def incrwidth (expr stsin, stsout) = stsout*wd# enddef;
+def decrwidth (expr stsin, stsout) = stsout*wd# enddef;
+boolean incrwidthdefined; incrwidthdefined = true;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-grid-outcount";
+fi
+
+string Vtitle; Vtitle := "Knit grid font for checking stitch counts";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
diff --git a/fonts/knitting/fonts/source/knitgg.mf b/fonts/knitting/fonts/source/knitgg.mf
new file mode 100644
index 0000000000..329b3d60df
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitgg.mf
@@ -0,0 +1,23 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+slantcutoff = 2; % Draw slant lines if there are 1 or 2 background cables
+fonttype = gridtype; % Show grid only
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-grid-grid";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitgn.mf b/fonts/knitting/fonts/source/knitgn.mf
new file mode 100644
index 0000000000..0b61cc263c
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitgn.mf
@@ -0,0 +1,22 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = foretype; % Show symbols only - no grid
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-grid-foreground";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitgp.mf b/fonts/knitting/fonts/source/knitgp.mf
new file mode 100644
index 0000000000..37102efd20
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitgp.mf
@@ -0,0 +1,22 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = purltype; % Gray purl background
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-grid-purl";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitmg.mf b/fonts/knitting/fonts/source/knitmg.mf
new file mode 100644
index 0000000000..c02a442a5f
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitmg.mf
@@ -0,0 +1,22 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = gridtype; % Show grid only
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-mixed-grid";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid and stylized cables";
+
+input knit_symbols;
+
+input knit_nogrid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitml.mf b/fonts/knitting/fonts/source/knitml.mf
new file mode 100644
index 0000000000..8fc8642616
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitml.mf
@@ -0,0 +1,27 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+boolean debugcables; debugcables := false;
+fonttype = foretype; % Show symbols
+
+bottomgap# = standardgap#;
+topgap# = ht#-topcableheight#+cablevertgap#;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier :="KnittingSymbols-nogrid-lowered";
+fi
+
+string Vtitle; Vtitle := "Knit font, grid and stylized cable symbols";
+
+input knit_symbols;
+
+pickup symbol_pen;
+
+input knit_nogrid_cables;
+
+
+end
diff --git a/fonts/knitting/fonts/source/knitmn.mf b/fonts/knitting/fonts/source/knitmn.mf
new file mode 100644
index 0000000000..c3832f7582
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitmn.mf
@@ -0,0 +1,22 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = foretype; % Show symbols only - no grid
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-mixed-foreground";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid and stylized cables";
+
+input knit_symbols;
+
+input knit_nogrid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitmp.mf b/fonts/knitting/fonts/source/knitmp.mf
new file mode 100644
index 0000000000..f7cce6c220
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitmp.mf
@@ -0,0 +1,23 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+boolean gridcables; gridcables := false;
+fonttype = purltype; % Gray purl background
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-mixed-purl";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid and stylized cables";
+
+input knit_symbols;
+
+input knit_nogrid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitmr.mf b/fonts/knitting/fonts/source/knitmr.mf
new file mode 100644
index 0000000000..fb8ec62038
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitmr.mf
@@ -0,0 +1,27 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+boolean debugcables; debugcables := false;
+fonttype = foretype; % Show symbols
+
+bottomgap# = dp#+botcableheight#+cablevertgap#;
+topgap# = standardgap#;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-mixed-raised";
+fi
+
+string Vtitle; Vtitle := "Knit font, grid and stylized cable symbols";
+
+input knit_symbols;
+
+pickup symbol_pen;
+
+input knit_nogrid_cables;
+
+
+end
diff --git a/fonts/knitting/fonts/source/knitn_sc_in.mf b/fonts/knitting/fonts/source/knitn_sc_in.mf
new file mode 100644
index 0000000000..2d66d3ddff
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitn_sc_in.mf
@@ -0,0 +1,24 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := false;
+fonttype = counttype;
+
+def incrwidth (expr stsin, stsout) = stsin*wd# enddef;
+def decrwidth (expr stsin, stsout) = stsin*wd# enddef;
+boolean incrwidthdefined; incrwidthdefined = true;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-nogrid-incount";
+fi
+
+string Vtitle; Vtitle := "Knit nogrid font for checking stitch counts";
+
+input knit_symbols;
+
+input knit_nogrid_cables;
+
+end
diff --git a/fonts/knitting/fonts/source/knitn_sc_out.mf b/fonts/knitting/fonts/source/knitn_sc_out.mf
new file mode 100644
index 0000000000..1f5b40fcfa
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitn_sc_out.mf
@@ -0,0 +1,24 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := false;
+fonttype = counttype;
+
+def incrwidth (expr stsin, stsout) = stsout*wd# enddef;
+def decrwidth (expr stsin, stsout) = stsout*wd# enddef;
+boolean incrwidthdefined; incrwidthdefined = true;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-nogrid-outcount";
+fi
+
+string Vtitle; Vtitle := "Knit nogrid font for checking stitch counts";
+
+input knit_symbols;
+
+input knit_nogrid_cables;
+
+end
diff --git a/fonts/knitting/fonts/source/knitnl.mf b/fonts/knitting/fonts/source/knitnl.mf
new file mode 100644
index 0000000000..0097ee88ad
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitnl.mf
@@ -0,0 +1,27 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := false;
+boolean debugcables; debugcables := false;
+fonttype = foretype; % Show symbols
+
+bottomgap# = standardgap#;
+topgap# = ht#-topcableheight#+cablevertgap#;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier :="KnittingSymbols-nogrid-lowered";
+fi
+
+string Vtitle; Vtitle := "Knit font, no grid";
+
+input knit_symbols;
+
+pickup symbol_pen;
+
+input knit_nogrid_cables;
+
+
+end
diff --git a/fonts/knitting/fonts/source/knitnn.mf b/fonts/knitting/fonts/source/knitnn.mf
new file mode 100644
index 0000000000..6667fc5da7
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitnn.mf
@@ -0,0 +1,20 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := false;
+fonttype = foretype; % Show symbols
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-nogrid-foreground";
+fi
+
+string Vtitle; Vtitle := "Knit font, no grid";
+
+input knit_symbols;
+
+input knit_nogrid_cables;
+
+end
diff --git a/fonts/knitting/fonts/source/knitnp.mf b/fonts/knitting/fonts/source/knitnp.mf
new file mode 100644
index 0000000000..61da735107
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitnp.mf
@@ -0,0 +1,23 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := false;
+fonttype = purltype; % Gray purl background
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-nogrid-purl";
+fi
+
+string Vtitle; Vtitle := "Knit font, no grid";
+
+input knit_symbols;
+
+pickup symbol_pen;
+
+input knit_nogrid_cables;
+
+
+end
diff --git a/fonts/knitting/fonts/source/knitnr.mf b/fonts/knitting/fonts/source/knitnr.mf
new file mode 100644
index 0000000000..5d30c8d129
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitnr.mf
@@ -0,0 +1,27 @@
+% Date: 2019/04/05
+
+mode_setup;
+
+boolean gridfont; gridfont := false;
+boolean debugcables; debugcables := false;
+fonttype = foretype; % Show symbols
+
+bottomgap# = dp#+botcableheight#+cablevertgap#;
+topgap# = standardgap#;
+
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-nogrid-raised";
+fi
+
+string Vtitle; Vtitle := "Knit font, no grid";
+
+input knit_symbols;
+
+pickup symbol_pen;
+
+input knit_nogrid_cables;
+
+
+end
diff --git a/fonts/knitting/fonts/source/knitwg.mf b/fonts/knitting/fonts/source/knitwg.mf
new file mode 100644
index 0000000000..7af89fe103
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitwg.mf
@@ -0,0 +1,23 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = gridtype; % Show grid only
+
+wd# = widewd#;
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-wide-grid";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitwn.mf b/fonts/knitting/fonts/source/knitwn.mf
new file mode 100644
index 0000000000..4c1ac2266e
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitwn.mf
@@ -0,0 +1,23 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = foretype; % Show symbols only - no grid
+
+wd# = widewd#;
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-wide-foreground";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/source/knitwp.mf b/fonts/knitting/fonts/source/knitwp.mf
new file mode 100644
index 0000000000..abe4307ac4
--- /dev/null
+++ b/fonts/knitting/fonts/source/knitwp.mf
@@ -0,0 +1,23 @@
+% Date: 2010/08/10
+
+mode_setup;
+
+boolean gridfont; gridfont := true;
+fonttype = purltype; % Gray purl background
+
+wd# = widewd#;
+input knit_dimens;
+
+if known ps_output:
+ font_identifier := "KnittingSymbols-wide-purl";
+fi
+
+string Vtitle; Vtitle := "Knit font with grid";
+
+input knit_symbols;
+
+input knit_grid_cables;
+
+end
+
+
diff --git a/fonts/knitting/fonts/tfm/knitg_sc_in.tfm b/fonts/knitting/fonts/tfm/knitg_sc_in.tfm
new file mode 100644
index 0000000000..13cc414a54
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitg_sc_in.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitg_sc_out.tfm b/fonts/knitting/fonts/tfm/knitg_sc_out.tfm
new file mode 100644
index 0000000000..a785635cc9
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitg_sc_out.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitgg.tfm b/fonts/knitting/fonts/tfm/knitgg.tfm
new file mode 100644
index 0000000000..b21143314d
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitgg.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitgn.tfm b/fonts/knitting/fonts/tfm/knitgn.tfm
new file mode 100644
index 0000000000..b21143314d
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitgn.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitgp.tfm b/fonts/knitting/fonts/tfm/knitgp.tfm
new file mode 100644
index 0000000000..b21143314d
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitgp.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitmg.tfm b/fonts/knitting/fonts/tfm/knitmg.tfm
new file mode 100644
index 0000000000..67daa9dfc8
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitmg.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitml.tfm b/fonts/knitting/fonts/tfm/knitml.tfm
new file mode 100644
index 0000000000..e284b443bc
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitml.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitmn.tfm b/fonts/knitting/fonts/tfm/knitmn.tfm
new file mode 100644
index 0000000000..cf308be91f
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitmn.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitmp.tfm b/fonts/knitting/fonts/tfm/knitmp.tfm
new file mode 100644
index 0000000000..5e28f762ca
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitmp.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitmr.tfm b/fonts/knitting/fonts/tfm/knitmr.tfm
new file mode 100644
index 0000000000..c24600544b
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitmr.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitn_sc_in.tfm b/fonts/knitting/fonts/tfm/knitn_sc_in.tfm
new file mode 100644
index 0000000000..2736a0c7fc
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitn_sc_in.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitn_sc_out.tfm b/fonts/knitting/fonts/tfm/knitn_sc_out.tfm
new file mode 100644
index 0000000000..e7ebab3211
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitn_sc_out.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitnl.tfm b/fonts/knitting/fonts/tfm/knitnl.tfm
new file mode 100644
index 0000000000..2c07d5a8f9
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitnl.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitnn.tfm b/fonts/knitting/fonts/tfm/knitnn.tfm
new file mode 100644
index 0000000000..1f12e78000
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitnn.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitnp.tfm b/fonts/knitting/fonts/tfm/knitnp.tfm
new file mode 100644
index 0000000000..b4fa72e03d
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitnp.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitnr.tfm b/fonts/knitting/fonts/tfm/knitnr.tfm
new file mode 100644
index 0000000000..f27bf5875b
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitnr.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitwg.tfm b/fonts/knitting/fonts/tfm/knitwg.tfm
new file mode 100644
index 0000000000..35078f184a
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitwg.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitwn.tfm b/fonts/knitting/fonts/tfm/knitwn.tfm
new file mode 100644
index 0000000000..35078f184a
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitwn.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/tfm/knitwp.tfm b/fonts/knitting/fonts/tfm/knitwp.tfm
new file mode 100644
index 0000000000..35078f184a
--- /dev/null
+++ b/fonts/knitting/fonts/tfm/knitwp.tfm
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitg_sc_in.pfb b/fonts/knitting/fonts/type1/knitg_sc_in.pfb
new file mode 100644
index 0000000000..3816553bed
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitg_sc_in.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitg_sc_out.pfb b/fonts/knitting/fonts/type1/knitg_sc_out.pfb
new file mode 100644
index 0000000000..654b8cc935
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitg_sc_out.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitgg.pfb b/fonts/knitting/fonts/type1/knitgg.pfb
new file mode 100644
index 0000000000..51f0f871d8
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitgg.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitgn.pfb b/fonts/knitting/fonts/type1/knitgn.pfb
new file mode 100644
index 0000000000..f7b2e08583
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitgn.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitgp.pfb b/fonts/knitting/fonts/type1/knitgp.pfb
new file mode 100644
index 0000000000..3ea57a2dab
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitgp.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitmg.pfb b/fonts/knitting/fonts/type1/knitmg.pfb
new file mode 100644
index 0000000000..028fdce858
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitmg.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitml.pfb b/fonts/knitting/fonts/type1/knitml.pfb
new file mode 100644
index 0000000000..3bf9a5664a
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitml.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitmn.pfb b/fonts/knitting/fonts/type1/knitmn.pfb
new file mode 100644
index 0000000000..436adc7c41
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitmn.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitmp.pfb b/fonts/knitting/fonts/type1/knitmp.pfb
new file mode 100644
index 0000000000..3e56d3bd1e
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitmp.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitmr.pfb b/fonts/knitting/fonts/type1/knitmr.pfb
new file mode 100644
index 0000000000..db44617d31
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitmr.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitn_sc_in.pfb b/fonts/knitting/fonts/type1/knitn_sc_in.pfb
new file mode 100644
index 0000000000..90cb3d5615
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitn_sc_in.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitn_sc_out.pfb b/fonts/knitting/fonts/type1/knitn_sc_out.pfb
new file mode 100644
index 0000000000..08b9379f3f
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitn_sc_out.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitnl.pfb b/fonts/knitting/fonts/type1/knitnl.pfb
new file mode 100644
index 0000000000..3386bdc0da
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitnl.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitnn.pfb b/fonts/knitting/fonts/type1/knitnn.pfb
new file mode 100644
index 0000000000..b2b124c5a8
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitnn.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitnp.pfb b/fonts/knitting/fonts/type1/knitnp.pfb
new file mode 100644
index 0000000000..25f216050f
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitnp.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitnr.pfb b/fonts/knitting/fonts/type1/knitnr.pfb
new file mode 100644
index 0000000000..1cce62cd2b
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitnr.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitwg.pfb b/fonts/knitting/fonts/type1/knitwg.pfb
new file mode 100644
index 0000000000..46e4283e44
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitwg.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitwn.pfb b/fonts/knitting/fonts/type1/knitwn.pfb
new file mode 100644
index 0000000000..5caa6cfc9d
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitwn.pfb
Binary files differ
diff --git a/fonts/knitting/fonts/type1/knitwp.pfb b/fonts/knitting/fonts/type1/knitwp.pfb
new file mode 100644
index 0000000000..208bcf8685
--- /dev/null
+++ b/fonts/knitting/fonts/type1/knitwp.pfb
Binary files differ
diff --git a/fonts/knitting/tex/latex/knitting.sty b/fonts/knitting/tex/latex/knitting.sty
new file mode 100644
index 0000000000..2a73d0224c
--- /dev/null
+++ b/fonts/knitting/tex/latex/knitting.sty
@@ -0,0 +1,899 @@
+% knitting.sty
+%
+% Provides commands useful for writing knitting patterns in LaTeX,
+% including commands to typeset knit charts, and to switch to larger
+% pages mid-document.
+%
+% author: Ariel Barton
+%
+% Copyright Ariel Barton, 2010
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3 of this license or (at your option) any
+% later version.
+% The latest version of the license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2003/06/01 or later.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The complete list of files considered part of this work is in
+% the file `knitting-doc.pdf' and its source code `knitting-doc.tex'.
+%
+% Version: 3
+
+\ProvidesPackage{knitting}[2019/04/03]
+
+%\pdfmapfile{+knitfont.map}
+
+%
+% Boolean variables
+%
+
+\newif \ifchartsonly \chartsonlyfalse
+\newif \ifgrid
+\newif \ifknitsymbol
+\newif \ifresetrn \resetrntrue
+\newif \ifleftrn@knit
+\newif \ifshowrn@knit \showrn@knittrue
+\newif \ifpdf@knit
+\newif \ifcountingout@knit
+\newif \ifCountStsThisRow@knit \CountStsThisRow@knittrue
+\pdf@knittrue
+\ifx \pdfoutput \undefined \pdf@knitfalse \fi
+\ifx \pdfoutput \relax \pdf@knitfalse \fi
+
+%
+% Color commands
+%
+
+\RequirePackage{color}
+
+\definecolor{purlgray}{gray}{0.65}
+\definecolor{knitlinecolor}{rgb}{0.7,0,0}
+\definecolor{gridcolor}{gray}{0.3}
+\definecolor{forecolor}{gray}{0}
+\definecolor{rncolor}{rgb}{0.6,0,0}
+\definecolor{rnarrowcolor}{rgb}{0.45,0,0}
+
+%
+% LaTeX-only material (options and fullpages)
+%
+
+\DeclareOption{chartsonly}{\chartsonlytrue}
+
+\ProcessOptions
+
+% Every dimension I could think of affecting the
+% main page body. It's an environment instead of a command since I want
+% a way to switch back to normal pages. Dimensions I don't change are
+% \marginparsep,\marginparwidth,\marginparpush,\paperheight,\paperwidth
+
+\newenvironment{fullpages}{
+ \clearpage
+ \pagestyle{plain}
+ \setlength{\hoffset}{0pt}
+ \setlength{\voffset}{0pt}
+ \setlength{\oddsidemargin}{0pt}
+ \setlength{\evensidemargin}{0pt}
+ \setlength{\topmargin}{0pt}
+ \setlength{\headheight}{0pt}
+ \setlength{\headsep}{0pt}
+ \setlength{\textheight}{\paperheight}
+ \addtolength{\textheight}{-\footskip}
+ \addtolength{\textheight}{-2in}
+ \setlength{\textwidth}{\paperwidth}
+ \addtolength{\textwidth}{-2in}
+ % This next bit is borrowed from Peter Wilson's chngpage.sty
+ % package. I didn't want to just \usepackage{chngpage} because it
+ % behaves like \addtolength and I wanted \setlength, and loading the
+ % whole package for one eight-line snippet of code just seemed
+ % needlessly complicated.
+ \setlength{\@colht}{\textheight}\setlength{\@colroom}{\textheight}%
+ \setlength{\vsize}{\textheight}\setlength{\columnwidth}{\textwidth}%
+ \if@twocolumn%
+ \advance\columnwidth-\columnsep \divide\columnwidth\tw@%
+ \@firstcolumntrue%
+ \fi%
+ \setlength{\hsize}{\columnwidth}%
+ \setlength{\linewidth}{\hsize}%
+ }
+ {\clearpage}
+
+%
+% Dimensions
+%
+
+\newlength \leftgap@knit
+\newlength \bgshift@knit
+\newlength \chartwidth@knit
+\newlength \stitchcountwidth@knit
+\newlength \rnleftwd@knit
+\newlength \rnrightwd@knit
+
+\newbox\bgbox@knit
+\newbox\fgbox@knit
+\newbox\ggbox@knit
+
+\newcounter{rownumber}
+\newcounter{tempcount@knit}
+\newcounter{rownumberskip} \c@rownumberskip = 1
+\newcounter{stitchcountin}
+\newcounter{stitchcountinprev}
+\newcounter{stitchcountout}
+\newcounter{shortrowstsin@knit}
+\newcounter{shortrowstsout@knit}
+
+\newcommand \passnum@knit{2}
+\newcommand \stitchwd{\fontdimen6\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand \stitchwd@count@knit{\fontdimen6\csname U/knit/\series@knit/out/\f@size\endcsname}
+\newcommand \stitchdp{\fontdimen8\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand \stitchht{\fontdimen9\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand \gridwidth{\fontdimen10\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand \knitlinewd{\fontdimen11\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand \narrowincraise@knit{\fontdimen12\the\font}
+\newcommand \fontvoffset@knit{\fontdimen13\the\font}
+\newcommand \purlextend@knit{\fontdimen14\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand \rownumberwd{\fontdimen6\csname U/knit/\series@knit/n/10\endcsname}
+% The rest of them aren't \the\font because I want them to still work outside of a chart
+
+%
+% Fonts
+%
+
+\newcommand \ff@knit{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont}
+\newcommand \gf@knit{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{g}\selectfont}
+\newcommand \pf@knit{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{p}\selectfont}
+\newcommand \raiseff@knit{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{r}\selectfont}
+\newcommand \lowerff@knit{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{l}\selectfont}
+
+\DeclareTextFontCommand {\knitsfsmall@knit}{\dimen0=\f@size pt\fontfamily{cmss}\fontseries{m}\fontshape{n}\fontsize{0.8\dimen0}{\f@baselineskip}\selectfont}
+\DeclareTextFontCommand {\cablesf@knit}{\dimen0=\f@size pt\fontfamily{cmss}\fontseries{m}\fontshape{n}\fontsize{0.8\dimen0}{\f@baselineskip}\selectfont}
+\DeclareTextFontCommand{\cablesfsmall@knit}{\dimen0=\f@size pt\fontfamily{cmss}\fontseries{m}\fontshape{n}\fontsize{0.6\dimen0}{\f@baselineskip}\selectfont}
+
+% Some extra effort (the {\ff@knit}) is made to make sure that the fonts actually exist.
+% This is done so that the fonts are defined before they are used,
+% which is necessary to make \gridwidth work
+\newcommand \knitnogrid{\gridfalse\knitsymboltrue \def\series@knit{n}{\ff@knit}}
+\newcommand \knitgrid{\gridtrue \knitsymbolfalse\def\series@knit{g}{\ff@knit}}
+\newcommand \knitwide{\gridtrue \knitsymbolfalse\def\series@knit{w}{\ff@knit}}
+\newcommand \knitmixed{\gridtrue \knitsymboltrue \def\series@knit{m}{\ff@knit}}
+
+\knitgrid
+
+%
+% Single-pass commands
+%
+
+\newcommand \purlpass[2][]{\ifnum\passnum@knit = 0 #2\else #1\fi}
+\newcommand \gridpass[2][]{\ifnum\passnum@knit = 1 #2\else #1\fi}
+\newcommand \mainpass[2][]{\ifnum\passnum@knit = 2 #2\else #1\fi}
+\newcommand \countpass[2][]{\ifnum\passnum@knit = 3 #2\else #1\fi}
+
+%
+% Text knit
+%
+
+\newcommand \textknit[1]{\mbox{\let\|\bar@knit\let\!\barthin@knit
+ \ff@knit \color{forecolor}%
+ \rlap{\pf@knit \color{purlgray}\def\passnum@knit{0}#1}%
+ \ifgrid\rlap{\gf@knit \color{gridcolor}\def\passnum@knit{1}#1}\fi
+ \def\passnum@knit{2}#1}}
+
+\newcommand \do@endofpar@knit[1]{\def\par{#1\endgraf\let\par\endgraf}}
+
+%
+% Special symbols
+%
+
+\newcommand \narrowdecrease[1]{\genbobble@knit{#1}{1}{-\narrowincraise@knit}\adjuststitchcount[#1]{0}\adjuststitchcount[-1]{0}}
+\newcommand \pnarrowdecrease[1]{\genbobble@knit{#1}{2}{-\narrowincraise@knit}\adjuststitchcount[#1]{0}\adjuststitchcount[-1]{0}}
+\newcommand \narrowincrease[1]{\genbobble@knit{#1}{3}{\narrowincraise@knit}\adjuststitchcount[0]{#1}\adjuststitchcount[0]{-1}}
+\newcommand \pnarrowincrease[1]{\genbobble@knit{#1}{4}{\narrowincraise@knit}\adjuststitchcount[0]{#1}\adjuststitchcount[0]{-1}}
+\newcommand \bobble[1]{\genbobble@knit{#1}{0}{0pt}}
+
+\newcommand \genbobble@knit[3]{\char#2 \ifnum \passnum@knit = 2
+ \llap{\lower \stitchdp \vbox to\stitchht{\vss \vskip\fontvoffset@knit \hbox to \stitchwd{\hfil\knitsfsmall@knit{#1}\hfil}\vskip #3\vss}}\fi}
+
+
+\newcommand \wideincrease[1]{\strut@knit
+ \ifnum\passnum@knit = 3 \narrowincrease{#1}\else
+ \hbox to #1\stitchwd{\char25
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char29
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char26}\fi}
+\newcommand \widedecrease[1]{\strut@knit
+ \ifnum #1 = 5 \char31 \else
+ \ifnum\passnum@knit = 3 \narrowdecrease{#1}\else
+ \hbox to #1\stitchwd{\char27
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char30
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char28}\fi\fi}
+
+% Standard chart commands
+
+% \obeylines is normally defined with \let^^M\par, not \def^^M{\par};
+% doing it this way makes it cooperate with \do@endofpar.
+
+{\catcode`\^^M = \active \catcode`\| = \active
+\global\def\commands@knit{%
+ \setlength{\fboxsep}{0pt}%
+ \let\[\pnarrowincrease
+ \let\]\pnarrowdecrease
+ \let\<\narrowincrease
+ \let\>\narrowdecrease
+ \let\@\bobble
+ \let \! \barthin@knit
+ \let \| \bar@knit
+ \let | \bar@knit
+ \let \_ \horizlinenarrow@knit
+ \let \= \horizlinewide@knit
+ \let \- \horizline@knit
+ \let\overline\overline@knit
+ \let\underline\underline@knit
+ \let\rn\rn@knit
+ \let\rnbox\rnbox@knit
+ \let\rnboxleft\rnboxleft@knit
+ \let\rnboxright\rnboxright@knit
+ \let\rnleft\rnleft@knit
+ \let\rnright\rnright@knit
+ \let\nonumber\relax
+ \let\par\endgraf %Just in case someone's redefined it
+ \leftgap@knit=0pt
+ \def~{\ifnum\passnum@knit=3 \else \ifvmode \advance \leftgap@knit by \stitchwd
+ \else \kern \stitchwd \fi \fi}%
+ \def^^M{\par}%
+ \def\\{\par}%
+ }%
+}
+
+\newcommand \strut@knit{\rule[-\stitchdp]{0pt}{\stitchht}}
+
+% Drawing lines on the chart
+
+\newcommand \horizlinenarrow@knit{\ifnum\passnum@knit<3 \ifvmode\nonumber\leavevmode\fi \dimen0 = \stitchwd \advance \dimen0 \knitlinewd
+ \ifnum\passnum@knit = 2
+ \hskip -0.5\knitlinewd\smash{{\color{knitlinecolor}\vrule width \dimen0 height 0.5\knitlinewd depth 0.5\knitlinewd}}\hskip -0.5\knitlinewd
+ \else\hskip \stitchwd \fi\fi}
+\newcommand \horizlinewide@knit[1]{\ifnum\passnum@knit<3 \ifvmode\nonumber\leavevmode\fi \dimen0 = #1\stitchwd \advance \dimen0 \knitlinewd
+ \ifnum\passnum@knit = 2
+ \smash{{\color{knitlinecolor}\vrule width \dimen0 height 0.5\knitlinewd depth 0.5\knitlinewd}}
+ \else\hskip \dimen0 \fi\fi}
+
+\newcommand \horizline@knit{\@ifstar \horizlinestar@knit \horizlinenostar@knit}
+
+\newcommand \horizlinestar@knit[1]{\nonumber\nostitchcount\overlinestar@knit{\hskip#1\stitchwd}}
+\newcommand \horizlinenostar@knit[1]{\nonumber\nostitchcount\overlinenostar@knit{\hskip#1\stitchwd}}
+
+
+\newcommand \bar@knit{\ifnum\passnum@knit < 3 \leavevmode
+ \ifgrid
+ \ifnum \passnum@knit = 0
+ \hbox{\color{knitlinecolor}\rule[-\stitchdp]{\knitlinewd}{\stitchht}}%
+ \else
+ \kern \knitlinewd
+ \fi
+ \else
+ \ifnum \passnum@knit = 2
+ \hbox{\color{knitlinecolor}\rule[-\stitchdp]{\knitlinewd}{\stitchht}}%
+ \else
+ \kern \knitlinewd
+ \fi
+ \fi\fi}
+
+\newcommand \barthintop@knit{0pt}
+\newcommand \barthinbot@knit{0pt}
+
+\newcommand \barthin@knit{\leavevmode\strut@knit
+ \ifnum \passnum@knit = 2
+ \dimen2 = \stitchht \advance \dimen2 \barthintop@knit
+ \advance \dimen2 \barthinbot@knit
+ \dimen3 = \stitchdp \advance \dimen3 \barthinbot@knit
+ \smash{\hbox to 0pt{\hss \color{knitlinecolor}\rule[-\dimen3]{\knitlinewd}{\dimen2}\hss}}%
+ \fi}
+
+\newcommand \overline@knit{\@ifstar \overlinestar@knit \overlinenostar@knit}
+\newcommand \underline@knit{\@ifstar \underlinestar@knit \underlinenostar@knit}
+
+\newcommand \overlinenostar@knit[1]{\leavevmode{\def\barthintop@knit{\knitlinewd}%
+ \setbox0 = \hbox{#1}%
+ \ifgrid
+ \ifnum \passnum@knit = 0
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ {\rlap{\hskip -0.5\gridwidth\color{knitlinecolor}\rule[\ht0]{\dimen1}{\knitlinewd}}}
+ \else
+ \rule[\ht0]{0pt}{\knitlinewd}
+ \fi
+ \else
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ {\rlap{\hskip -0.5\gridwidth\color{knitlinecolor}\rule[\ht0]{\dimen1}{\knitlinewd}}}%
+ \else
+ \rule[\ht0]{0pt}{\knitlinewd}
+ \fi \fi
+ #1}}
+
+\newcommand \overlinestar@knit[1]{\leavevmode{\def\barthintop@knit{0.5\knitlinewd}%
+ \setbox0 = \hbox{#1}%
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \dimen2=\ht0 \advance\dimen2 by -0.5\knitlinewd
+ \smash{\rlap{\hskip -0.5\gridwidth\color{knitlinecolor}\rule[\dimen2]{\dimen1}{\knitlinewd}}}%
+ \fi
+ #1}}
+
+\newcommand \underlinenostar@knit[1]{\leavevmode{\def\barthinbot@knit{\knitlinewd}%
+ \setbox0 = \hbox{#1}%
+ \ifgrid
+ \ifnum \passnum@knit = 0
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \rlap{\raisebox{-\dp0}{\hskip -0.5\gridwidth\color{knitlinecolor}\rule[-\knitlinewd]{\dimen1}{\knitlinewd}\hskip -0.5\gridwidth}}%
+ \else
+ \rlap{\raisebox{-\dp0}{\vrule width 0pt height 0pt depth \knitlinewd}}%
+ \fi
+ \else
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \rlap{\raisebox{-\dp0}{\hskip -0.5\gridwidth\color{knitlinecolor}\rule[-\knitlinewd]{\dimen1}{\knitlinewd}\hskip -0.5\gridwidth}}%
+ \else
+ \rlap{\raisebox{-\dp0}{\vrule width 0pt height 0pt depth \knitlinewd}}%
+ \fi \fi
+ #1}}
+
+\newcommand \underlinestar@knit[1]{\leavevmode{\def\barthinbot@knit{0.5\knitlinewd}%
+ \setbox0 = \hbox{#1}%
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \smash{\rlap{\raisebox{-\dp0}{\hskip -0.5\gridwidth\color{knitlinecolor}\rule[-0.5\knitlinewd]{\dimen1}{\knitlinewd}}\hskip -0.5\gridwidth}}%
+ \fi
+ #1}}
+
+% Fancy cabling
+
+% \ifnum \passnum@knit = 3 \leavevmode \fi causes problems
+% due to the weird things we do automatically at the start of a paragraph
+\def\doifcounting@knit#1{}
+
+\def\cablebackground#1{\doifcounting@knit{\leavevmode}%
+ \ifnum \passnum@knit = 0 \leavevmode \hbox to \stitchwd{#1\hss {\raiseff@knit \def\passnum@knit{2}\color{forecolor}#1}}\else \char255 \fi}
+\def\cableforeground#1{\doifcounting@knit{\leavevmode}%
+ \ifnum \passnum@knit = 0 \leavevmode \hbox to \stitchwd{#1\hss {\lowerff@knit \def\passnum@knit{2}\color{forecolor}#1}}\else \char254 \fi}
+
+\def\orphancablewarning@knit{\typeout{Package knit warning: Orphaned half cable on input line \the\inputlineno.}}
+
+\newcommand \cableleft[2]{\leavevmode{\ifgrid\knitmixed\fi
+ \ifcase\passnum@knit
+ \hbox{\pf@knit #1#2}%
+ \or
+ \setbox0=\hbox{\pf@knit #1#2}%
+ \hbox to \wd0{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \hbox{\let \textsf \cablesf@knit \let \knitsfsmall@knit \cablesfsmall@knit %
+ \setbox1=\hbox{#1}%
+ \setbox2=\hbox{#2}%
+ \ifdim \wd1 = 0pt \orphancablewarning@knit \fi
+ \ifdim \wd2 = 0pt \orphancablewarning@knit \fi
+ {\lowerff@knit \rlap{#1}\hbox to \wd1{\leaders\hbox to \stitchwd{\hfil\char15}\hfil\ifdim\wd1>0pt \hskip\stitchwd\char10\fi}%
+ \ifdim\wd1>0pt \ifdim \wd2>0pt \char13\fi \fi }%
+ {\raiseff@knit \rlap{#2}\hbox to \wd2{\ifdim\wd2>0pt \char12\hskip\stitchwd\fi\leaders\hbox to \stitchwd{\char8\hfil}\hfil}}}%
+ \else
+ #1#2\fi}}
+\newcommand \cableright[2]{\leavevmode{\ifgrid\knitmixed\fi
+ \ifcase\passnum@knit
+ \hbox{\pf@knit #1#2}%
+ \or
+ \setbox0=\hbox{\pf@knit #1#2}%
+ \hbox to \wd0{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \hbox{\let\textsf \cablesf@knit \let \knitsfsmall@knit \cablesfsmall@knit %
+ \setbox1=\hbox{#1}%
+ \setbox2=\hbox{#2}%
+ \ifdim \wd1 = 0pt \orphancablewarning@knit \fi
+ \ifdim \wd2 = 0pt \orphancablewarning@knit \fi
+ {\raiseff@knit \rlap{#1}\hbox to \wd1{\leaders\hbox to \stitchwd{\hfil\char16}\hfil\ifdim\wd1>0pt \hskip\stitchwd\char9\fi}%
+ \ifdim\wd1>0pt \ifdim \wd2>0pt \char14\fi \fi }%
+ {\lowerff@knit \rlap{#2}\hbox to \wd2{\ifdim\wd2>0pt \char11\hskip\stitchwd \fi\leaders\hbox to \stitchwd{\char7\hfil}\hfil}}}%
+ \else
+ #1#2\fi}}
+
+% Knit, purl, knitboxes
+
+\newcommand \knit[1]{\strut@knit\hbox to #1\stitchwd{\leaders\hbox{-}\hfil}}
+\newcommand \purl[1]{\strut@knit\hbox to #1\stitchwd{\leaders\hbox{=}\hfil}}
+
+\newcommand \knitboxbackground{}
+\newcommand \purlboxbackground{\color{purlgray}}
+\newcommand \purlboxforeground{}
+\newcommand \knitboxforeground{}
+
+\newcommand \Knit[3][0]{\strut@knit%
+ \setbox0 = \hbox{\fontseries{m}\fontshape{n}\textsf{#2}}%
+ \ifcase \passnum@knit
+ \ifx \empty@knit \knitboxbackground
+ \rule{#3\stitchwd}{0pt}%
+ \else
+ {\knitboxbackground \purlbackground{\rule[-\stitchdp]{#3\stitchwd}{\stitchht}}}\fi
+ \or
+ \ifknitsymbol
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \else
+ \hbox{\hbox to #3\stitchwd{%
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil
+ \hskip \wd0
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil}%
+ \hskip -#3\stitchwd
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}}%
+ \fi
+ \or
+ \hbox to #3\stitchwd{%
+ {\knitboxforeground\leaders\hbox{-}%
+ \ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ }%
+ \lower\stitchdp\vbox to\stitchht{\vss\vskip\fontvoffset@knit\hbox{\fontseries{m}\fontshape{n}\textsf{#2}}\vss}
+ {\knitboxforeground \count255 = -#1 \leaders\hbox{-}%
+ \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi
+ }}%
+ \or
+ \hbox to \Knitstitchcount{#2}{#3}\stitchwd{\hfil}
+ \fi}
+\newcommand \Purl[3][0]{\strut@knit%
+ \setbox0 = \hbox{\fontseries{m}\fontshape{n}\textsf{#2}}%
+ \ifcase \passnum@knit
+ \ifx \empty@knit \purlboxbackground
+ \rule{#3\stitchwd}{0pt}%
+ \else
+ {\purlboxbackground \purlbackground{\rule[-\stitchdp]{#3\stitchwd}{\stitchht}}}\fi
+ \or
+ \ifknitsymbol
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \else
+ \hbox{\hbox to #3\stitchwd{%
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil
+ \hskip \wd0
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil}%
+ \hskip -#3\stitchwd
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}}%
+ \fi
+ \or
+ \hbox to #3\stitchwd{%
+ {\purlboxforeground\leaders\hbox{=}%
+ \ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ }%
+ \lower\stitchdp\vbox to\stitchht{\vss\vskip\fontvoffset@knit\hbox{\fontseries{m}\fontshape{n}\textsf{#2}}\vss}
+ {\purlboxforeground \count255 = -#1 \leaders\hbox{=}%
+ \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi
+ }}%
+ \or
+ \hbox to \Purlstitchcount{#2}{#3}\stitchwd{\hfil}
+ \fi}
+
+\newcommand \Knitstitchcount[2]{#2}
+\newcommand \Purlstitchcount[2]{#2}
+\newcommand \knitboxstitchcount[2]{#2}
+\newcommand \purlboxstitchcount[2]{#2}
+
+\newcommand \knitbox[3][0]{\strut@knit%
+ \ifcase \passnum@knit
+ \ifx \empty@knit \knitboxbackground
+ \rule{#3\stitchwd}{0pt}%
+ \else
+ {\knitboxbackground \purlbackground{\rule[-\stitchdp]{#3\stitchwd}{\stitchht}}}\fi
+ \or
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \lower\stitchdp\vbox to\stitchht{%
+ \vss\vskip\fontvoffset@knit
+ \hbox to #3\stitchwd{\ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ {\fontseries{m}\fontshape{n}\textsf{#2}}%
+ \count255 = -#1 \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi}%
+ \vss}%
+ \or
+ \hbox to \knitboxstitchcount{#2}{#3}\stitchwd{\hfil}
+ \fi}
+\newcommand \purlbox[3][0]{\strut@knit%
+ \ifcase \passnum@knit
+ \ifx \empty@knit \purlboxbackground
+ \rule{#3\stitchwd}{0pt}%
+ \else
+ {\purlboxbackground \purlbackground{\rule[-\stitchdp]{#3\stitchwd}{\stitchht}}}\fi
+ \or
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \lower\stitchdp\vbox to\stitchht{%
+ \vss\vskip\fontvoffset@knit
+ \hbox to #3\stitchwd{\ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ {\fontseries{m}\fontshape{n}\textsf{#2}}%
+ \count255 = -#1 \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi}%
+ \vss}%
+ \or
+ \hbox to \purlboxstitchcount{#2}{#3}\stitchwd{\hfil}%
+ \fi}
+
+\newcommand \purlbackground[1]{\leavevmode\setbox0=\hbox{#1}%
+ \dimen0 = \wd0 \advance\dimen0 2\purlextend@knit
+ \dimen1 = \stitchht \advance\dimen1 \purlextend@knit
+ \dimen2 = \stitchdp \advance\dimen2 \purlextend@knit
+ \ifnum \passnum@knit = 0 \kern-\purlextend@knit
+ \vrule width 0pt height \ht0 depth \dp0
+ \smash{\rule[-\dimen2]{\dimen0}{\dimen1}}%
+ \kern-\purlextend@knit
+ \else\box0\fi}
+
+\newcommand \widesymbol[3][0]{\strut@knit
+ \ifcase \passnum@knit
+ \knitbox{}{#3}\or
+ \knitbox{}{#3}\or
+ \hbox to #3\stitchwd{\ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ #2%
+ \count255 = -#1 \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi}\else
+ \widesymbolspacer{#2}{#3}\relax\fi}
+
+\newcommand \widesymbolspacer[2]{#1}
+
+% Row number commands
+
+\newcommand \numberrow[3]{\ifnum\passnum@knit=3 \ifvmode\vskip\stitchht\fi\else
+ \ifvmode\nonumber\leavevmode\fi
+ \strut@knit
+ \count255=#1
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \color{rncolor}\textnormal{#1}\fi\hss}%
+ \ifnum #1 > #3
+ \advance\count255 -1
+ \loop \ifnum \count255>#3
+ \c@tempcount@knit = \count255
+ \divide\c@tempcount@knit #2
+ \multiply \c@tempcount@knit #2
+ \ifnum\c@tempcount@knit = \count255
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \color{rncolor}\textnormal{\the\count255}\fi \hss}%
+ \else
+ \kern\stitchwd
+ \fi
+ \advance\count255 -1
+ \repeat
+ \else
+ \advance\count255 1
+ \loop \ifnum \count255<#3
+ \c@tempcount@knit = \count255
+ \divide\c@tempcount@knit #2
+ \multiply \c@tempcount@knit #2
+ \ifnum\c@tempcount@knit = \count255
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \color{rncolor}\textnormal{\the\count255}\fi \hss}%
+ \else
+ \kern\stitchwd
+ \fi
+ \advance\count255 1
+ \repeat
+ \fi
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \color{rncolor}\textnormal{#3}\fi \hss}%
+ \fi}
+
+\newcommand \rnoddonly{\def\rncore@knit##1{\ifshowrn@knit \ifodd\c@rownumber \csname print##1rownumber\endcsname{\therownumber}\fi\fi}}
+\newcommand \rnevenonly{\def\rncore@knit##1{\ifshowrn@knit \ifodd\c@rownumber \else\csname print##1rownumber\endcsname{\therownumber}\fi\fi}}
+\newcommand \rnnormal{\def\rncore@knit##1{\ifshowrn@knit \csname print##1rownumber\endcsname{\therownumber}\fi}}
+
+\newcommand \rncore@knit[1]{\ifshowrn@knit \csname print#1rownumber\endcsname{\therownumber}\fi}
+\newcommand \rnstep@knit{\ifshowrn@knit
+ \ifnum \passnum@knit = 2 \global\advance\c@rownumber -\c@rownumberskip \relax\fi
+ \ifnum \passnum@knit = 0 \global\advance\c@rownumber -\c@rownumberskip \relax\fi
+ \else\global\showrn@knittrue\fi}
+
+\newcommand \printrownumber[1]{{\color{rncolor}\textnormal{#1}}}
+\newcommand \printrightrownumber[1]{\knitleftarrowhead{\color{rncolor}\textnormal{#1}}}
+\newcommand \printleftrownumber[1]{{\color{rncolor}\textnormal{#1}}\knitrightarrowhead}
+\newcommand \knitrightarrowhead{{\color{rnarrowcolor}\char125}}
+\newcommand \knitleftarrowhead{{\color{rnarrowcolor}\char123}}
+
+%\newcommand \therownumber{\arabic{rownumber}}
+% \newcount automatically generates a \therownumber command
+
+\newcommand \rn@knit{\ifnum \passnum@knit < 3 \leavevmode
+ \hbox to \rownumberwd{\hss\ifnum \passnum@knit = 2 \rncore@knit{}\fi\rnstep@knit\hss}\fi}
+\newcommand \rnleft@knit{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 \rncore@knit{left}\fi\rnstep@knit}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly\advance \dimen0 1pt\fi
+ \ifdim \dimen0 > \rnleftwd@knit \global\rnleftwd@knit = \dimen0 \fi
+ \hbox to 0pt{\hss\box0}\fi}
+\newcommand \rnright@knit{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 \rncore@knit{right}\fi\rnstep@knit}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly\advance \dimen0 1pt\fi
+ \ifdim \dimen0 > \rnrightwd@knit \global\rnrightwd@knit = \dimen0 \fi
+ \hbox to 0pt{\box0\hss}\fi}
+
+\newcommand \rnbox@knit[1]{\ifnum \passnum@knit < 3 \leavevmode
+ \hbox to \rownumberwd{\hss\ifnum \passnum@knit = 2 {\printrownumber{#1}}\fi\hss}\fi}
+\newcommand \rnboxleft@knit[1]{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 {\printleftrownumber{#1}}\fi}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly\advance \dimen0 1pt\fi
+ \ifdim \dimen0 > \rnleftwd@knit \global\rnleftwd@knit = \dimen0 \fi
+ \hbox to 0pt{\hss\box0}\fi}
+\newcommand \rnboxright@knit[1]{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 {\printrightrownumber{#1}}\fi}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly \advance \dimen0 1pt \fi
+ \ifdim \dimen0 > \rnrightwd@knit \global\rnrightwd@knit = \dimen0 \fi
+ \hbox to 0pt{\box0\hss}\fi}
+
+% The chart commands
+
+\newcommand \chart[1][]{\smallpage@knit\obeylines \catcode`\|=\active \catcode`\# = 12 \catcode`\& = 12 \chart@knit{#1}}
+
+% Some special stuff for chartsonly mode
+\let\extracommands@knit\relax
+\newcommand \smallpage@knit{\noindent\hbox\bgroup}
+\let\endsmallpage@knit\egroup
+
+% The chart command proper
+\newcommand \chart@knit[2]{%
+ \global \chartwidth@knit = 0pt
+ \ifresetrn \c@rownumber = 0 \else \c@tempcount@knit = \c@rownumber \fi
+ \setbox\bgbox@knit=\vbox{\def\passnum@knit{0}\hsize=\maxdimen
+ \ff@knit % This is kind of silly, but to make \stitchht work, we need to be sure that the foreground font exists.
+ \pf@knit
+ \lineskip=0pt
+ \parskip=0pt
+ \baselineskip=0pt
+ \parindent=0pt
+ \emergencystretch = \stitchwd
+ \leftskip=0pt
+ \rightskip=0pt
+ \parfillskip=0pt plus 1fil
+ \ifresetrn\else\let\rnstep@knit\relax\fi
+ \commands@knit\extracommands@knit
+ \def\nonumber{\global\showrn@knitfalse}%
+ \csname auto#1@knit\endcsname #2\par}%
+ \ifresetrn \c@tempcount@knit = -\c@rownumber \fi
+ \ifgrid
+ \setbox\ggbox@knit=\vbox{\def\passnum@knit{1}\hsize=\maxdimen
+ \gf@knit
+ \lineskip=0pt
+ \parskip=0pt
+ \baselineskip=0pt
+ \parindent=0pt
+ \emergencystretch = \stitchwd
+ \leftskip=0pt
+ \rightskip=0pt
+ \parfillskip=0pt plus 1fil
+ \commands@knit\extracommands@knit
+ \def\nonumber{\global\showrn@knitfalse}%
+ \csname auto#1@knit\endcsname #2\par}%
+ \fi
+ \c@rownumber = \c@tempcount@knit %
+ \global \rnleftwd@knit = 0pt
+ \global \rnrightwd@knit = 0pt
+ \setbox\fgbox@knit=\vbox{\def\passnum@knit{2}\hsize=\maxdimen
+ \ff@knit
+ \color{forecolor}
+ \lineskip=0pt
+ \parskip=0pt
+ \baselineskip=0pt
+ \parindent=0pt
+ \emergencystretch = \stitchwd
+ \leftskip=0pt
+ \rightskip=0pt
+ \parfillskip=0pt plus 1fil
+ \commands@knit\extracommands@knit
+ \def\nonumber{\global\showrn@knitfalse}%
+ \csname auto#1@knit\endcsname #2\par}%
+ \global\advance \chartwidth@knit \rnleftwd@knit
+ \global\advance \chartwidth@knit \rnrightwd@knit
+ \hbox to \chartwidth@knit{\hskip \rnleftwd@knit
+ \rlap{\color{purlgray}\box\bgbox@knit}%
+ \ifgrid\rlap{\color{gridcolor}\box\ggbox@knit}\fi
+ \ifchartsonly
+ \dimen2 = \dp \fgbox@knit \dimen3 = \ht \fgbox@knit
+ \advance\dimen2 0.5\gridwidth \advance\dimen3 0.5\gridwidth
+ \vrule width 0pt height \dimen3 depth \dimen2
+ \fi
+ % If we are doing charts only, we want to enlarge things enough that
+ % we can see the grid on all sides.
+ % But if we aren't, we want adjacent charts to merge seamlessly
+ % because using separate charts is the only way to allow charts to
+ % break across pages.
+ \box\fgbox@knit%
+ \hss}%
+ \endsmallpage@knit
+ }
+
+% Special charts only macros
+
+\ifchartsonly
+ \ifpdf@knit\else\errmessage{Package knit error: \chartsonly should only be used with pdfTeX.}\fi%
+ \hoffset=-1in
+ \voffset=-1in
+ \oddsidemargin=0pt
+ \evensidemargin=0pt
+ \topmargin=0pt
+ \headheight=0pt
+ \headsep=0pt
+ \footskip=0pt
+ \textheight=120in
+ \topskip = 0pt % Causes problems in one-row charts if this isn't present
+ \newenvironment{smallpage}{\clearpage
+ \hsize=\textwidth \columnwidth = \textwidth
+ \global\chartwidth@knit=0pt
+ \setbox0 = \vbox\bgroup
+ \def\smallpage@knit{\let\endsmallpage@knit\egroup \noindent \hbox\bgroup}%
+ }
+ {\egroup%
+ %
+ \pdfpagewidth=\wd0
+ %
+ \dimen0=\ht0 \advance \dimen0 by \dp0
+ \pdfpageheight=\dimen0
+ %
+ \ifdim\pdfpageheight>\textheight
+ \typeout{}
+ \typeout{You need to increase \string\textheight\space in the preamble.}
+ \typeout{What do you want such a big chart for, anyway?}
+ \typeout{}
+ \fi
+ %
+ \box0
+ \clearpage
+ }
+ \let\smallpage@knit\smallpage
+ \let\endsmallpage@knit\endsmallpage
+ \def\extracommands@knit{%
+ \leftskip = 0.5\gridwidth
+ \rightskip = 0.5\gridwidth
+ }
+\else
+ \let\smallpage\begingroup
+ \let\endsmallpage\endgroup
+\fi
+
+% Autonumbering macros
+
+\newcommand \everypar@knit{\hskip\leftgap@knit \leftgap@knit=0pt \relax}
+
+\newcommand \auto@knit{\let\nonumber\relax \everypar={\everypar@knit\do@endofpar@knit{\adjustchartwidth@knit}}}
+\newcommand \autoleft@knit{\everypar={\everypar@knit\rnleft@knit\do@endofpar@knit{\adjustchartwidth@knit}}}
+\newcommand \autoright@knit{\everypar={\everypar@knit\do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}}}
+\newcommand \autooddleft@knit{\everypar={\everypar@knit
+ \ifodd \c@rownumber %
+ \rnleft@knit\do@endofpar@knit{\adjustchartwidth@knit}%
+ \else %\hskip\rownumberwd
+ \do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}\fi}}
+\newcommand \autooddright@knit{\everypar={\everypar@knit
+ \ifodd \c@rownumber %\hskip\rownumberwd
+ \do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}%
+ \else\rnleft@knit\do@endofpar@knit{\adjustchartwidth@knit}\fi}}
+\newcommand \autoboth@knit{\everypar={\everypar@knit\rnleft@knit\global\advance\c@rownumber 1 \do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}}}
+\let\autoevenleft@knit\autooddright@knit
+\let\autoevenright@knit\autooddleft@knit
+
+\newcommand \adjustchartwidth@knit{\endgraf
+ \ifnum \passnum@knit = 2 \setbox0=\lastbox
+ \setbox1=\hbox{\unhcopy0\unskip}%
+ \box0
+ \ifdim\wd1 >\chartwidth@knit \global\chartwidth@knit=\wd1\fi\fi}
+
+% Stitch-counting macros
+
+\newcommand \adjuststitchcount[2][\temp@knit]{\def\temp@knit{#2}%
+ \leavevmode\ifnum\passnum@knit=3 \null
+ \ifcountingout@knit \kern #2\stitchwd \else \kern #1\stitchwd \fi \null\fi}
+
+\newcommand \stitchcountwarningbar{%
+ \ifnum \c@stitchcountinprev = \c@stitchcountout \else
+ \ifnum \c@stitchcountinprev > -99
+ \vrule width \overfullrule
+ \typeout{Package knit warning: Stitch count mismatch on input line \the\inputlineno.}
+ \fi \fi}
+
+\newcommand \countstitches[1]{%
+ \global\c@stitchcountinprev = \c@stitchcountin
+ \setbox0 = \hbox{\def\passnum@knit{3}\countingout@knittrue \let\stitchwd\stitchwd@count@knit \fontshape{out}\selectfont #1}%
+ \c@stitchcountout = \wd0
+ \dimen0 = 0.5\stitchwd@count@knit \advance \c@stitchcountout \dimen0
+ \global\divide \c@stitchcountout \stitchwd@count@knit
+ \setbox1 = \hbox{\def\passnum@knit{3}\countingout@knitfalse \let\stitchwd\stitchwd@count@knit \fontshape{in}\selectfont #1}%
+ \c@stitchcountin = \wd1
+ \dimen1 = 0.5\stitchwd@count@knit \advance \c@stitchcountin \dimen1
+ \global\divide \c@stitchcountin \stitchwd@count@knit
+ }
+
+\newcommand \stitchcountchart[1][]{\begingroup \catcode`\|=\active \catcode`\# = 12 \catcode`\& = 12 \def\chartrn@knit{#1}\obeylines \afterassignment \printstitchcountchart@knit \toks0 =}
+
+\newcommand \printstitchcountchart@knit{\smallpage@knit\hbox{%
+ \ifx\relax\printleftstitchcount\else\ifx \empty@knit \printleftstitchcount\else
+ \let\printstitchcount@knit\printleftstitchcount
+ \def\stitchcountside@knit{0}\makestitchcounts@knit \fi\fi
+ \chart[\chartrn@knit]{\the\toks0}%
+ \ifx\relax\printrightstitchcount\else\ifx \empty@knit \printrightstitchcount\else
+ \let\printstitchcount@knit\printrightstitchcount
+ \def\stitchcountside@knit{1}\makestitchcounts@knit\fi\fi
+ }\endsmallpage@knit
+ \endgroup}
+
+{\obeylines
+\gdef\countstitcheseachrow@knit#1^^M{%
+ \setbox1 = \hbox{#1}%
+ \ifCountStsThisRow@knit%
+ \countstitches{#1}%
+ \setstitchcountlabel@knit%
+ \else%
+ \global\CountStsThisRow@knittrue%
+ \setbox0=\hbox{}%
+ \fi%
+ \printstitchcountlabel@knit}
+\gdef\shortrows@countstitcheseachrow@knit#1^^M{\countstitches{#1} %
+ \ifx \relax \shortrowrowcount@knit %
+ \global\advance \c@shortrowstsin@knit \c@stitchcountin \global\advance \c@shortrowstsout@knit \c@stitchcountout %
+ \global\let \shortrowrowcount@knit 2
+ % For some reason, we MUST NOT have a % after the 2.
+ \else%
+ \global\advance \c@shortrowstsin@knit -\c@stitchcountout \global\advance \c@shortrowstsout@knit -\c@stitchcountin %
+ \global\let \shortrowrowcount@knit \relax
+ \fi%
+ \global\c@stitchcountin = \c@stitchcountinprev %
+ }
+\gdef\shortrows@printstitchcountlabel@knit#1^^M{\setbox1 = \hbox{#1}\printstitchcountlabel@knit\setbox0=\hbox{}}
+\gdef\shortrows#1{\ifnum \passnum@knit = 3
+ \c@shortrowstsin@knit = 0 \c@shortrowstsout@knit = 0 \global\let \shortrowrowcount@knit \relax %
+ \setbox2 = \vbox{\everypar = {\shortrows@countstitcheseachrow@knit}%
+ #1
+ }%
+ \ifx \shortrowrowcount@knit \relax \advance \c@stitchcountin \c@shortrowstsin@knit \advance \c@stitchcountin -\c@shortrowstsout@knit %
+ \else
+ \c@stitchcountinprev = \c@stitchcountin \c@stitchcountin = \c@shortrowstsin@knit \c@stitchcountout = \c@shortrowstsout@knit %
+ \fi %
+ \setstitchcountlabel@knit%
+ \vbox{\everypar = {\shortrows@printstitchcountlabel@knit}%
+ \ifx \shortrowrowcount@knit \relax \setbox0=\hbox{} \else
+ \ifCountStsThisRow@knit\else \setbox0=\hbox{} \global\CountStsThisRow@knittrue \fi \fi
+ % If there are an even number of short rows, we don't know the stitch count,
+ % so we don't print it
+ #1
+ }%
+ \else%
+ #1
+ \fi%
+ \par}
+ }
+
+\def\setstitchcountlabel@knit{\setbox0=\hbox{\def\passnum@knit{2}\strut@knit \printstitchcount@knit\stitchcountwarningbar}}
+\def\printstitchcountlabel@knit{\ifdim \wd0 > \stitchcountwidth@knit \global\stitchcountwidth@knit = \wd0 \fi
+ \hbox to 0pt{\ifnum\stitchcountside@knit = 0 \hss\fi
+ \vrule width 0pt height \ht1 depth \dp1 \smash{\box0}%
+ \ifnum\stitchcountside@knit = 1 \hss\fi}%
+ \par}
+
+\def\makestitchcounts@knit{\hbox{\setbox1=\vbox{\c@stitchcountin = -1001
+ \global\stitchcountwidth@knit=0pt
+ \global\CountStsThisRow@knittrue
+ \parindent=0pt
+ \def\passnum@knit{3}
+ \def\doifcounting@knit##1{##1}
+ \ff@knit
+ \commands@knit
+ \everypar={\countstitcheseachrow@knit} \offinterlineskip
+ \the\toks0
+ }%
+ \ifnum\stitchcountside@knit = 0
+ \hskip \stitchcountwidth@knit\rlap{\box1}%
+ \else
+ \rlap{\box1}\hskip \stitchcountwidth@knit
+ \fi
+}}
+
+\def\nostitchcount{\ifnum \passnum@knit = 3 \global \CountStsThisRow@knitfalse \fi}
+
+\newcommand \printleftstitchcount{{\color{rncolor}\textnormal{(\thestitchcountout\ sts) }}}
+\newcommand \printrightstitchcount{}
+
+\newcommand \knitdebug{\renewcommand \printleftstitchcount{{\color{rncolor}\textnormal{(\thestitchcountout\ out, \thestitchcountin\ in) }}}}
+
+
+
+\newcommand \empty@knit{}
+% This is needed because the plain TeX \empty is
+% defined with \def and not \newcommand
+
diff --git a/fonts/knitting/tex/latex/uknit.fd b/fonts/knitting/tex/latex/uknit.fd
new file mode 100644
index 0000000000..afa6358a78
--- /dev/null
+++ b/fonts/knitting/tex/latex/uknit.fd
@@ -0,0 +1,30 @@
+\ProvidesFile{T1knit.fd}[2019/04/03 Knit fonts]
+
+\DeclareFontFamily{U}{knit}{}
+
+\DeclareFontShape{U}{knit}{n}{n}{<-> knitnn}{}
+\DeclareFontShape{U}{knit}{n}{p}{<-> knitnp}{}
+\DeclareFontShape{U}{knit}{n}{r}{<-> knitnr}{}
+\DeclareFontShape{U}{knit}{n}{l}{<-> knitnl}{}
+\DeclareFontShape{U}{knit}{n}{in}{<-> knitn_sc_in}{}
+\DeclareFontShape{U}{knit}{n}{out}{<-> knitn_sc_out}{}
+
+\DeclareFontShape{U}{knit}{m}{n}{<-> knitmn}{}
+\DeclareFontShape{U}{knit}{m}{p}{<-> knitmp}{}
+\DeclareFontShape{U}{knit}{m}{r}{<-> knitmr}{}
+\DeclareFontShape{U}{knit}{m}{l}{<-> knitml}{}
+\DeclareFontShape{U}{knit}{m}{g}{<-> knitmg}{}
+\DeclareFontShape{U}{knit}{m}{in}{<-> knitn_sc_in}{}
+\DeclareFontShape{U}{knit}{m}{out}{<-> knitn_sc_out}{}
+
+\DeclareFontShape{U}{knit}{g}{n}{<-> knitgn}{}
+\DeclareFontShape{U}{knit}{g}{p}{<-> knitgp}{}
+\DeclareFontShape{U}{knit}{g}{g}{<-> knitgg}{}
+\DeclareFontShape{U}{knit}{g}{in}{<-> knitg_sc_in}{}
+\DeclareFontShape{U}{knit}{g}{out}{<-> knitg_sc_out}{}
+
+\DeclareFontShape{U}{knit}{w}{n}{<-> knitwn}{}
+\DeclareFontShape{U}{knit}{w}{p}{<-> knitwp}{}
+\DeclareFontShape{U}{knit}{w}{g}{<-> knitwg}{}
+\DeclareFontShape{U}{knit}{w}{in}{<-> knitg_sc_in}{}
+\DeclareFontShape{U}{knit}{w}{out}{<-> knitg_sc_out}{}
diff --git a/fonts/knitting/tex/plain/knitting.tex b/fonts/knitting/tex/plain/knitting.tex
new file mode 100644
index 0000000000..17b6a0c242
--- /dev/null
+++ b/fonts/knitting/tex/plain/knitting.tex
@@ -0,0 +1,1018 @@
+% knitting.tex
+%
+% Provides commands useful for writing knitting patterns in plain TeX
+%
+% author: Ariel Barton
+%
+% Copyright Ariel Barton, 2010
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3 of this license or (at your option) any
+% later version.
+% The latest version of the license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2003/06/01 or later.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The complete list of files considered part of this work is in
+% the file `knitting-doc.pdf' and its source code `knitting-doc.tex'.
+%
+% Version: 3
+
+% Date: 2019/04/03
+
+%\pdfmapfile{+knitfont.map}
+
+\ifnum\catcode`\@=\catcode`A \else
+ \chardef\catcountknit=\catcode`@
+ \catcode`@=11
+\fi
+
+%
+% Boolean variables
+%
+
+\newif \ifchartsonly \chartsonlyfalse
+\newif \ifgrid
+\newif \ifknitsymbol
+\newif \ifresetrn \resetrntrue
+\newif \ifleftrn@knit
+\newif \ifshowrn@knit \showrn@knittrue
+\newif \ifpdf@knit
+\newif \ifcountingout@knit
+\newif \ifCountStsThisRow@knit \CountStsThisRow@knittrue
+\pdf@knittrue
+\ifx \pdfoutput \undefined \pdf@knitfalse \fi
+\ifx \pdfoutput \relax \pdf@knitfalse \fi
+
+%
+% Color commands
+%
+
+% This defines pdfTeX-friendly or dvips-friendly color.
+% Change them to use your driver's syntax if you insist on
+% not using pdfTeX.
+
+% For black lines, just say \let \knitlinecolor \relax
+% If grayscale really just isn't working at all,
+% go down and redefine \changeknitsize
+\ifpdf@knit
+ \ifnum \pdftexversion < 140
+ \def\forecolor {\pdfliteral {0 g 0 G}\aftergroup\makenormalcolorknit}
+ \def\purlgray {\pdfliteral {0.65 g 0.65 G}\aftergroup\makenormalcolorknit}
+ \def\gridcolor {\pdfliteral {0.3 g 0.3 G}\aftergroup\makenormalcolorknit}
+ \def\knitlinecolor {\pdfliteral {0.7 0 0 rg 0.7 0 0 RG}\aftergroup\makenormalcolorknit}
+ \def\rncolor{\pdfliteral {0.55 0 0 rg 0.55 0 0 RG}\aftergroup\makenormalcolorknit}
+ \def\rnarrowcolor{\pdfliteral {0.35 0 0 rg 0.35 0 0 RG}\aftergroup\makenormalcolorknit}
+ \def\makenormalcolorknit{\ifcase \passnum@knit \pdfliteral {0.65 g 0.65 G}\or \pdfliteral {0.3 g 0.3 G}\else \pdfliteral {0 g 0 G}\fi}
+ \else
+ \def\forecolor {\pdfcolorstack 0 push {0 g 0 G}\aftergroup\makenormalcolorknit}
+ \def\purlgray {\pdfcolorstack 0 push {0.65 g 0.65 G}\aftergroup\makenormalcolorknit}
+ \def\gridcolor {\pdfcolorstack 0 push {0.3 g 0.3 G}\aftergroup\makenormalcolorknit}
+ \def\knitlinecolor {\pdfcolorstack 0 push {0.7 0 0 rg 0.7 0 0 RG}\aftergroup\makenormalcolorknit}
+ \def\rncolor{\pdfcolorstack 0 push {0.55 0 0 rg 0.55 0 0 RG}\aftergroup\makenormalcolorknit}
+ \def\rnarrowcolor{\pdfcolorstack 0 push {0.35 0 0 rg 0.35 0 0 RG}\aftergroup\makenormalcolorknit}
+ \def\makenormalcolorknit{\pdfcolorstack 0 pop}
+ \fi
+\else
+ \def\forecolor {\special{color push gray 0}\aftergroup\makenormalcolorknit}
+ \def\purlgray {\special{color push gray 0.65}\aftergroup\makenormalcolorknit}
+ \def\gridcolor {\special{color push gray 0.3}\aftergroup\makenormalcolorknit}
+ \def\knitlinecolor {\special{color push rgb 0.7 0 0}\aftergroup\makenormalcolorknit}
+ \def\rncolor{\special{color push rgb 0.55 0 0}\aftergroup\makenormalcolorknit}
+ \def\rnarrowcolor{\special{color push rgb 0.35 0 0}\aftergroup\makenormalcolorknit}
+ \def\makenormalcolorknit{\special{color pop}}
+\fi
+\def\knitoverlinecolor{\knitlinecolor}
+
+%
+% Plain TeX-only material (change knit size)
+%
+
+\def \changeknitsize#1{\fontsize@knit = #1
+ \font\knitsf = cmss10 at \fontsize@knit
+ \font\knitrm = cmr10 at \fontsize@knit
+ \font\knitsfsmall@knit = cmss8 at 0.8\fontsize@knit
+ \font\cablesf@knit = cmss8 at 0.8\fontsize@knit
+ \font\cablesfsmall@knit = ecss0600 at 0.6\fontsize@knit
+ % I would use cmss as the sans serif font here,
+ % but cmss6 doesn't exist.
+ %
+ \font\gff@knit = knitgn at \fontsize@knit
+ \font\wff@knit = knitwn at \fontsize@knit
+ \font\nff@knit = knitnn at \fontsize@knit
+ \font\mff@knit = knitmn at \fontsize@knit
+ %
+ \font\ggf@knit = knitgg at \fontsize@knit
+ \font\wgf@knit = knitwg at \fontsize@knit
+ \font\mgf@knit = knitmg at \fontsize@knit
+ %
+ \font\gpf@knit = knitgp at \fontsize@knit
+ \font\wpf@knit = knitwp at \fontsize@knit
+ \font\npf@knit = knitnp at \fontsize@knit
+ \font\mpf@knit = knitmp at \fontsize@knit
+ %
+ \font\raisen@knit = knitnr at \fontsize@knit
+ \font\lowern@knit = knitnl at \fontsize@knit
+ \font\raisem@knit = knitmr at \fontsize@knit
+ \font\lowerm@knit = knitml at \fontsize@knit
+ \let \raiseg@knit \raisem@knit
+ \let \raisew@knit \raisem@knit
+ \let \lowerg@knit \lowerm@knit
+ \let \lowerw@knit \lowerm@knit
+ %
+ \font \nstsout@knit = knitn_sc_out at \fontsize@knit
+ \font \nstsin@knit = knitn_sc_in at \fontsize@knit
+ \font \gstsout@knit = knitg_sc_out at \fontsize@knit
+ \font \gstsin@knit = knitg_sc_in at \fontsize@knit
+ \let \wstsout@knit \gstsout@knit
+ \let \wstsin@knit \gstsin@knit
+ \let \mstsout@knit \nstsout@knit
+ \let \mstsin@knit \nstsin@knit
+ %
+ %%% Use the following if you can't get the grays to work.
+ %%% In this case, don't use \Purl or \purlbox.
+ % \let \gridpf@knit \nullfont
+ % \let \widepf@knit \nullfont
+ % \let \nogridpf@knit \nullfont
+ % \let \purlgray \relax
+}
+\let \ngf@knit \nullfont
+
+
+%
+% Dimensions
+%
+
+\newdimen \leftgap@knit
+\newdimen \bgshift@knit
+\newdimen \chartwidth@knit
+\newdimen \stitchcountwidth@knit
+\newdimen \rnleftwd@knit
+\newdimen \rnrightwd@knit
+\newdimen \fontsize@knit
+
+\newbox\bgbox@knit
+\newbox\fgbox@knit
+\newbox\ggbox@knit
+
+\newcount \rownumber
+\newcount \tempcount@knit
+\newcount \rownumberskip \rownumberskip = 1
+\newcount \stitchcountin
+\newcount \stitchcountinprev
+\newcount \stitchcountout
+\newcount \shortrowstsin@knit
+\newcount \shortrowstsout@knit
+
+\def \passnum@knit{2}
+\def \stitchwd{\fontdimen6\ff@knit}
+\def \stitchwd@count@knit{\fontdimen6\stsout@knit}
+\def \stitchht{\fontdimen5\ff@knit}
+\def \stitchdp{\fontdimen8\ff@knit}
+% fontdimen9 is the LaTeX stitch height
+\def \gridwidth{\fontdimen10\ff@knit}
+\def \knitlinewd{\fontdimen11\ff@knit}
+\def \narrowincraise@knit{\fontdimen12\the\font}
+\def \fontvoffset@knit{\fontdimen13\the\font}
+\def \purlextend@knit{\fontdimen14\ff@knit}
+\def \rownumberwd{\fontdimen6\ff@knit}
+% The rest of them aren't \the\font because I want them to still work outside of a chart
+
+%
+% Fonts
+%
+
+\def \ff@knit{\csname \series@knit ff@knit\endcsname}
+\def \gf@knit{\csname \series@knit gf@knit\endcsname}
+\def \pf@knit{\csname \series@knit pf@knit\endcsname}
+\def \raiseff@knit{\csname raise\series@knit @knit\endcsname}
+\def \lowerff@knit{\csname lower\series@knit @knit\endcsname}
+\def \stsout@knit{\csname \series@knit stsout@knit\endcsname}
+\def \stsin@knit{\csname \series@knit stsin@knit\endcsname}
+
+\def \knitnogrid{\gridfalse\knitsymboltrue \def\series@knit{n}}
+\def \knitgrid{\gridtrue \knitsymbolfalse\def\series@knit{g}}
+\def \knitwide{\gridtrue \knitsymbolfalse\def\series@knit{w}}
+\def \knitmixed{\gridtrue \knitsymboltrue \def\series@knit{m}}
+
+\changeknitsize{10pt}
+
+\knitgrid
+
+%
+% Single-pass commands
+%
+
+\def \purlpass{\futurelet\next@knit\purlpass@@knit}
+\def \gridpass{\futurelet\next@knit\gridpass@@knit}
+\def \mainpass{\futurelet\next@knit\mainpass@@knit}
+\def \countpass{\futurelet\next@knit\mainpass@@knit}
+\def \purlpass@@knit{\ifx\next@knit[\def\nextstep@knit{\purlpass@knit}\else\def\nextstep@knit{\purlpass@knit[]}\fi\nextstep@knit}
+\def \gridpass@@knit{\ifx\next@knit[\def\nextstep@knit{\gridpass@knit}\else\def\nextstep@knit{\gridpass@knit[]}\fi\nextstep@knit}
+\def \mainpass@@knit{\ifx\next@knit[\def\nextstep@knit{\mainpass@knit}\else\def\nextstep@knit{\mainpass@knit[]}\fi\nextstep@knit}
+\def \countpass@@knit{\ifx\next@knit[\def\nextstep@knit{\countpass@knit}\else\def\nextstep@knit{\countpass@knit[]}\fi\nextstep@knit}
+\def \purlpass@knit[#1]#2{\ifnum\passnum@knit = 0 \def\nextstep@@knit{#2}\else \def\nextstep@@knit{#1}\fi\nextstep@@knit}
+\def \purlpass@knit[#1]#2{\ifnum\passnum@knit = 0 #2\else #1\fi}
+\def \gridpass@knit[#1]#2{\ifnum\passnum@knit = 1 #2\else #1\fi}
+\def \mainpass@knit[#1]#2{\ifnum\passnum@knit = 2 #2\else #1\fi}
+\def \countpass@knit[#1]#2{\ifnum\passnum@knit = 3 #2\else #1\fi}
+
+%
+% Text knit
+%
+
+\def \textknit#1{\leavevmode\hbox{\let\|\bar@knit\let\!\barthin@knit
+ \ff@knit \forecolor
+ \rlap{\pf@knit \purlgray \def\passnum@knit{0}#1}%
+ \ifgrid\rlap{\gf@knit \gridcolor \def\passnum@knit{1}#1}\fi
+ \def\passnum@knit{2}#1}}
+
+\def \do@endofpar@knit#1{\def\par{#1\endgraf\let\par\endgraf}}
+
+%
+% Special symbols
+%
+
+\def\narrowincreasestartnumber{1}
+\def\narrowdecreaseendnumber{1}
+
+\def \narrowdecrease#1{\genbobble@knit{#1}{1}{-\narrowincraise@knit}\adjuststitchcount[#1]{\narrowdecreaseendnumber}\adjuststitchcount[-1]{-1}}
+\def \pnarrowdecrease#1{\genbobble@knit{#1}{2}{-\narrowincraise@knit}\adjuststitchcount[#1]{\narrowdecreaseendnumber}\adjuststitchcount[-1]{-1}}
+\def \narrowincrease#1{\genbobble@knit{#1}{3}{\narrowincraise@knit}\adjuststitchcount[\narrowincreasestartnumber]{#1}\adjuststitchcount[-1]{-1}}
+\def \pnarrowincrease#1{\genbobble@knit{#1}{4}{\narrowincraise@knit}\adjuststitchcount[\narrowincreasestartnumber]{#1}\adjuststitchcount[-1]{-1}}
+\def \bobble#1{\genbobble@knit{#1}{0}{0pt}}
+
+\def \genbobble@knit#1#2#3{\char#2 \ifnum \passnum@knit = 2
+ \llap{\vbox to\stitchht{\vss \vskip\stitchdp \vskip\fontvoffset@knit \hbox to \stitchwd{\hfil\knitsfsmall@knit #1\hfil}\vskip #3\vss}}\fi}
+
+\def \wideincrease#1{\strut@knit
+ \ifnum\passnum@knit = 3 \narrowincrease{#1}\else
+ \hbox to #1\stitchwd{\char25
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char29
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char26}\fi}
+\def \widedecrease#1{\strut@knit
+ \ifnum #1 = 5 \char31 \else
+ \ifnum\passnum@knit = 3 \narrowdecrease{#1}\else
+ \hbox to #1\stitchwd{\char27
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char30
+ \hskip-0.1pt\leaders\hbox{\char22}\hfil\hskip-0.1pt
+ \char28}\fi\fi}
+
+% Standard chart commands
+
+% \obeylines is normally defined with \let^^M\par, not \def^^M{\par};
+% doing it this way makes it cooperate with \do@endofpar.
+
+{\catcode`\^^M = \active \catcode`\| = \active
+\global\def\commands@knit{%
+ \let\[\pnarrowincrease
+ \let\]\pnarrowdecrease
+ \let\<\narrowincrease
+ \let\>\narrowdecrease
+ \let\@\bobble
+ \let \! \barthin@knit
+ \let \| \bar@knit
+ \let | \bar@knit
+ \let \_ \horizlinenarrow@knit
+ \let \= \horizlinewide@knit
+ \let \- \horizline@knit
+ \let\overline\overline@knit
+ \let\underline\underline@knit
+ \let\rn\rn@knit
+ \let\rnbox\rnbox@knit
+ \let\rnboxleft\rnboxleft@knit
+ \let\rnboxright\rnboxright@knit
+ \let\rnleft\rnleft@knit
+ \let\rnright\rnright@knit
+ \let\nonumber\relax
+ \let\par\endgraf %Just in case someone's redefined it
+ \leftgap@knit=0pt
+ \def~{\ifnum\passnum@knit=3 \else \ifvmode \advance \leftgap@knit by \stitchwd
+ \else \kern \stitchwd \fi \fi}%
+ \def^^M{\par}%
+ \def\\{\par}%
+ }%
+}
+
+\def \strut@knit{\vrule width 0pt height \stitchht depth \stitchdp}
+
+% Drawing lines on the chart
+
+\def \horizlinenarrow@knit{\ifnum\passnum@knit<3 \ifvmode\nonumber\leavevmode\fi \dimen0 = \stitchwd \advance \dimen0 \knitlinewd
+ \ifnum\passnum@knit = 2
+ \hskip -0.5\knitlinewd\smash{{\knitoverlinecolor \vrule width \dimen0 height 0.5\knitlinewd depth 0.5\knitlinewd}}\hskip -0.5\knitlinewd
+ \else\hskip \stitchwd \fi\fi}
+\def \horizlinewide@knit#1{\ifnum\passnum@knit<3 \ifvmode\nonumber\leavevmode\fi \dimen0 = #1\stitchwd \advance \dimen0 \knitlinewd
+ \ifnum\passnum@knit = 2
+ \smash{{\knitoverlinecolor \vrule width \dimen0 height 0.5\knitlinewd depth 0.5\knitlinewd}}
+ \else\hskip \dimen0 \fi\fi}
+
+\def \horizline@knit{\futurelet\next@knit\horizline@@knit}
+\def \horizline@@knit{\ifx\next@knit*%
+ \def\nextstep@knit{\horizlinestar@knit}\else
+ \def\nextstep@knit{\horizlinenostar@knit}\fi\nextstep@knit}
+
+\def \horizlinestar@knit#1{\nonumber\nostitchcount\overlinestar@knit{\hskip#1\stitchwd}}
+\def \horizlinenostar@knit#1{\nonumber\nostitchcount\overlinenostar@knit{\hskip#1\stitchwd}}
+
+\def \bar@knit{\ifnum\passnum@knit < 3 \leavevmode
+ \ifgrid
+ \ifnum \passnum@knit = 0
+ \hbox{{\knitlinecolor \vrule width \knitlinewd depth \stitchdp height \stitchht}}%
+ \else
+ \kern \knitlinewd
+ \fi
+ \else
+ \ifnum \passnum@knit = 2
+ \hbox{\knitlinecolor \vrule width \knitlinewd depth \stitchdp height \stitchht}%
+ \else
+ \kern \knitlinewd
+ \fi
+ \fi\fi}
+
+\def \barthintop@knit{0pt}
+\def \barthinbot@knit{0pt}
+
+\def \barthin@knit{\leavevmode\strut@knit
+ \ifnum \passnum@knit = 2
+ \dimen2 = \stitchht \advance \dimen2 \barthintop@knit
+ \dimen3 = \stitchdp \advance \dimen3 \barthinbot@knit
+ \smash{\hbox to 0pt{\hss \knitlinecolor \vrule width \knitlinewd depth \dimen3 height \dimen2\hss}}%
+ \fi}
+
+\def \overline@knit{\futurelet\next@knit\overline@@knit}
+\def \overline@@knit{\ifx\next@knit*%
+ \def\nextstep@knit{\overlinestar@knit}\else
+ \def\nextstep@knit{\overlinenostar@knit}\fi\nextstep@knit}
+
+\def \overlinenostar@knit#1{\leavevmode{\def\barthintop@knit{\knitlinewd}%
+ \setbox0 = \hbox{#1}%
+ \ifgrid
+ \ifnum \passnum@knit = 0
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ {\rlap{\raise\ht0\hbox{\hskip -0.5\gridwidth\knitoverlinecolor \vrule width \dimen1 height \knitlinewd depth 0pt}}}%
+ \else
+ \raise\ht0\hbox{\vrule width 0pt height \knitlinewd depth 0pt}%
+ \fi
+ \else
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ {\rlap{\raise\ht0\hbox{\hskip -0.5\gridwidth\knitoverlinecolor \vrule width \dimen1 height \knitlinewd depth 0pt}}}%
+ \else
+ \dimen0=\ht0 \advance \dimen0 \knitlinewd
+ \vrule width 0pt height \dimen0 depth 0pt
+ \fi \fi
+ #1}}
+
+\def \overlinestar@knit#1#2{\leavevmode{\def\barthintop@knit{0.5\knitlinewd}% The #1 is to eat the *
+ \setbox0 = \hbox{#2}%
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \smash{\rlap{\raise\ht0\hbox{\hskip -0.5\gridwidth\knitoverlinecolor \vrule width \dimen1 height 0.5\knitlinewd depth 0.5\knitlinewd}}}%
+ \fi
+ #2}}
+
+\def \underline@knit{\futurelet\next@knit\underline@@knit}
+\def \underline@@knit{\ifx\next@knit*%
+ \def\nextstep@knit{\underlinestar@knit}\else
+ \def\nextstep@knit{\underlinenostar@knit}\fi\nextstep@knit}
+
+\def \underlinenostar@knit#1{\leavevmode{\def\barthinbot@knit{\knitlinewd}%
+ \setbox0 = \hbox{#1}%
+ \ifgrid
+ \ifnum \passnum@knit = 0
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \rlap{\raise-\dp0\hbox{\hskip -0.5\gridwidth\knitoverlinecolor \vrule width \dimen1 height 0pt depth \knitlinewd \hskip -0.5\gridwidth}}%
+ \else
+ \rlap{\raise-\dp0\hbox{\vrule width 0pt height 0pt depth \knitlinewd}}%
+ \fi
+ \else
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \rlap{\raise-\dp0\hbox{\hskip -0.5\gridwidth\knitoverlinecolor \vrule width \dimen1 height 0pt depth \knitlinewd \hskip -0.5\gridwidth}}%
+ \else
+ \rlap{\raise-\dp0\hbox{\vrule width 0pt height 0pt depth \knitlinewd}}%
+ \fi \fi
+ #1}}
+
+\def \underlinestar@knit#1#2{\leavevmode{\def\barthinbot@knit{0.5\knitlinewd}%
+ \setbox0 = \hbox{#2}%
+ \ifnum \passnum@knit = 2
+ \dimen1=\wd0 \advance\dimen1 by \gridwidth
+ \smash{\rlap{\raise-\dp0\hbox{\hskip -0.5\gridwidth\knitoverlinecolor \vrule width \dimen1 height 0.5\knitlinewd depth 0.5\knitlinewd \hskip -0.5\gridwidth}}}%
+ \fi
+ #2}}
+
+% Fancy cabling
+
+% \ifnum \passnum@knit = 3 \leavevmode \fi causes problems
+% due to the weird things we do automatically at the start of a paragraph
+\def\doifcounting@knit#1{}
+
+\def\cablebackground#1{\doifcounting@knit{\leavevmode}%
+ \ifnum \passnum@knit = 0 \leavevmode \hbox to \stitchwd{#1\hss {\raiseff@knit \def\passnum@knit{2}\forecolor#1}}\else \char255 \fi}
+\def\cableforeground#1{\doifcounting@knit{\leavevmode}%
+ \ifnum \passnum@knit = 0 \leavevmode \hbox to \stitchwd{#1\hss {\lowerff@knit \def\passnum@knit{2}\forecolor#1}}\else \char254 \fi}
+
+\def\orphancablewarning@knit{\message{Package knit warning: Orphaned half cable on input line \the\inputlineno.}}
+
+\def \cableleft#1#2{\leavevmode{\ifgrid\knitmixed\fi
+ \ifcase\passnum@knit
+ \hbox{\pf@knit #1#2}%
+ \or
+ \setbox0=\hbox{\pf@knit #1#2}%
+ \hbox to \wd0{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \hbox{\let\knitsf \cablesf@knit \let \knitsfsmall@knit \cablesfsmall@knit %
+ \setbox1=\hbox{#1}%
+ \setbox2=\hbox{#2}%
+ \ifdim \wd1 = 0pt \orphancablewarning@knit \fi
+ \ifdim \wd2 = 0pt \orphancablewarning@knit \fi
+ {\lowerff@knit \rlap{#1}\hbox to \wd1{\leaders\hbox to \stitchwd{\hfil\char15}\hfil\ifdim\wd1>0pt \hskip\stitchwd\char10\fi}%
+ \ifdim\wd1>0pt \ifdim \wd2>0pt \char13\fi \fi }%
+ {\raiseff@knit \rlap{#2}\hbox to \wd2{\ifdim\wd2>0pt \char12\hskip\stitchwd\fi\leaders\hbox to \stitchwd{\char8\hfil}\hfil}}}%
+ \else
+ #1#2\fi}}
+\def \cableright#1#2{\leavevmode{\ifgrid\knitmixed\fi
+ \ifcase\passnum@knit
+ \hbox{\pf@knit #1#2}%
+ \or
+ \setbox0=\hbox{\pf@knit #1#2}%
+ \hbox to \wd0{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \hbox{\let\knitsf \cablesf@knit \let \knitsfsmall@knit \cablesfsmall@knit %
+ \setbox1=\hbox{#1}%
+ \setbox2=\hbox{#2}%
+ \ifdim \wd1 = 0pt \orphancablewarning@knit \fi
+ \ifdim \wd2 = 0pt \orphancablewarning@knit \fi
+ {\raiseff@knit \rlap{#1}\hbox to \wd1{\leaders\hbox to \stitchwd{\hfil\char16}\hfil\ifdim\wd1>0pt \hskip\stitchwd\char9\fi}%
+ \ifdim\wd1>0pt \ifdim \wd2>0pt \char14\fi \fi }%
+ {\lowerff@knit \rlap{#2}\hbox to \wd2{\ifdim\wd2>0pt \char11\hskip\stitchwd \fi\leaders\hbox to \stitchwd{\char7\hfil}\hfil}}}%
+ \else
+ #1#2\fi}}
+
+% Knit, purl, knitboxes
+
+\def \knit#1{\strut@knit\hbox to #1\stitchwd{\leaders\hbox{-}\hfil}}
+\def \purl#1{\strut@knit\hbox to #1\stitchwd{\leaders\hbox{=}\hfil}}
+
+\def \knitboxbackground{}
+\def \purlboxbackground{\purlgray }
+\def \purlboxforeground{}
+\def \knitboxforeground{}
+
+\def \Knit{\futurelet\next@knit\Knit@knit}
+\def \Knit@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\Knit@@knit}\else
+ \def\nextstep@knit{\Knit@@knit[0]}\fi\nextstep@knit}
+\def \Knit@@knit[#1]#2#3{\strut@knit
+ \setbox0 = \hbox{\knitsf #2}%
+ \ifcase \passnum@knit
+ \ifx \empty \knitboxbackground
+ \vrule width #3\stitchwd height 0pt depth 0pt
+ \else
+ {\knitboxbackground \purlbackground{\vrule width #3\stitchwd depth \stitchdp height \stitchht}}\fi
+ \or
+ \ifknitsymbol
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \else
+ \hbox{\hbox to #3\stitchwd{%
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil
+ \hskip \wd0
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil}%
+ \hskip -#3\stitchwd
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}}%
+ \fi
+ \or
+ \hbox to #3\stitchwd{%
+ {\knitboxforeground\leaders\hbox{-}%
+ \ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ }%
+ \lower\stitchdp\vbox to\stitchht{\vss\vskip\fontvoffset@knit\hbox{\knitsf #2}\vss\vskip\stitchdp}
+ {\knitboxforeground \count255 = -#1 \leaders\hbox{-}%
+ \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi
+ }}%
+ \or
+ \hbox to \Knitstitchcount{#2}{#3}\stitchwd{\hfil}
+ \fi}
+\def \Purl{\futurelet\next@knit\Purl@knit}
+\def \Purl@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\Purl@@knit}\else
+ \def\nextstep@knit{\Purl@@knit[0]}\fi\nextstep@knit}
+\def \Purl@@knit[#1]#2#3{\strut@knit
+ \setbox0 = \hbox{\knitsf #2}%
+ \ifcase \passnum@knit
+ \ifx \empty \purlboxbackground
+ \vrule width #3\stitchwd height 0pt depth 0pt
+ \else
+ {\purlboxbackground \purlbackground{\vrule width #3\stitchwd depth \stitchdp height \stitchht}}\fi
+ \or
+ \ifknitsymbol
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \else
+ \hbox{\hbox to #3\stitchwd{%
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil
+ \hskip \wd0
+ \leaders \hbox to \stitchwd{\char6\hfil\char6}\hfil}%
+ \hskip -#3\stitchwd
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}}%
+ \fi
+ \or
+ \hbox to #3\stitchwd{%
+ {\purlboxforeground\leaders\hbox{=}%
+ \ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ }%
+ \lower\stitchdp\vbox to\stitchht{\vss\vskip\fontvoffset@knit\hbox{\knitsf #2}\vss\vskip\stitchdp}
+ {\purlboxforeground \count255 = -#1 \leaders\hbox{=}%
+ \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi
+ }}%
+ \or
+ \hbox to \Purlstitchcount{#2}{#3}\stitchwd{\hfil}
+ \fi}
+
+\def \Knitstitchcount#1#2{#2}
+\def \Purlstitchcount#1#2{#2}
+\def \knitboxstitchcount#1#2{#2}
+\def \purlboxstitchcount#1#2{#2}
+
+\def \knitbox{\futurelet\next@knit\knitbox@knit}
+\def \knitbox@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\knitbox@@knit}\else
+ \def\nextstep@knit{\knitbox@@knit[0]}\fi\nextstep@knit}
+\def \knitbox@@knit[#1]#2#3{\strut@knit
+ \ifcase \passnum@knit
+ \ifx \empty \knitboxbackground
+ \vrule width #3\stitchwd height 0pt depth 0pt
+ \else
+ {\knitboxbackground \purlbackground{\vrule width #3\stitchwd depth \stitchdp height \stitchht}}\fi
+ \or
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \lower\stitchdp\vbox to\stitchht{%
+ \vss\vskip\fontvoffset@knit
+ \hbox to #3\stitchwd{\ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ {\knitsf #2}%
+ \count255 = -#1 \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi}%
+ \vss\vskip\stitchdp}%
+ \or
+ \hbox to \knitboxstitchcount{#2}{#3}\stitchwd{\hfil}
+ \fi}
+\def \purlbox{\futurelet\next@knit\purlbox@knit}
+\def \purlbox@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\purlbox@@knit}\else
+ \def\nextstep@knit{\purlbox@@knit[0]}\fi\nextstep@knit}
+\def \purlbox@@knit[#1]#2#3{\strut@knit
+ \ifcase \passnum@knit
+ \ifx \empty \purlboxbackground
+ \vrule width #3\stitchwd height 0pt depth 0pt
+ \else
+ {\purlboxbackground \purlbackground{\vrule width #3\stitchwd depth \stitchdp height \stitchht}}\fi
+ \or
+ \hbox to #3\stitchwd{\char6\leaders\hbox{\char5}\hfil\char6}%
+ \or
+ \lower\stitchdp\vbox to\stitchht{%
+ \vss\vskip\fontvoffset@knit
+ \hbox to #3\stitchwd{\ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ {\knitsf #2}%
+ \count255 = -#1 \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi}%
+ \vss\vskip\stitchdp}%
+ \or
+ \hbox to \purlboxstitchcount{#2}{#3}\stitchwd{\hfil}%
+ \fi}
+
+\def \purlbackground#1{%
+ \ifnum\passnum@knit=0
+ \setbox0=\hbox{#1}%
+ \dimen0 = \wd0 \advance\dimen0 2\purlextend@knit
+ \dimen1 = \stitchht \advance\dimen1 \purlextend@knit
+ \dimen2 = \stitchdp \advance\dimen2 \purlextend@knit
+ \vrule width 0pt height \ht0 depth \dp0
+ \smash{\vrule width \dimen0 height \dimen1 depth \dimen2}%
+ \kern-\purlextend@knit
+ \else#1\fi}
+
+\def \widesymbol{\futurelet\next@knit\widesymbol@knit}
+\def \widesymbol@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\widesymbol@@knit}\else
+ \def\nextstep@knit{\widesymbol@@knit[0]}\fi\nextstep@knit}
+\def \widesymbol@@knit[#1]#2#3{\strut@knit
+ \ifcase \passnum@knit
+ \knitbox{}{#3}\or
+ \knitbox{}{#3}\or
+ \hbox to #3\stitchwd{\ifnum #1>0 \hskip #1\stitchwd plus 1fil minus #1\stitchwd \else\hfil\fi
+ #2%
+ \count255 = -#1 \ifnum #1<0 \hskip \count255\stitchwd plus 1fil minus \count255\stitchwd \else\hfil\fi}\else
+ \widesymbolspacer{#2}{#3}\relax\fi}
+
+\def\widesymbolspacer#1#2{#1}
+
+
+% Row number commands
+
+\def \numberrow#1#2#3{\ifnum\passnum@knit=3 \ifvmode\vskip\stitchht\fi\else
+ \ifvmode\nonumber\leavevmode\fi
+ \strut@knit
+ \count255=#1
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \rncolor \knitrm#1\fi\hss}%
+ \ifnum #1 > #3
+ \advance\count255 -1
+ \loop \ifnum \count255>#3
+ \tempcount@knit = \count255
+ \divide\tempcount@knit #2
+ \multiply \tempcount@knit #2
+ \ifnum\tempcount@knit = \count255
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \rncolor \knitrm\the\count255 \fi \hss}%
+ \else
+ \kern\stitchwd
+ \fi
+ \advance\count255 -1
+ \repeat
+ \else
+ \advance\count255 1
+ \loop \ifnum \count255<#3
+ \tempcount@knit = \count255
+ \divide\tempcount@knit #2
+ \multiply \tempcount@knit #2
+ \ifnum\tempcount@knit = \count255
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \rncolor \knitrm\the\count255 \fi \hss}%
+ \else
+ \kern\stitchwd
+ \fi
+ \advance\count255 1
+ \repeat
+ \fi
+ \hbox to \stitchwd{\hss\ifnum \passnum@knit = 2 \rncolor \knitrm#3\fi \hss}%
+ \fi}
+
+\def \rnoddonly{\def\rncore@knit##1{\ifshowrn@knit \ifodd\rownumber \csname print##1rownumber\endcsname{\therownumber}\fi\fi}}
+\def \rnevenonly{\def\rncore@knit##1{\ifshowrn@knit \ifodd\rownumber \else\csname print##1rownumber\endcsname{\therownumber}\fi\fi}}
+\def \rnnormal{\def\rncore@knit##1{\ifshowrn@knit \csname print##1rownumber\endcsname{\therownumber}\fi}}
+
+\def \rncore@knit#1{\ifshowrn@knit \csname print#1rownumber\endcsname{\therownumber}\fi}
+\def \rnstep@knit{\ifshowrn@knit
+ \ifnum \passnum@knit = 2 \global\advance\rownumber -\rownumberskip \relax\fi
+ \ifnum \passnum@knit = 0 \global\advance\rownumber -\rownumberskip \relax\fi
+ \else\global\showrn@knittrue\fi}
+
+\def \printrownumber#1{{\rncolor \knitrm #1}}
+\def \printrightrownumber#1{\knitleftarrowhead{\rncolor \knitrm #1}}
+\def \printleftrownumber#1{{\rncolor \knitrm #1}\knitrightarrowhead}
+\def \knitrightarrowhead{{\rnarrowcolor \char125}}
+\def \knitleftarrowhead{{\rnarrowcolor \char123}}
+
+\def \therownumber{\number\rownumber}
+
+\def \rn@knit{\ifnum \passnum@knit < 3 \leavevmode
+ \hbox to \rownumberwd{\hss\ifnum \passnum@knit = 2 \rncore@knit{}\fi\rnstep@knit\hss}\fi}
+\def \rnleft@knit{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 \rncore@knit{left}\fi\rnstep@knit}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly\advance \dimen0 1pt\fi
+ \ifdim \dimen0 > \rnleftwd@knit \global\rnleftwd@knit = \dimen0 \fi
+ \hbox to 0pt{\hss\box0}\fi}
+\def \rnright@knit{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 \rncore@knit{right}\fi\rnstep@knit}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly\advance \dimen0 1pt\fi
+ \ifdim \dimen0 > \rnrightwd@knit \global\rnrightwd@knit = \dimen0 \fi
+ \hbox to 0pt{\box0\hss}\fi}
+
+\def \rnbox@knit#1{\ifnum \passnum@knit < 3 \leavevmode
+ \hbox to \rownumberwd{\hss\ifnum \passnum@knit = 2 {\printrownumber{#1}}\fi\hss}\fi}
+\def \rnboxleft@knit#1{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 {\printleftrownumber{#1}}\fi}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly\advance \dimen0 1pt\fi
+ \ifdim \dimen0 > \rnleftwd@knit \global\rnleftwd@knit = \dimen0 \fi
+ \hbox to 0pt{\hss\box0}\fi}
+\def \rnboxright@knit#1{\ifnum \passnum@knit < 3 \leavevmode
+ \setbox0 = \hbox{\ifnum \passnum@knit = 2 {\printrightrownumber{#1}}\fi}
+ \dimen0 = \wd0 %\advance \dimen0 -\rownumberwd
+ \ifchartsonly \advance \dimen0 1pt \fi
+ \ifdim \dimen0 > \rnrightwd@knit \global\rnrightwd@knit = \dimen0 \fi
+ \hbox to 0pt{\box0\hss}\fi}
+
+% Title for the chart
+\def\charttitle@knit{}
+\def\titlechart#1{\def\charttitle@knit{#1}}
+
+% The chart commands
+
+\def \chart{\futurelet\next@knit\chart@@knit}
+\def \chart@@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\smallpage@knit\obeylines \catcode`\|=\active \catcode`\# = 12 \chart@knit}\else
+ \def\nextstep@knit{\smallpage@knit\obeylines \catcode`\|=\active \catcode`\# = 12 \chart@knit[]}\fi\nextstep@knit}
+
+% Some special stuff for chartsonly mode
+\let\extracommands@knit\relax
+\def \smallpage@knit{\noindent\hbox\bgroup}
+\let\endsmallpage@knit\egroup
+
+% The chart command proper
+\long\def\chart@knit[#1]#2{%
+ \global \chartwidth@knit = 0pt
+ \ifresetrn \rownumber = 0 \else \tempcount@knit = \rownumber \fi
+ \setbox\bgbox@knit=\vbox{\def\passnum@knit{0}\hsize=\maxdimen
+ \pf@knit
+ \lineskip=0pt
+ \parskip=0pt
+ \baselineskip=0pt
+ \parindent=0pt
+ \emergencystretch = \stitchwd
+ \leftskip=0pt
+ \rightskip=0pt
+ \parfillskip=0pt plus 1fil
+ \ifresetrn\else\let\rnstep@knit\relax\fi
+ \commands@knit\extracommands@knit
+ \def\nonumber{\global\showrn@knitfalse}%
+ \csname auto#1@knit\endcsname #2\par}%
+ \ifresetrn \tempcount@knit = -\rownumber \fi
+ \ifgrid
+ \setbox\ggbox@knit=\vbox{\def\passnum@knit{1}\hsize=\maxdimen
+ \gf@knit
+ \lineskip=0pt
+ \parskip=0pt
+ \baselineskip=0pt
+ \parindent=0pt
+ \emergencystretch = \stitchwd
+ \leftskip=0pt
+ \rightskip=0pt
+ \parfillskip=0pt plus 1fil
+ \commands@knit\extracommands@knit
+ \def\nonumber{\global\showrn@knitfalse}%
+ \csname auto#1@knit\endcsname #2\par}%
+ \fi
+ \rownumber = \tempcount@knit %
+ \global \rnleftwd@knit = 0pt
+ \global \rnrightwd@knit = 0pt
+ \setbox\fgbox@knit=\vbox{\def\passnum@knit{2}\hsize=\maxdimen
+ \ff@knit
+ \lineskip=0pt
+ \parskip=0pt
+ \baselineskip=0pt
+ \parindent=0pt
+ \emergencystretch = \stitchwd
+ \leftskip=0pt
+ \rightskip=0pt
+ \parfillskip=0pt plus 1fil
+ \commands@knit\extracommands@knit
+ \def\nonumber{\global\showrn@knitfalse}%
+ \csname auto#1@knit\endcsname #2\par}%
+ \global\advance \chartwidth@knit \rnleftwd@knit
+ \global\advance \chartwidth@knit \rnrightwd@knit
+ \ifchartsonly \global\advance \chartwidth@knit 0.5\gridwidth \fi
+ \hbox to \chartwidth@knit{\hskip \rnleftwd@knit
+ \rlap{\purlgray \box\bgbox@knit}%
+ \ifgrid\rlap{\gridcolor \box\ggbox@knit}\fi
+ %
+ \ifchartsonly
+ \dimen2 = \dp \fgbox@knit \dimen3 = \ht \fgbox@knit
+ \advance\dimen2 0.5\gridwidth \advance\dimen3 0.5\gridwidth
+ \vrule width 0pt height \dimen3 depth \dimen2
+ \fi
+ % If we are doing charts only, we want to enlarge things enough that
+ % we can see the grid on all sides.
+ % But if we aren't, we want adjacent charts to merge seamlessly
+ % because using separate charts is the only way to allow charts to
+ % break across pages.
+ \vbox{%
+ \ifx\empty\charttitle@knit\empty\else
+ \hbox to \chartwidth@knit{\hskip \rnleftwd@knit\printcharttitle{\charttitle@knit}\hskip \rnrightwd@knit}\fi
+ \box\fgbox@knit}%
+ \hss}%
+ \endsmallpage@knit
+ \gdef\charttitle@knit{}
+ }
+
+\def\printcharttitle#1{\hfil\vrule depth 3pt height 9pt width 0pt \relax #1\hfil}
+
+% Special charts only macros
+
+\newif \ifchartsonlysideways \chartsonlysidewaysfalse
+
+\def \chartsonly{\chartsonlytrue
+ \ifpdf@knit\else\errmessage{Package knit error: \chartsonly should only be used with pdfTeX.}\fi%
+ \hoffset=-1in
+ \voffset=-1in
+ \vsize = 120in
+ \topskip = 0pt % Causes problems in one-row charts if this isn't present
+ \def\smallpage{\vfil\break
+ \global\chartwidth@knit=0pt
+ \setbox0 = \vbox\bgroup
+ \def\smallpage@knit{\let\endsmallpage@knit\egroup \noindent \hbox\bgroup}%
+ }
+ \def\endsmallpage{\egroup%
+ \ifchartsonlysideways
+ %
+ \pdfpageheight=\wd0
+ %
+ \dimen0=\ht0 \advance \dimen0 by \dp0
+ \pdfpagewidth=\dimen0
+ %
+ \ifdim \pdfpagewidth > \vsize
+ %{\newlinechar=`|
+ %\message{||The chart ending on line \the\inputlineno\space is too big.}
+ %\message{|Compensate by increasing \string\vsize\space or by breaking the chart into pieces.}%
+ %\message{|What do you want such a big chart for, anyway?||}}%
+ \fi
+ %
+ % Commands borrowed from samplepdf.tex
+ \setbox1=\hbox{\copy0}%
+ \wd1 = 0pt
+ \ht1 = 0pt
+ \dp1 = 0pt
+ \vtop{\vskip\wd0
+ \leftline{\hskip-2pt\hskip\ht0\hskip\dp0%
+ \pdfliteral{q 0 1 -1 0 0 0 cm}%
+ \box1
+ \pdfliteral{Q}}}
+ \else
+ %
+ \pdfpagewidth=\wd0
+ %
+ \dimen0=\ht0 \advance \dimen0 by \dp0
+ \pdfpageheight=\dimen0
+ %
+ \ifdim \pdfpageheight > \vsize
+ %{\newlinechar=`|
+ %\message{||The chart ending on line \the\inputlineno\space is too big.}
+ %\message{Compensate by increasing \string\vsize\space or by breaking the chart into pieces.}%
+ %\message{What do you want such a big chart for, anyway?||}}%
+ \fi
+ %
+ \box0
+ \fi
+ \vfil\break
+ }
+ \let\smallpage@knit\smallpage
+ \let\endsmallpage@knit\endsmallpage
+ \def\extracommands@knit{%
+ \leftskip = 0.5\gridwidth
+ \rightskip = 0.5\gridwidth
+ %\vskip \gridwidth
+ }
+}
+\let\smallpage\begingroup
+\let\endsmallpage\endgroup
+
+% Autonumbering macros
+
+\def \everypar@knit{\hskip\leftgap@knit \leftgap@knit=0pt \relax}
+
+\def \auto@knit{\let\nonumber\relax \everypar={\everypar@knit\do@endofpar@knit{\adjustchartwidth@knit}}}
+\def \autoleft@knit{\everypar={\everypar@knit\rnleft@knit\do@endofpar@knit{\adjustchartwidth@knit}}}
+\def \autoright@knit{\everypar={\everypar@knit\do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}}}
+\def \autooddleft@knit{\everypar={\everypar@knit
+ \ifodd \rownumber %
+ \rnleft@knit\do@endofpar@knit{\adjustchartwidth@knit}%
+ \else %\hskip\rownumberwd
+ \do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}\fi}}
+\def \autooddright@knit{\everypar={\everypar@knit
+ \ifodd \rownumber %\hskip\rownumberwd
+ \do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}%
+ \else\rnleft@knit\do@endofpar@knit{\adjustchartwidth@knit}\fi}}
+\def \autoboth@knit{\everypar={\everypar@knit\rnleft@knit\global\advance\rownumber 1 \do@endofpar@knit{\rnright@knit\adjustchartwidth@knit}}}
+\let\autoevenleft@knit\autooddright@knit
+\let\autoevenright@knit\autooddleft@knit
+
+\def \adjustchartwidth@knit{\endgraf
+ \ifnum \passnum@knit = 2 \setbox0=\lastbox
+ \setbox1=\hbox{\unhcopy0\unskip}%
+ \box0
+ \ifdim\wd1 >\chartwidth@knit \global\chartwidth@knit=\wd1\fi\fi}
+
+% Stitch-counting macros
+
+\def \adjuststitchcount{\futurelet\next@knit\adjuststitchcount@knit}
+\def \adjuststitchcount@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\adjuststitchcount@@knit}\else
+ \def\nextstep@knit{\adjuststitchcount@@knit[\relax]}\fi\nextstep@knit}
+\def \adjuststitchcount@@knit[#1]#2{%
+ \leavevmode\ifnum\passnum@knit=3 \null
+ \ifcountingout@knit \kern #2\stitchwd \else \ifx#1\relax \kern#2\stitchwd \else \kern #1\stitchwd \fi \fi \null\fi}
+
+\def \stitchcountwarningbar{%
+ \ifnum \stitchcountinprev = \stitchcountout \else
+ \ifnum \stitchcountinprev > -99
+ \vrule width \overfullrule
+ \message{Package knit warning: Stitch count mismatch on input line \the\inputlineno.}
+ \fi \fi}
+
+\def \countstitches#1{%
+ \global\stitchcountinprev = \stitchcountin
+ \setbox0 = \hbox{\def\passnum@knit{3}\countingout@knittrue \let\stitchwd\stitchwd@count@knit \stsout@knit #1}%
+ \stitchcountout = \wd0
+ \dimen0 = 0.5\stitchwd@count@knit \advance \stitchcountout \dimen0
+ \global\divide \stitchcountout \stitchwd@count@knit
+ \setbox1 = \hbox{\def\passnum@knit{3}\countingout@knitfalse \let\stitchwd\stitchwd@count@knit \stsin@knit #1}%
+ \stitchcountin = \wd1
+ \dimen1 = 0.5\stitchwd@count@knit \advance \stitchcountin \dimen1
+ \global\divide \stitchcountin \stitchwd@count@knit
+ }
+
+\def \stitchcountchart{\futurelet\next@knit\stitchcountchart@knit}
+\def \stitchcountchart@knit{\ifx\next@knit[%
+ \def\nextstep@knit{\stitchcountchart@@knit}\else
+ \def\nextstep@knit{\stitchcountchart@@knit[]}\fi\nextstep@knit}
+\def \stitchcountchart@@knit[#1]{\begingroup \catcode`\|=\active \catcode`\# = 12 \def\chartrn@knit{#1}\obeylines \afterassignment \printstitchcountchart@knit \toks0 =}
+
+\def \printstitchcountchart@knit{\smallpage@knit\hbox{%
+ \ifx\relax\printleftstitchcount\else\ifx \empty \printleftstitchcount\else
+ \let\printstitchcount@knit\printleftstitchcount
+ \def\stitchcountside@knit{0}\makestitchcounts@knit \fi\fi
+ \chart[\chartrn@knit]{\the\toks0}%
+ \ifx\relax\printrightstitchcount\else\ifx \empty \printrightstitchcount\else
+ \let\printstitchcount@knit\printrightstitchcount
+ \def\stitchcountside@knit{1}\makestitchcounts@knit\fi\fi
+ }\endsmallpage@knit
+ \endgroup}
+
+{\obeylines
+\gdef\countstitcheseachrow@knit#1^^M{%
+ \setbox1 = \hbox{#1}%
+ \ifCountStsThisRow@knit%
+ \countstitches{#1}%
+ \setstitchcountlabel@knit%
+ \else%
+ \global\CountStsThisRow@knittrue%
+ \setbox0=\hbox{}%
+ \fi%
+ \printstitchcountlabel@knit}
+\gdef\shortrows@countstitcheseachrow@knit#1^^M{\countstitches{#1} %
+ \ifx \relax \shortrowrowcount@knit %
+ \global\advance \shortrowstsin@knit \stitchcountin \global\advance \shortrowstsout@knit \stitchcountout %
+ \global\let \shortrowrowcount@knit 2
+ % For some reason, we MUST NOT have a % after the 2.
+ \else%
+ \global\advance \shortrowstsin@knit -\stitchcountout \global\advance \shortrowstsout@knit -\stitchcountin %
+ \global\let \shortrowrowcount@knit \relax
+ \fi%
+ \global\stitchcountin = \stitchcountinprev %
+ }
+\gdef\shortrows@printstitchcountlabel@knit#1^^M{\setbox1 = \hbox{#1}\printstitchcountlabel@knit\setbox0=\hbox{}}
+\gdef\shortrows#1{%
+ \ifnum \passnum@knit = 3
+ \shortrowstsin@knit = 0 \shortrowstsout@knit = 0 \global\let \shortrowrowcount@knit \relax %
+ \setbox2 = \vbox{\everypar = {\shortrows@countstitcheseachrow@knit}%
+ #1
+ }%
+ \ifx \shortrowrowcount@knit \relax
+ \advance \stitchcountin \shortrowstsin@knit \advance \stitchcountin -\shortrowstsout@knit %
+ \else
+ \stitchcountinprev = \stitchcountin \stitchcountin = \shortrowstsin@knit \stitchcountout = \shortrowstsout@knit %
+ \fi %
+ \setstitchcountlabel@knit%
+ \vbox{\everypar = {\shortrows@printstitchcountlabel@knit}%
+ \ifx \shortrowrowcount@knit \relax \setbox0=\hbox{} \else
+ \ifCountStsThisRow@knit\else \setbox0=\hbox{} \global\CountStsThisRow@knittrue \fi \fi
+ #1
+ }%
+ \else%
+ #1
+ \fi%
+ \par}
+ }
+
+\def\setstitchcountlabel@knit{\setbox0=\hbox{\def\passnum@knit{2}\strut@knit \printstitchcount@knit\stitchcountwarningbar}}
+\def\printstitchcountlabel@knit{\ifdim \wd0 > \stitchcountwidth@knit \global\stitchcountwidth@knit = \wd0 \fi
+ \hbox to 0pt{\ifnum\stitchcountside@knit = 0 \hss\fi
+ \vrule width 0pt height \ht1 depth \dp1 \smash{\box0}%
+ \ifnum\stitchcountside@knit = 1 \hss\fi}%
+ \par}
+
+\def\makestitchcounts@knit{\hbox{\setbox1=\vbox{\stitchcountin = -1001
+ \global\stitchcountwidth@knit=0pt
+ \global\CountStsThisRow@knittrue
+ \parindent=0pt
+ \def\passnum@knit{3}
+ \def\doifcounting@knit##1{##1}
+ \ff@knit
+ \commands@knit
+ \everypar={\countstitcheseachrow@knit} \offinterlineskip
+ \the\toks0
+ }%
+ \ifnum\stitchcountside@knit = 0
+ \hskip \stitchcountwidth@knit\rlap{\box1}%
+ \else
+ \rlap{\box1}\hskip \stitchcountwidth@knit
+ \fi
+}}
+
+\def\nostitchcount{\ifnum \passnum@knit = 3 \global \CountStsThisRow@knitfalse \fi}
+
+\def \knitdebug{\def \printleftstitchcount{{\rncolor \knitrm(\the\stitchcountout\ out, \the\stitchcountin\ in) }}}
+
+\def \printleftstitchcount{{\rncolor \knitrm(\the\stitchcountout\ sts) }}
+\def \printrightstitchcount{}
+
+\def \knitdebugging{\def \printleftstitchcount{{\rncolor \knitrm(\the\stitchcountout\ out/\the\stitchcountin\ in) }}}
+
+\catcode`\@=\catcountknit
+