home *** CD-ROM | disk | FTP | other *** search
- ID:F4 Porting PC fonts to the SCO X Window System
- Quarterdeck Technical Note #414
- by Kris Williams
-
- How to port PC fonts to the SCO X Window System
-
- Why do you need the PC fonts on other X servers?
-
- Because, DESQview makes a request to the X server for the Quarterdeck PC
- Font resource whenever a DOS window running on a PC host has been
- instructed to display to a local or remote X server. Even when you're
- displaying a DOS application locally to the DESQview/X server, DESQview
- still makes a request for the PC font resource. But, you won't need to
- worry about a DESQview/X server having this problem, all of the PC font
- resources are installed there by default.
-
- If the X display server cannot provide the PC font resource to DESQview,
- the DOS window either won't display correctly or won't display at all.
-
- This document explains the procedures for porting the DESQview/X DOS
- fonts over to your SCO X Window System workstation. If you are or will
- be running DOS applications to be displayed on your SCO workstation, it
- will be necessary for them to use Quarterdeck's PC fonts which where
- provided with DESQview/X.
-
- To follow the steps covered in this document you will first need to have
- installed DESQview/X, and have configured TCP/IP networking software on
- both the SCO Unix workstation, and the PC running DESQview/X. It is
- only necessary to copy the font files to the SCO workstation once.
-
- THE PROCEDURE
-
- Is the X window system configured on your SCO workstation? You will need
- to determine whether or not it is installed on your SCO workstation
- before continuing.
-
- Have you installed DESQview/X on the host PC? It is necessary to have
- DESQview/X installed on a PC host machine before continuing with this
- procedure. You may determine that it had been installed by looking in
- the \DVX subdirectory for the file DESQVIEW.DVO. If this file exists,
- DESQview/X is installed, and you may continue. If not you will need to
- reference your DESQview/X installation guide for before continuing.
-
- TRANSFERING THE PC FONT DEFINITION FILES
-
- If you haven't yet configured FTP's PCTCP software you'll need to
- reference the green PCTCP manual before continuing with this document.
-
- You will need to switch to the \FTP subdirectory on the DOS machine
- where the PCTCP software is configured. This may be done with the
- following command:
-
- C:\> cd \ftp <─┘
-
- Then we'll use the FTP (File Transfere Protocol) utility to move the
- font description files up to the SCO workstation. This can be done with
- the following commands:
-
- C:\FTP> ftp <─┘
- ftp> login: <username> <─┘
- ftp> password: <password> <─┘
- ftp> cd /usr/lib/X11/fonts/misc <─┘
- ftp> mput \DVX\BDF\pc*.bdf <─┘
- ftp> quit <─┘
-
- In the above command <username> would be your username on the SCO
- workstation, and <password> is the password required for <username> to
- successfully log on to the SCO. After these commands are performed, the
- font description files are ready to be converted to the standard .SNF
- file format.
-
- CONVERTING THE FONT DESCRIPTION FILES
-
- Before the PC fonts can be used by the SCO X server, you will need to
- convert the .bdf files to .snf files. This would be done by typeing the
- following series of commands:
-
- # cd /usr/lib/X11/fonts/misc <─┘
- # /bin/bdftosnf pc8x8.bdf > pc8x8.snf <─┘
- # /bin/bdftosnf pc8x14.bdf > pc8x14.snf <─┘
- # /bin/bdftosnf pc8x16.bdf > pc8x16.snf <─┘
-
- ALIASING THE FONTS
-
- The SCO X server lets you assign aliases to fonts so that you can refer
- to a font without having to type it's full name. To create a font
- alias for SCO, follow the following steps:
-
- 1. Log into the system, make sure you have the ability to edit files in
- the /usr/lib/X11/fonts/misc directory.
-
- 2. Create a file named fonts.alias, or take it into an editor if it
- already exists in the directory that contains the font files. Usually,
- the fonts.alias file aready exists. The font aliases are usually
- defined with the following format:
-
- fontname aliasname
-
- In the aliase lines, fontname is the fullname of the font, and
- aliasname is the name that is used to reference this font. So, to
- add the pc fonts to this alias list, you will need to append the
- following lines to the fonts.alias file:
-
- -quarterdeck-fixed-bold-r-normal--8-80-75-75-c-80-iso8859-1 pc8x8.snf
- -quarterdeck-fixed-bold-r-normal--14-140-75-75-c-80-iso8859-1 pc8x14.snf
- -quarterdeck-fixed-bold-r-normal--16-160-75-75-c-80-iso8859-1 pc8x16.snf
-
- 3. If you performed step 2 from within X Windows, you'll need to reset the
- server's font path. this can be done either by quitting out of X
- windows and then restarting it, or by entering the following command
- from and xterm window:
-
- xset fp rehash
-
- If you performed step 2 directly from the operating system command line
- (and X windows was not running), there is no need to reset the server.
- The changes that you made to the fonts.alias file are automatically
- incorporated the next time you start the X server.
-
- Copyright (C) 1991 by Quarterdeck Office Systems
- * * * E N D O F F I L E * * *