General — how 4d itself behaves
The General page of Preferences holds the settings of the
program rather than of a microscope, a computer or a project:
what 4d shows you at startup, how much detail it prints, the font of its
interface and of the script manuals, and the programs it opens files with.
Unlike the parameter pages, the settings of the first three sections are
stored per user in ~/.4d/preferences.ini and are the same in every
project you open.
The page has four sections: General, Manual, Overall Font and Viewers. The ? button at the right end of the General title line opens this page. Where the Help buttons take you is set on another page: Web Server ▸ Manual Web Pages.
General
The first section collects the switches that decide how much 4d shows and how eagerly it saves.
| Setting | Meaning | Default |
|---|---|---|
| Show HELP hint at the start of the program | Show the reminder pointing at the Help (?) buttons when 4d starts. Turn it off once you know your way around. | on |
| Automatically save configurations when they are changed | Write every parameter change straight to the configuration file. With this off, changes are kept in memory and must be saved explicitly — safer while experimenting, easier to lose. | on |
| Show advanced parameters by default | Turn on the Advanced parameters switch of the processing windows, so the parameter panels show the advanced parameters too, instead of only the basic ones. A change applies at once, to the windows already open as well. | off |
| Show default parameter values by default | Turn on the Show Defaults switch of the Manual Processing tab and of the ScanPattern section of the Planning tab, which shows each parameter's default value at the right end of its row, with an arrow button that copies it to the parameter. A change applies at once, to the tabs already open as well. | on |
| Interface style (valid on restart) | Modern: a light window with rounded groups, the project card with its menu left of the tabs, Yes/No parameters as red/green switches, short choices as segmented controls and units inside the number fields; the Preferences pages are listed in a sidebar, the page shown named above it. Legacy: the original look of 4d, with framed grey blocks under blue titles, Yes/No parameters as radio buttons and units in the parameter names. The functions are the same in both. | Modern |
| Theme (valid on restart) | The colours of the Modern style: Light or Dark (dark panels, light text; the blue, orange and green marks keep their meaning; figures and images are shown as they are). Two more themes are hidden in 4d for those who find them; once found they join this list. | Light |
| Import from EPU by default (valid on restart) | Preselect the EPU import mode, for microscopes whose data arrives in Thermo Fisher EPU directory layout. | off |
| Default verbosity level (valid on restart) | How much the processing scripts print into the log: Low, Medium or High. Lower it for routine work and shorter logs. | High |
| Enable colored background in log viewer output (valid on restart) | Colour the background of log lines by severity in the log viewer. Turn it off for a plain black-on-white log. | on |
Manual
The manual text at the top of the Setup panel of the processing windows — the help text of the selected script, above its parameters (see The Manual panel). This section decides whether it is shown and in which font.
| Setting | Meaning | Default |
|---|---|---|
| Show manual section by default | Turn on the Show manual switch of the processing windows, so each script's help text appears above its parameters. Turn it off to give the parameters more room; the switch still shows the manual on demand. A change applies at once, to the windows already open as well. | off |
| Font | Typeface of the manual text: Default (the font of the 4d interface), or one of the families Helvetica, Arial, Verdana, Liberation Sans, DejaVu Sans (sans-serif); Times, Times New Roman, Georgia, Liberation Serif, DejaVu Serif (serif); Courier, Courier New, Liberation Mono, DejaVu Sans Mono (monospaced). Only the families installed on the computer are listed, so the list differs between systems: on recent macOS, 4d does not see Times or Courier, which appear there as Times New Roman and Courier New, and Linux often has only the Liberation or DejaVu fonts. Each entry is shown in its own typeface, so that it can be recognized, and so is the chosen name in the closed pull-down. | Default |
| Font Size | Point size of the manual text, from 6 to 32 pt. Until a size is chosen, the field shows the size of the interface font, which the manual then uses. The A- and A+ buttons on the manual’s title line change it in steps of 1 pt. | the interface font size |
| Font Weight | Stroke weight of the manual text: Thin, Normal or Bold, each entry shown in its weight. The Thin, Normal and Bold buttons on the manual’s title line set it too. | Normal |
The grey note below these settings recalls how the panel itself behaves: the manual opens as tall as its text, the divider below it can be dragged to give it more or less room, and the buttons on its title line change the size and weight of the text too.
Overall Font
The font 4d uses for its own interface. Both settings apply to the whole application; they do not change the font of the external viewers or of the scripts’ output. The manual text of the processing windows has a font of its own, set in Manual above.
| Setting | Meaning | Range |
|---|---|---|
| Font Size | Point size of the interface font. Useful on very high-resolution screens, where the default can be too small to read comfortably. | 8 – 14 |
| Font Weight | Stroke weight of the interface font: Light, Normal, Medium, DemiBold or Bold. | Normal |
Viewers
The last section sets the external program 4d runs to open each kind of
file: the Script Editor and the Python Script Editor, the Web Browser,
the JPEG/JPG, PS, PDF, PNG and TIFF image viewers, the 3D Viewer, the HDF5 (h5)
Images Viewer and the Stack image viewer. Each entry is a command, to which 4d
appends the name of the file to open. Unlike the sections above, these entries
are kept in your user configuration file 4d.cfg, like the
parameter pages. The ? button at the right end of the
Viewers title line opens their own page,
Viewers — the programs used to open
files, which lists every entry with an example command. As on the
Microscope and
System pages, each row ends with the
command 4d was installed with, under the heading Default Values,
and an arrow that copies it into the entry (after a copy, a cross that undoes
it) — the construction of the Show Defaults column of the
Manual Processing tab.