]> git.donarmstrong.com Git - lilypond.git/commitdiff
Metafont formatting instructions
authorPhil Holmes <mail@philholmes.net>
Tue, 10 Sep 2013 10:18:13 +0000 (11:18 +0100)
committerPhil Holmes <mail@philholmes.net>
Thu, 12 Sep 2013 15:37:52 +0000 (16:37 +0100)
Documentation/contributor/feta-font.itexi

index 78021ae8d73c858a3be151dc9e3888c90aa7b983..002aa895a43167a4fc9eac319d2925e6de207b9e 100644 (file)
@@ -118,15 +118,23 @@ make
 
 There are special formatting rules for METAFONT files.
 
-Tabs are used for indentation.
+Tabs are used for the indentation of commands.
 
 When a path contains more than two points, put each point on a
-separate line, with the operator at the beginning  of the line:
+separate line, with the operator at the beginning of the line.
+The operators are indented to the same depth as the initial point
+on the path using spaces.  The indentation mechanism is illustrated
+below, with @samp{------->} indicating a tab character and any other
+indentation created using spaces.
 
 @example
-fill z1
-     -- z2
-     -- z3
-     .. cycle;
+def draw_something (test) =
+------->if test:
+------->------->fill z1
+------->------->     -- z2
+------->------->     -- z3
+------->------->     .. cycle;
+------->fi;
+enddef;
 @end example