home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / DESQVIEW / DVXTEC.ZIP / DOS2IRIX.TEC < prev    next >
Text File  |  1992-03-31  |  4KB  |  109 lines

  1. ID:F2 Porting DOS fonts to the IRIX X Window System
  2. Quarterdeck Technical Note #412
  3. by Kris Williams & Mark Welinder
  4.  
  5. How to port DOS fonts to the IRIX Unix X Window System
  6.  
  7. This document explains the procedures for porting the DESQview/X DOS
  8. fonts over to your IRIX workstation.  If you are or will be running DOS
  9. applications to be displayed on your IRIX workstation, it would be more
  10. aesthetically correct to use the fixed DOS fonts which where provided
  11. 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 IRIX workstation, and the DOS DESQview/X PC.  It is only necessary
  16. to copy the font files to the IRIX workstation once.
  17.  
  18. THE PROCEDURE 
  19.  
  20. Is the X Window System configured on your IRIX workstation?  You will
  21. need to determine whether or not the X Window System is installed on
  22. your IRIX workstation before continuing with this document.
  23.  
  24. Have you installed DESQview/X on your DOS PC?  It is necessary to have
  25. DESQview/X installed on the DOS machine before continuing with this
  26. document.  You may determine this by looking in the \DVX subdirectory
  27. for the file DESQVIEW.DVO. If this file exists, DESQview/X is installed,
  28. and you may continue.  If not you will need to reference you DESQview/X
  29. installation guide for before continuing.
  30.  
  31. CONVERTING THE FONT DESCRIPTION FILES
  32.  
  33. Before moving the PC fonts over to the IRIX workstation, you will need
  34. to convert the .bdf font files to .snf font files.  This would be done
  35. by typeing the following series of commands:
  36.  
  37.    cd \DVX\BDF <─┘
  38.    ..\bdftosnf pc8x8.bdf > pc8x8.snf
  39.    ..\bdftosnf pc8x14.bdf > pc8x14.snf
  40.    ..\bdftosnf pc8x16.bdf > pc8x16.snf
  41.  
  42. TRANSFERING THE FONT DEFINITION FILES
  43.  
  44. If you haven't yet configured FTP's PCTCP software you'll need to
  45. reference the green PCTCP manual before continuing with this document.
  46.  
  47. You will need to switch to the \FTP subdirectory on the DOS machine
  48. where the PCTCP software is configured.  This may be done with the
  49. following command:
  50.  
  51.     C:\> cd \ftp <─┘
  52.  
  53. Then we'll use the FTP (File Transfere Protocol) utility to move the
  54. font description files up to the IRIX workstation.  This can be done
  55. with the following commands:
  56.  
  57.     C:\FTP> ftp <─┘
  58.     ftp> login: <username> <─┘
  59.     ftp> password: <password> <─┘
  60.   ftp> mput \DVX\BDF\pc*.snf <─┘
  61.     ftp> quit <─┘
  62.  
  63. In the above command <username> would be your username on the IRIX
  64. workstation, and <password> is the password required for <username> to
  65. successfully log on to the IRIX workstation.  After these commands are
  66. performed, the font description files are ready to be aliased, and used
  67. by the X Window System on the IRIX workstation.
  68.  
  69. ALIASING THE FONTS
  70.  
  71. IRIX's X Window System lets you assign aliases to fonts so that you can
  72. refer to a font without having to type it's full name.  To create a font
  73. alias, follow the following steps:
  74.  
  75. 1.  Log into the system as root.
  76.  
  77. 2.  Edit the file named fonts.dir.  Usually, this directory is called
  78.     either 75dpi, 100dpi or misc in the /usr/lib/X11/fonts subdirectory.
  79.     This directory must be in the search path.
  80.  
  81. 3.  Edit fonts.dir so that it contains at least one line with the
  82.     following format:
  83.  
  84.     aliasname   fontname
  85.  
  86.     In this line, aliasname is the name that is used to reference the
  87.     font, and fontname is the fullname of the font.  So, to add the pc
  88.     fonts to this font directory, you will need to append the following
  89.     lines to the fonts.dir file:
  90.  
  91. pc8x8.snf   -quarterdeck-fixed-bold-r-normal--8-80-75-75-c-80-iso8859-1
  92. pc8x14.snf  -quarterdeck-fixed-bold-r-normal--14-140-75-75-c-80-iso8859-1
  93. pc8x16.snf  -quarterdeck-fixed-bold-r-normal--16-160-75-75-c-80-iso8859-1
  94.  
  95. 4.  If you performed step 3 from an X session, you must reset the
  96.     server's font search path.  You can do this either by stopping the IRIX
  97.     X Window System and then restarting it, or by entering the following
  98.     command from and odtterm window:
  99.  
  100.     xset fp rehash
  101.  
  102.     If you performed step 3 directly from the operating system command line
  103.     (and the X Window System was not running), there is no need to reset the
  104.     server. The changes that you made to the fonts.dir file are incorporated
  105.     automatically the next time you start the X Window System.
  106.  
  107.              Copyright (C) 1991 by Quarterdeck Office Systems
  108.                  * * *    E N D   O F   F I L E    * * *
  109.