home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / DESQVIEW / DVXTEC.ZIP / DOS2HP.TEC < prev    next >
Text File  |  1991-09-20  |  5KB  |  134 lines

  1. ID:F5 Porting DOS fonts to the HP/UX X Window System
  2. Quarterdeck Technical Note #415
  3. by Kris Williams & Mark Welinder
  4.  
  5.   How to Port DOS fonts to the HP/UX X Window System
  6.  
  7. This document explains the procedures for porting the DESQview/X DOS
  8. fonts over to your Hewlett-Packard HP/UX Workstation.  If you are or
  9. will be running DOS applications displayed on your Hewlett-Packard HP/UX
  10. workstation, it would be more aesthetically correct to use the fixed DOS
  11. fonts which where provided with DESQview/X.
  12.  
  13. To follow the steps covered in this document you will first need to have
  14. installed DESQview/X, and configured your TCP/IP networking software on
  15. both Hewlett-Packard HP/UX workstation, and the DOS PC.  It is only
  16. necessary to copy the font files to the Hewlett-Packard HP/UX once.
  17.  
  18. THE PROCEDURE 
  19.  
  20. Is X configured on your Hewlett-Packard HP/UX workstation?  You will
  21. need to determine whether or not the X Window System is installed on
  22. your Hewlett-Packard HP/UX workstation.  This can be done by checking
  23. for the environment variable named OPENWINHOME.  This can be
  24. accomplished with the following command:
  25.  
  26.     # setenv <─┘
  27.  
  28. The OPENWINHOME variable will be set to the parent directory where X and
  29. the OpenLook Window manager are installed.  If the OPENWINHOME variable
  30. is not set, you will need to reference your HP/UX X Window System
  31. documentation.
  32.  
  33. The next step is to determine where the fonts directory is located.  By
  34. default it's located in $OPENWINHOME/lib/fonts. You may check to see if
  35. the default directory was used by typing the commands:
  36.  
  37.     # cd $OPENWINHOME/lib <─┘
  38.     # ls fonts <─┘
  39.  
  40. In the first command the path string represented by $OPENWINHOME/lib
  41. will take us to the lib directory of the X Window system parent
  42. subdirectory, and the second command will look for the directory
  43. lib/fonts.  If the directory is there, the second command will simply
  44. echo "fonts" to the screen, and you may used the command:
  45.  
  46.     # cd fonts <─┘
  47.  
  48. Usually, the environment variable FONTDIR will be set to specify the
  49. location of the font files.  If this variable is set you may switch to
  50. the font's directory by typing the following command:
  51.  
  52.     # cd $FONTDIR <─┘
  53.  
  54. Have you installed DESQview/X?  It is necessary to have DESQview/X
  55. installed to the DOS machine, You may determine this by looking in the
  56. \DVX subdirectory for the file DESQVIEW.DVO. If this file exists,
  57. DESQview/X is installed, and you may continue.  If not you will need to
  58. reference you DESQview/X installation guide for instruction.
  59.  
  60. TRANSFERING THE FONT DEFINITION FILES
  61.  
  62. If you haven't yet configured FTP's PCTCP software you'll need to
  63. reference the green PCTCP manual for further instruction. You will need
  64. to switch to the \FTP subdirectory on the DOS machine where the PCTCP
  65. software is configured.  This may be done with the following command:
  66.  
  67.     C:\> cd \ftp <─┘
  68.  
  69. Then we'll use the FTP (File Transfere Protocol) utility to move the
  70. font description files up to the Hewlett-Packard HP/UX workstation.
  71. This can be done with the following commands:
  72.  
  73.     C:\FTP> ftp <─┘
  74.     ftp> login: <username> <─┘
  75.     ftp> password: <password> <─┘
  76.     ftp> mput \DVX\BDF\ibm*.bdf <─┘
  77.     ftp> quit <─┘
  78.  
  79. In the above command <username> would be your username on the
  80. Hewlett-Packard HP/UX workstation, and <password> is the password
  81. required for <username> to successfully log on to the Hewlett-Packard
  82. HP/UX.  After these commands are performed, the font description files
  83. are ready to be converted, aliased, and used by the X Window System on
  84. the Hewlett-Packard HP/UX.
  85.  
  86. CONVERTING THE FONT DESCRIPTION FILES
  87.  
  88. The DOS font description files need to be converted into the default
  89. X11/NeWS format.  The following commands may be used:
  90.  
  91.     # convertfont ibm8x8.bdf  -d <fontdirectory> 
  92.     # convertfont ibm8x14.bdf -d <fontdirectory>
  93.   # convertfont ibm8x16.bdf -d <fontdirectory>
  94.  
  95. If the FONTDIR environment variable is set, it is used as the default
  96. destination directory signified above by the -d <fontdirectory>
  97. parameter above.  Otherwise, if the OPENWINHOME environment variable is
  98. set, $OPENWINHOME/fonts is used as the default directory, or the current
  99. directory is used.
  100.  
  101. ALIASING THE FONTS
  102.  
  103. In order to give the X Server access to these new fonts, you will need
  104. to alias the fonts, by adding them to the Synonyms.list file, in the
  105. font's directory.  This would be done with the following commands on the
  106. Hewlett-Packard:
  107.  
  108.     # cd $OPENWINHOME/lib/fonts <─┘ 
  109.     # vi Synonyms.list <─┘ 
  110.  
  111.  This will execute the vi editor and open the Synonyms.list file. once
  112. in vi, you will need to perform the following keystrokes to edit the
  113. file correctly:
  114.  
  115.     :$<─┘
  116.     <ESC>o<Down Arrow><ESC>
  117.     /pc8x8          /ibm8x8         -FontDirectorySYN<─┘ 
  118.     /pc8x14         /ibm8x14        -FontDirectorySYN<─┘ 
  119.     /pc8x16         /ibm8x16        -FontDirectorySYN<─┘
  120.     <ESC>ZZ
  121.  
  122. You will now need to modify Families.list file to include the new font
  123. aliasing.  This may be done with the following command:
  124.  
  125.     # bldfamily
  126.  
  127. Then have the X Window System re-read the font database files with the
  128. following command:
  129.  
  130.     # xset fp rehash
  131.  
  132.            Copyright (C) 1991 by Quarterdeck Office Systems 
  133.                * * *    E N D   O F   F I L E    * * *
  134.