Solaris X Window System Developer's Guide

Locating Fonts

By default, the Solaris server looks for fonts in directories under the /usr/openwin/lib/X11/fonts directory. Table 4–5 shows the complete font directory structure. The directory names are preceded by /usr/openwin/lib/X11/fonts.

Table 4–5 Font Directory Structure

Directory 

Subdirectory 

File Suffixes 

Contents 

/TrueType 

 

.ttf 

TrueType fonts 

/TrueType 

/ttmap 

.ttmap 

TrueType character set specifications 

/TTbitmaps 

 

.pcf 

Bitmap fonts 

/100dpi

 

.pcf

Bitmap fonts 

/75dpi

 

.pcf

Bitmap fonts 

/F3

/afm

.f3b

F3 format outline fonts 

 

/map

.map

F3 character set specifications 

/F3bitmaps

 

.pcf

Bitmap fonts 

/Speedo

 

.spd

Bitstream Speedo format outline fonts 

/Type1

 

.pfa, .pfb

Type1 outline fonts 

 

/afm

.afm

Adobe font metrics 

 

/outline

.pfa, .pfb

Type1 outline fonts 

 

/prebuilt

.bepf, .lepf

Bitmaps for SPARC Solaris and IA 

/Xt+  

 

.pcf

Bitmap fonts 

/Type3

 

.ps

PostScript outline fonts 

/encodings

 

.enc

Encodings 

/misc

 

.pcf

Bitmap fonts 

Changing the Default Font Path in X11

In X11, the default font path is:

/usr/openwin/lib/X11/fonts/F3, /usr/openwin/lib/X11/fonts/F3bitmaps, /usr/openwin/lib/X11/fonts/Type1, /usr/openwin/lib/X11/fonts/Speedo, /usr/openwin/lib/X11/fonts/misc, /usr/openwin/lib/X11/fonts/75dpi, /usr/openwin/lib/X11/fonts/100dpi

Note that the directory paths must be absolute.

To change the default font path, use the Font Administrator GUI or command-line tools included with Solaris. For information about Font Administrator, see the Font Administrator User's Guide.