Philip A. Viton wrote: > > Is there any way to have the forms editor recognize the user's font (and > particularly its size)? It looks to me as if, even when the form > definition contains a fontdef command, the command isn't used. This > would seem to limit the usefulness of the forms editor as a design tool, > no?
The fontdef command is not supported by the form editor, and normally it would be given in the form_run command. It would be useful for the form editor to have a font setting, but in the meantime, note that the font used is the current form font, i.e. PROFONT. When the form editor is loaded, noun GFONT_jformedit_ is defined as PROFONT. You can use edit|configure to change the form font, or just reassign the nouns directly. > Also, it seems to me that the forms editor is VERY sensitive to > additional whitespace in the various commands: in the wrong > circumstances, this can result in losing a good portion of your work. > (The parts of the form that the editor balks at are perfectly acceptable > when you run the form outside the editor). Is there any way that the > editor could compensate for this? Somewhere the documentation mentions > the possibility of manually editing the script produced by the editor: > but in my view this is dangerous (unless you never intend to use the > editor again on that form). I agree that manually editing a form is dangerous, and you need take care to follow the form editor layout exactly (I don't see a reference to this in the manual). The form definition up to "rem form end;" is intended to be read and written only by the form editor, and this is intolerant of definitions not in canonical format. Also, since it writes out a form in canonical format, any manual changes to the layout would be lost on edit. However the form editor should tolerate additional whitespace when reading a definition, and I have made this change in the current scripts (build 020). Any extra whitespace will be removed on edit. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
