From 657adf92d9c481cc3c77592ff0c5c42b95698bd7 Mon Sep 17 00:00:00 2001 From: Phil Holmes Date: Tue, 10 Sep 2013 11:18:13 +0100 Subject: [PATCH] Metafont formatting instructions --- Documentation/contributor/feta-font.itexi | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) 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 -- 2.39.5