next up previous contents index
Next: Miscellaneous Keywords Up: Technology File Attributes Previous: Grid 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 portable between different versions of Xic.

There are six fonts that may be set, though only four of these are used in Microsoft Windows releases. There are four sets of corresponding keywords.

Font1 - Font6 name_of_font
These keywords will be read and 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. 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 GTK2 Pango font system (the Red Hat Linux distributions). Other systems will ignore these keywords. The name_of_font is a Pango font description name corresponding to a font found on the system.

Font1X - Font6X name_of_font
These keywords apply to the releases that use the GTK1 X-windows font system, as found in the FreeBSD7, Linux2, and OS X distributions. Other systems will ignore these keywords. The name_of_font is the X Logical Font Descriptor name for a font available on the user's system, or an alias.

Font1W - Font6W name_of_font
These keywords apply only to the Microsoft Windows release, and only Font1W - Font4W are actually used. Other systems will ignore these keywords.

The name_of_font is in one or the following formats:

New standard (Xic release 2.5.52 and later)
face_name pixel_height
Example: Lucida Console 12

Old standard (deprecated)
(pixel_height)face_name
Example: (12)Lucida Console

The face_name is the name of a font family installed on the system, and the pixel_height is the on-screen size.

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 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 GTK2 (1P) default: "Monospace 9"
Unix/Linux GTK1 (1X) default: "fixed"
Windows (1W) default: "Lucida Console 10"

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 GTK2 (2P) default: "Sans 9"
Unix/Linux GTK1 (2X) default: "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-1"
Windows (2W) default: "MS Sans Serif 10"

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 GTK2 (3P) default: "Monospace 9"
Unix/Linux GTK1 (3X) default: "fixed"
Windows (3W) default: "Lucida Console 12"

4 (Text Editor Font)
This is the font used in the Text Editor and File Browser pop-ups.
Defaults:
Unix/Linux GTK2 (4P) default: "Monospace 9"
Unix/Linux GTK1 (4X) default: "fixed"
Windows (4W) default: "Lucida Console 10"

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 GTK2 (5P) default: "Sans 9"
Unix/Linux GTK1 (5X) default: "-adobe-times-medium-r-normal-*-14-*-*-*-*-*-*-1"
Windows (5W) default: not used, ignored

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 GTK2 (6P) default: "Monospace 9"
Unix/Linux GTK1 (6X) default: "-adobe-courier-medium-r-normal-*-14-*-*-*-*-*-*-1"
Windows (6W) default: not used, ignored

The font names used by the various platforms are quite different. Although there is an attempt at cross-platform interoperability, using a technology file with fonts specified for another platform will likely select fonts that are not optimum on the present platform.

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: Miscellaneous Keywords Up: Technology File Attributes Previous: Grid Registers   Contents   Index
Stephen R. Whiteley 2012-04-01