home *** CD-ROM | disk | FTP | other *** search
- ID:F0 Porting DOS fonts to the SunOS X Window System
- Quarterdeck Technical Note #410
- by Kris Williams & Mark Welinder
-
- How to Port DOS fonts to the SunOS X Window System
-
- This document explains the procedures for porting the DESQview/X DOS
- fonts over to your Sun Workstation. If you are or will be running DOS
- applications displayed on your Sun workstation, it would be more
- aesthetically correct to use the fixed DOS 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 configured your TCP/IP networking software on
- both Sun workstation, and the DOS PC. It is only necessary to copy the
- font files to the Sun once.
-
- THE PROCEDURE
-
- Is X configured on your Sun workstation? You will need to determine
- whether or not the X Window System is installed on your Sun workstation.
- This can be done by checking for the environment variable named
- OPENWINHOME. This can be accomplished with the following command:
-
- # setenv <─┘
-
- The OPENWINHOME variable will be set to the parent directory where X and
- the OpenLook Window manager are installed. If the OPENWINHOME variable
- is not set, you will need to reference your SunOS X Window System
- documentation.
-
- The next step is to determine where the fonts directory is located. By
- default it's located in $OPENWINHOME/lib/fonts. You may check to see if
- the default directory was used by typing the commands:
-
- # cd $OPENWINHOME/lib <─┘
- # ls fonts <─┘
-
- In the first command the path string represented by $OPENWINHOME/lib
- will take us to the lib directory of the X Window system parent
- subdirectory, and the second command will look for the directory
- lib/fonts. If the directory is there, the second command will simply
- echo "fonts" to the screen, and you may used the command:
-
- # cd fonts <─┘
-
- Usually, the environment variable FONTDIR will be set to specify the
- location of the font files. If this variable is set you may switch to
- the font's directory by typing the following command:
-
- # cd $FONTDIR <─┘
-
- Have you installed DESQview/X? It is necessary to have DESQview/X
- installed to the DOS machine, You may determine this 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 you DESQview/X installation guide for instruction.
-
- TRANSFERING THE FONT DEFINITION FILES
-
- If you haven't yet configured FTP's PCTCP software you'll need to
- reference the green PCTCP manual for further instruction. 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 Sun workstation. This can be done with
- the following commands:
-
- C:\FTP> ftp <─┘
- ftp> login: <username> <─┘
- ftp> password: <password> <─┘
- ftp> mput \DVX\BDF\ibm*.bdf <─┘
- ftp> quit <─┘
-
- In the above command <username> would be your username on the Sun
- workstation, and <password> is the password required for <username> to
- successfully log on to the Sun. After these commands are performed, the
- font description files are ready to be converted, aliased, and used by
- the X Window System on the Sun.
-
- CONVERTING THE FONT DESCRIPTION FILES
-
- The DOS font description files need to be converted into the default
- X11/NeWS format. The following commands may be used:
-
- # convertfont ibm8x8.bdf -d <fontdirectory>
- # convertfont ibm8x14.bdf -d <fontdirectory>
- # convertfont ibm8x16.bdf -d <fontdirectory>
-
- If the FONTDIR environment variable is set, it is used as the default
- destination directory signified above by the -d <fontdirectory>
- parameter above. Otherwise, if the OPENWINHOME environment variable is
- set, $OPENWINHOME/fonts is used as the default directory, or the current
- directory is used.
-
- ALIASING THE FONTS
-
- In order to give the X Server access to these new fonts, you will need
- to alias the fonts, by adding them to the Synonyms.list file, in the
- font's directory. This would be done with the following commands on the
- Sun:
-
- # cd $OPENWINHOME/lib/fonts <─┘
- # vi Synonyms.list <─┘
-
- This will execute the vi editor and open the Synonyms.list file. once
- in vi, you will need to perform the following keystrokes to edit the
- file correctly:
-
- :$<─┘
- <ESC>o<Down Arrow><ESC>
- /pc8x8 /ibm8x8 -FontDirectorySYN<─┘
- /pc8x14 /ibm8x14 -FontDirectorySYN<─┘
- /pc8x16 /ibm8x16 -FontDirectorySYN<─┘
- <ESC>ZZ
-
- You will now need to modify Families.list file to include the new font
- aliasing. This may be done with the following command:
-
- # bldfamily
-
- Then have the X Window System re-read the font database files with the
- following command:
-
- # xset fp rehash
-
- Copyright (C) 1991 by Quarterdeck Office Systems
- * * * E N D O F F I L E * * *
-