Enabling Symbol Fonts in Netscape under X
(1) Add the following line to your .Xdefaults (or .Xresources):
(2) $ xrdb .Xdefaults or else restart the X server.
(3) Restart Netscape.
Detailed discussion and how to implement a solution that is visually superior on older browsers.
Netscape (3+) organizes its fonts by Options/Document-Encoding, which controls the document overall and then, within that encoding, by a set of names available via HTML tags < font face="name" > . Obviously, accessing symbols in a regular document by changing the overall encoding is not what one wants.
The relevant default encoding is generally Western (iso-8859-1).
With fonts set up in the normal way, one cannot access the symbol face from the default (Western) encoding, because it is not one of the available fonts. In the font-choosing section of Netscape, anything that Netscape can't identify (such as the fontspecific fonts, of which the symbol set is one) is put into an encoding set ``User-Defined", which one can't make the default because it does not have the standard fonts. The iso-8859-1 encoding font group appears to consist of all the fonts in the X-server that end in iso8859-1.
One way to fool netscape is to alias fonts that are symbol to have a bogus name ending iso8859-1. That causes Netscape to include them in the standard encoding set, so they are routinely available to any document with the default encoding, for example by < font face=ßymbol" > w < /font > (which gives an omega).
In a typical X setup, all this requires is that the following lines be added to a fonts.alias file in the standard font path(s) for the server, and then the server should be restarted (or xset fp rehash).
! 100dpi aliases to fool Netscape into symbol support in iso8859 encoding.
!__________________________Cut here optionally_________________________________
! 75dpi Netscape symbol aliases.
There may be undesirable consequences from this bogus alias for other X programs. Not giving a scalable font alias minimizes this but it means the symbol font can't be scaled arbitrarily.
Font Size Settings
In the .netscape preferences file there is a list of full (X) font names.
FONT_SPEC: isas-fangsong ti-0-noscale-fixed-gb_2312-80
FONT_SPEC: isas-fangsong ti-0-noscale-prop-gb_2312-80
These appear to be the defaults that are used in each of the encoding cases for proportional and fixed fonts.
Unfortunately, if you have set up the default size of the default font to be anything other than 12.0, as is the case in the above list, this fact is remembered only for the default fonts, not for the symbols (or any other face one might switch to). You have two options:
(1) Use 100dpi fonts (to make them display larger) and size 14.0 as your default. Assuming that both 75 and 100dpi fonts are in your font path, this is done by including the following lines in your .Xdefaults file.
Netscape*documentFonts.xResolution*iso-8859-1: 100 Netscape*documentFonts.yResolution*iso-8859-1: 100
Then reset Options/General-Preferences/Fonts/Proportional times font size to 14. This will give a screen size virtually the same as 18.0 at 75dpi, which is comfortable on my 15 inch monitor. For some reason, the symbol fonts come out a fair matching size, even though Netscape chooses nominally 12.0, (not 14.0 like the times).
(2) Fix the symbol size every time you restart Netscape In Netscape use Options/General-Preferences/Fonts/Proportional, choosing symbol specifically, and setting its size, then setting the default back to e.g. times. That will fix it till the next time Netscape is restarted. There ought to be a better way. If you find one, let me know. [firstname.lastname@example.org]
Aliases Fix Summary
(1) Cut out the above section(s) to file(s) 100dpi.alias, 75dpi.alias or construct your own aliases based on $ xlsfonts | fgrep symbol aliasing the terminating -*-fontspecific to -iso8859-1.
(2) Become the superuser. Determine the correct directory on the standard font path, e.g.
(3) Append the file(s) to the fonts.alias there:
# cat 100dpi.alias >> /usr/X11R6/lib/X11/fonts/100dpi/fonts.alias # cat 75dpi.alias >> /usr/X11R6/lib/X11/fonts/75dpi/fonts.alias[Actually one can just append the whole lot to either alias file.]
(4) xset fp rehash or restart the Xserver.
(5) Restart Netscape.
Problem with the Quick Fix seems to be only in old browsers
The quick fix mentioned at the beginning of this document tells Netscape to include any font ending adobe-fontspecific in its western (8859-1) list. Then the above aliases are not needed.
For reasons that escape me, however, when this alternative is used, the font sizes were rendered incorrectly in NS 3, and small gaps appeared between parts of large symbols that were built on top of one-another (a problem that also occurs in MS Windows 3.1). As of version 4.04 of N*tscape on linux, this problem seems to have been fixed, in which case the quick fix is to be preferred, since it cannot confuse other programs, and can be done without becoming the superuser. Even so, it would be best if the resource was set globally for all users. There are no bad side-effects that I know of.
File translated from TEX by TTH, version 1.96.
On 15 Dec 1998, 23:43.