From: Phil Holmes Date: Tue, 10 Sep 2013 10:18:13 +0000 (+0100) Subject: Metafont formatting instructions X-Git-Tag: release/2.17.27-1~40^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=657adf92d9c481cc3c77592ff0c5c42b95698bd7;p=lilypond.git Metafont formatting instructions --- diff --git a/Documentation/contributor/feta-font.itexi b/Documentation/contributor/feta-font.itexi index 78021ae8d7..002aa895a4 100644 --- a/Documentation/contributor/feta-font.itexi +++ b/Documentation/contributor/feta-font.itexi @@ -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