Parameters
Following is a reference list of Xgridfit parameters. The long forms of these parameters are used when you run Xgridfit by invoking an XSLT processor directly; the one-letter forms are used when running the simple xgridfit script. The syntax for passing parameters to Xgridfit differs among various implementations of XSLT: consult the documentation for your preferred XSLT processor.
Some Xgridfit <default> elements have parameter equivalents. The parameter always takes precedence when it is present.
-i, infile
This is the name of a FontForge source file (.sfd) or TrueType font (.ttf) to be opened by the FontForge script generated by Xgridfit.
-o, outfile
The name of the file to be written by the FontForge script generated by Xgridfit. If you want FontForge to write a source file, the filename should end .sfd; if you want FontForge to generate a font, it should end .ttf. It is an error if the filename does not have one of these two extensions.
It is strongly recommended that the infile and outfile names be different--that is, that you do not overwrite the file that your FontForge script reads.
font-file
Deprecated. The name of a file to both read and write. The xgridfit script does not implement this parameter.
-O (output script)
The name of the FontForge script that Xgridfit generates. Normally the name of this script is the same as the name of the Xgridfit program, but with extension .pe instead of .xgf. This option (available only via the xgridfit command) overrides this behavior.
-S, outfile-base
When this option is present, Xgridfit produces a separate file for every glyph it compiles. The file has the name specified here, plus the ps-name of the glyph, plus the extension .pe or .debug. For this command line,
xgridfit -S Test Myfont.xgf
you will get files Test_A.pe, Test_B.pe, etc., and also a file Myfont.pe containing control values and other global elements. Note that if the <outfile> element is present (or the -o option is used), the -S option also causes the resulting output to be saved in a separate file. Use the -z option (see next) to specify a filename.
This option depends on an XSLT extension element that is not available with every XSLT engine.
-z, outfile-script-name
When the <outfile-base> element is present or the -S option is used, and the <outfile> element is present or the -o option is used, Xgridfit saves the FontForge command that saves a font file or generates a font in a separate script file. By default the filename for this script is based on the outfile-base: for example, if the -S parameter is MyFont, then the filename will be MyFont_outfile.pe. Use the <outfile-script-name> element (or the -z option) to specify a filename other than the default.
This option has no effect when the outfile-base is not specified and the glyph programs in a script are not being saved separately.
-t, max-twilight-points
The number of points permitted in the twilight zone. The default is 25, which may be high for many fonts.
-s, max-storage
The size of the Storage Area to be reserved for this font by the TrueType engine. The default is to reserve space for 64 32-bit numbers. Xgridfit reserves 24 of these for its own use (and so this value can never be less than 24), leaving 40 available for user-defined variables. Raise this number if you are likely to have more than 40 variables in use at any one time: lower it if you use fewer variables.
-a, max-stack
The amount of memory reserved for the TrueType runtime stack. The default is 256: increase this if you sometimes write <delta> or <control-value-delta> elements containing a great many <delta-set> elements.
-q, silent-mode
The xgridfit parameter does not take a value: when the parameter is present, silent mode is used. The long form of the parameter requires a value, true() or false(). When true(), messages like "Compiling glyph Adieresis" are suppressed. This can lead to significant increases in program speed. Warnings and error messages are still displayed. The default is false().
-b, delta-break
The maximum number of <delta-set> elements that can be pushed onto the stack at one time. If more elements than this are included in a single <delta> or <control-value-delta>, several push instructions are used instead of one.
-g, glyph-select
Use this parameter to tell Xgridfit to compile one or more glyphs, ignoring all others. The names of glyphs must be separated by "+" signs.
-c, compile-globals
The value must be yes or no (the default is yes). If yes, Xgridfit compiles all control values, functions, pre-program and entries for the maxp table. If no, these are omitted.