This page is a part of XSecurePro64 online Help Manual.
XSecurePro64 is X Server for windows by Labtam bringing your PC to Unix and X-Windows. Visit Home of X Server for windows for more information.



Font Path

Font Path is an ordered table of font sources (a Priority ordered path list). A font source is one of the following: a font directory, a reference to a remote font server, and a pseudo font directory. XServer uses Font Path on X client's requests for any font. XServer searches for the required font according to the order of font sources till the first matching occurs.

XSecurePro64 provides wide range of local X fonts (standard font sets supplied by MIT along with X11 R6). These font sets are immediately available after installing the package. They appear in Font Path as font directories under the FONTS subdirectory in the XSecurePro64 home directory.

Also, XServer can use different locale 16-bits fonts including Chinese, Japanese, or Korean fonts, etc.

To manage Font Path, choose XSetup and then select the Font Control tab in the Settings window.

Note: The FONTS subdirectory shown in pictures of this chapter is not under the XSecurePro64 home directory. Users can move it to a desired location in their file systems (see section Editing Font Path below) after installation of the package.

The Apply button in the tab writes new Font Path into the xwp.ini file located in the XSecurePro64 configuration directory.

If the Enable Scaled Fonts check box is selected, it allows XServer to use scaled fonts.


Font Directory

A font directory contains a number of font description files in the X11 format. Setup installs a set of font directories under the FONTS subdirectory in the XSecurePro64 home directory (by default).

Any font directory must have the fonts.dir file (that contains the font description list according to font files of the directory), the fonts.ali file (with font aliases), and a set of font description files (with the .pcf, .snf, or .pgz file name extension).

The fonts.alias file name as well as fonts.ali can be used in the FONTS directories.

Note: XServer can only use uncompressed .pcf (X11R5 or later), .snf (X11R4), and .bdf files. Also, XServer can use these font files compressed with the compress or gzip utility (for X11R6.3 only).

If your remote X server supports 'compressed' fonts (X11R6 server does. X11R6.3 server supports 'gzipped' fonts too), you may compress the .pcf and .snf font files with the 'compress' or 'gzip' utility (for X11R6.3 only).

You have to convert each .bdf file to .pcf (X11R5 or later) or .snf (X11R4) with the bdftopcf and bdftosnf utilities.

To convert each font.bdf file in the set, run the following command line:

  • in X11R5, bdftopcf font.bdf > font.pcf
  • in X11R4, bdftosnf font.bdf > font.snf

XServer must have access at least to the fixed and cursor fonts. The \FONTS\MINIMAL and \FONTS\MISC font subdirectories contain them. So Font Path must contain these font directories at least.


Font Server

You can specify that you want to use a font server running on one or more hosts. Font servers are defined in the X11 R6 release of the X Window System. Instead of forcing XServer to read all fonts from your PC, the X FontServer Protocol makes it possible to manage fonts separately from XServer, directing XServer to request fonts from a font server via the X Consortium standard network protocol. In addition, for fonts that take a long time to open, this allows XServer to continue with other clients while the font server services the font requests.

A font server specification for TCP/IP has the following format:

tcp/name: port [/catalogue+catalogue+...]

name

The network name or IP address for the host that the font server is running on.

port

The remote port that the font server is listening on. The port number value is usually of 7100 or 7500 depending on the operating system used, but check this with your system administrator.

catalogue

An optional list of the font catalogue(s) you want to use. If more than one catalogue is specified, separate each name with a 'plus' sign (+).

For example, the following specifies the font server host called hp9000 on port 7100:

tcp/hp9000:7100

You can include more than one font server specification into the Font Path list.

Note: You must add an entry (with the host name and IP address for the remote font server you want to use) into the hosts file used by MS Windows:

  • C:\WinNT\System32\drivers\etc\hosts for MS Windows NT4/2000/XP

  • C:\Windows\hosts for MS Windows 9x/ME.

Editing Font Path

To remove a highlighted font source from Priority Ordered Path, press Delete.

To move a highlighted font source from Priority Ordered Path to the Font directory edit field, press Cut.

To insert the Font directory edit field into Priority Ordered Path, select a path from within the Priority ordered path list and then click Insert before or Insert after.

Also, to fill in the Font directory edit field, you can manually enter a font directory path or use the Browse button to select it (i.e. a path to a fonts.dir file).

Pressing Default places font paths in the Priority ordered path list according to a default order.

You can use the 'minus' and 'space' characters in the Font Path items. The total length of the Font Path items can be up to 2040 characters.

Also, see Appendix C Troubleshooting for examples.


Font Service

The XFontset Service utility allows you to view fonts accessible for X clients in the current X-session. You can use this option instead of running the xlsfonts and xfd X clients.

When you click on the XFontset Service icon in the XSecurePro64 Programs' folder,

the Font Directories dialog box appears:

Also, to display this box, you can run Font Manager from the X-session Control menu.

This dialog box shows font directories existing in Font Path (i.e. a Priority ordered path list).

You can check how XServer resolves a particular X client's font request by typing the requested font name in the edit field and then pressing the Resolve Font Request button. The program will show you the font directory and the font file corresponding to the requested name. You can use the 'asterisk' sign (*) as the wildcard character in the edit field.

You can check data consistency of any highlighted font directory by pressing Check. The program will tell you about detected unresolved font aliases and unresolved references to font files in this font directory. This might be useful after you made any manual changes in the font directory.

You can get all font names existing in any font directory by highlighting it and then pressing Show Font List, or double-clicking on a font directory. The Entire Fonts List dialog box will appear.

This dialog box shows font files and respective font names and aliases (from the fonts.dir file). For any font highlighted, you can view (in Notepad windows) Font Info, Properties, Char Info (and save these text files). Also, pressing Image will display a box like below with character images of the selected font.

To find a particular font name in a long font list (and then to view font info), you can use the Browse button, and then press Search in the dialog box that will appear.

Note: You cannot view a font that is shaded by a similar font name in the font directory preceding it in Font Path. To view and use such a font, you should place its directory first in Font Path.


Understanding the Font List

You can list the fonts available on your remote system by typing the following command in an X window:

xlsfonts | more

A list appears displaying one font per line. This "font name" is typical:

-adobe-courier-bold-o-normal--10-100-75-75-m-60-iso8859-1

The hyphen-separated fields designate the following:

  • adobe Foundry

  • courier Family

  • bold Weight

  • o Slant

  • normal Set Width

  • Additional Style

  • 10 Pixel Size

  • 100 Point Size

  • 75 Y Resolution

  • 75 X Resolution

  • m Spacing

  • 60 Average Width

  • iso8859 Character Set Registry

  • 1 Character Set Encoding

The most important properties to consider are the Family, Weight, Slant, and Point Size.

Family is the style of the letters. Some common examples are Helvetica, Courier, and Times.

Weight is the width of the line making up the letter. The options are regular and bold.

Slant is the angle of the letters. The most common are R for Roman (meaning upright), I for italic, and O for oblique (similar to italic). Whether the slant is designated as I or O depends on the family.

Point Size is the size of the letters. The number refers to decipoints. Multiply the point size to get the decipoints (10 point type is 100 decipoints).






Home | Product | Download | Order Now | Upgrade | Support | Pricing | Company Information | Contact Us


Labtam Copyright 1999 - 2009 LabtamTM Inc.