Using Sun WorkShop

Changing Wide Character Fonts in Hyperlink Windows

Many of the windows in Sun WorkShop use hyperlinks to other windows to facilitate the display of related information. For example, clicking on a build error in the Building window causes an editor window to display the source code file that contains the error.

Certain resources serve as flags indicating that non-ASCII characters written to a hyperlink display are to be interpreted as multi-byte characters. The multi-byte characters are displayed in the font indicated by the resource.

The resources should be set only in locales in which there is to be multibyte interpretation of non-ASCII characters.

The names of these resources, as they would appear if set in the WORKSHOP resource file, are the following:

 WORKSHOP*HTML*WCfont:
 WORKSHOP*HTML*boldWCFont:
 WORKSHOP*HTML*plainWCFont:
 WORKSHOP*HTML*plainboldWCFont:
 WORKSHOP*HTML*Font:
 WORKSHOP*HTML*boldFont:
 WORKSHOP*HTML*plainFont:
 WORKSHOP*HTML*plainboldFont:

Each WC font resource corresponds to a non-WC font resource. If the WC font resource is set, WC font dimensions determine the line spacing and baseline of text elements written in both the WC font and corresponding non-WC font. The purpose is to produce consistent spacing of a line where ASCII and multi-byte characters are mixed. The WC font dimensions are also used for formatting a line written only in the non-WC fonts.


Note -

Where WC font resources are set for hyperlink displays of multi-byte characters and you change a WC font resource, the size and spacing of WC fonts should be proportional to the size and spacing of non-WC fonts. To get proportional formatting you might need to modify the resources for non-WC fonts.