next up previous contents index
Next: Variable Setting as Keywords Up: Technology File Attributes Previous: Layer Palette Registers   Contents   Index


Font Assignments

The keywords described below set the fonts used in various places in Xic. These correspond to the fonts settable from the Font Selection pop-up from the Set Font button in the Attributes Menu.

Since the font string format varies between the operating systems and graphical interfaces supported by Xic, provision is made for separate font specifications for each supported variation, thus making the technology file more portable between different versions of Xic.

There are six fonts that may be set, and four sets of corresponding keywords, specific to different systems. The four sets correspond to a suffix character added to the font keyword.

Font1 -- Font6 name_of_font
These keywords will be read and (if possible) applied by any version of Xic. Although there is an attempt at portability, the name_of_font should apply to the release of Xic in use. A mismatch will not cause errors, but the font may not be as expected, or a default may be used. These keywords are mostly for backwards compatibility, and are never written to a new technology file created with the Save Tech button in the Attributes Menu. Rather, the system-specific keywords below will be written.

Font1P -- Font6P name_of_font
These fonts apply to the releases that use the GTK-2 (Pango) font system. At the 3.3 release level, all XicTools programs use this graphical toolkit, and will use these keysords.

Font1X -- Font6X name_of_font
These keywords apply to non-current releases (FreeBSD7, Linux2, OS X) that use the GTK-1 X-windows font system. The name_of_font is the X Logical Font Descriptor for a font available on the user's system, or an alias. These font specifications are ignored in GTK-2 (all current) releases.

Font1W -- Font6W name_of_font
These keywords apply only to the non-current Microsoft Windows release, which used native Win32 for the graphical interface. There is really no syntactical difference between these and Pango (P) specifications, and (current) GTK-2 releases will accept (but not write) these.

If a font is specified more than once in the technology file, such as with duplicate or equivalent keywords, the last specification read will take precedence.

When a new technology file is written, only the keywords for non-default fonts in use will actually be written in the file.

The index number of the keyword indicates the following fonts:

1 (Fixed Pitch Text Window Font)
This sets the font used in pop-up multi-line text windows other than the text editor/file browser, such as the Files Listing and Cells Listing, where the names are formatted into columns.
Defaults:
Unix/Linux: Monospace 9
Windows: Lucida Console 9

2 (Proportional Text Window Font)
This sets the font used in pop-up multi-line text windows other than the text editor/file browser, where text is not formatted, such as the Info and error message pop-ups.
Defaults:
Unix/Linux: Sans 9
Windows: Sans 9

3 (Fixed Pitch Drawing Window Font)
This is the font used in the coordinate readout, the status line, layer table, and the prompt line. It is not the font used to render label text in the drawing windows, which is a vector font generated by other means.
Defaults:
Unix/Linux: Monospace 9
Windows: Lucida Console 9

4 (Text Editor Font)
This is the font used in the Text Editor and File Browser pop-ups.
Defaults:
Unix/Linux: Monospace 9
Windows: Lucida Console 9

5 (HTML Viewer Proportional Font)
This is the base font used for proportional text in the HTML viewer (help windows). If set, this will override the font set in the .mozyrc file, if any.
Defaults:
Unix/Linux: Sans 9
Windows: Sans 9

6 (HTML Viewer Fixed Pitch Font)
This is the base fixed-pitch font used by the HTML viewer. If set, this will override the font set in the .mozyrc file, if any.
Defaults:
Unix/Linux: Monospace 9
Windows: Lucida Console 9

The platform-specific font keywords were added in release 3.1.6. Older technology files will use only the Font1 -- Font6 keywords. It may be be best to comment these out when importing a technology file developed for another platform, or to modify the Font keywords to the appropriate flavor with a text editor.

Fonts can be set within Xic with the Set Font command in the Attributes Menu.


next up previous contents index
Next: Variable Setting as Keywords Up: Technology File Attributes Previous: Layer Palette Registers   Contents   Index
Stephen R. Whiteley 2022-05-28