ITRANS Guestbook E-mail --------------------------------------------------------------------------- ITRANS Font Install Instructions (HTML display) ITRANS 5.1 ----------------------------------------------------- Installing fonts for X11R6/PC/Mac All these fonts are present in the ITRANS "lib/fonts" directory. So, to get these fonts, you've to first download the ITRANS 5.1 package. This section explains how to install the TrueType or Type1 fonts so that Itrans output can be viewed directly using WWW browsers such as Netscape 3.x Xdvng font files (Devanagari): X11R6 PC (Windows) Mac ------------ ------------ ------------ xdvng.pfb xdvng.ttf xdvng.hqx ItxGuj font files (Gujarati): X11R6 PC (Windows) Mac ------------ ------------ ------------ itxguj.pfb itxguj.ttf itxguj.hqx ItxBeng font files (Bengali): X11R6 PC (Windows) Mac ------------ ------------ ------------ itxbeng.pfb itxbeng.ttf itxbeng.hqx CSUtopia font files (Romanized Devanagari): X11R6 PC (Windows) Mac ------------ ------------ ------------ putb8iX.pfb (not available yet) (not available yet) putbi8iX.pfb (not available yet) (not available yet) putr8iX.pfb (not available yet) (not available yet) putri8iX.pfb (not available yet) (not available yet) Washinton Roman Indic font files: X11R6 PC (Windows) Mac ------------ ------------ ------------ n/a wnribx.ttf n/a n/a wnrir.ttf n/a n/a wnriti.ttf n/a ----------------------------------------------------- Mac instructions. The Mac font is available as a .hqx file, which is an encoded form of the font suitcase. * Decode the .hqx file. You can do this using the DeHQX application, or the Stuffit-Expander application. * Exit all applications (or, atleast exit Netscape). * Copy the font file to your system folder. * Start Netscape, and vist the sample page listed at the top of this page. ----------------------------------------------------- PC (Windows) instructions. The PC font is available as a TrueType font file (.ttf). * Exit all applications (or, atleast exit Netscape). * Open up the Fonts section of the Control Panels. * Select the Add font command, and add the .ttf file. * Start Netscape, and vist the sample page listed at the top of this page. ----------------------------------------------------- X11R6 instructions. Unix systems running X11R6 now support PostScript Type 1 fonts. Technical issues: [Feel free to skip the next few paragraphs and jump directly to the list of steps required to install Type 1 fonts for X11R6. The following paragraphs just provide some technical background on all the tricks that had to be followed to get the font working under X11R6 and to make it easy to browse documents using these fonts on the WWW.] I discovered a problem with the Type 1 rasterizer of X11R6, it seems that it just ignores the encoding defined in the font, and always accesses the font assuming it is ISOLatin1 encoded. Clearly, these Indic fonts are in a fontspecific encoding, they are definitely not in the Latin1 encoding. We have to fool X11R6 into thinking that way, so the fonts are created using Latin1 encoding. That is with respect to font creation, for font installion, we still have a choice on how to choose the XLFD name of the font. To be correct, we should use a XLFD name that identifies these fonts as having a "fontspecific" encoding. But if we do this, then under Netscape, we have to select the "User Defined" encoding each time we visit a page using these fonts. So, we have to provide yet another fake artifact - we name the font two ways: one is the correct fontspecific name (so that the user can select the "User Defined" document encoding option and have everything displayed correctly), and another name that defines the font as a iso8859-1 encoded font. The iso8859-1 encoding is a fake definition for the regions where Latin1 is the default encoding (North America, most parts of Europe, etc). If you are in a region where the default encoding is different from iso8859-1, you should change the iso8859-1 words in the following list of instructions to the XLFD name of your default encoding. Anyway, here are the steps to install a Type 1 font under X11R6: * Copy all the .pfb font files to a new empty directory that is readble on the machine that is running the X11R6 display server. * Exit all applications (or, atleast exit Netscape). * Create a fonts.scale file, you can view the sample FONTS.SCALE file present in the ITRANS/lib directory of the ITRANS archive, or use the following lines (you need to copy only those lines that correspond to the .pfb files you are interested in): 14 putb8iX.pfb -itrans-csutopia-bold-r-normal--0-0-0-0-p-0-itrans-fontspecific putbi8iX.pfb -itrans-csutopia-bold-i-normal--0-0-0-0-p-0-itrans-fontspecific putr8iX.pfb -itrans-csutopia-medium-r-normal--0-0-0-0-p-0-itrans-fontspecific putri8iX.pfb -itrans-csutopia-medium-i-normal--0-0-0-0-p-0-itrans-fontspecific itxguj.pfb -itrans-itxguj-regular-r-normal--0-0-0-0-p-0-itrans-fontspecific itxbeng.pfb -itrans-itxbeng-regular-r-normal--0-0-0-0-p-0-itrans-fontspecific xdvng.pfb -itrans-xdvng-regular-r-normal--0-0-0-0-p-0-itrans-fontspecific putb8iX.pfb -itrans-csutopia-bold-r-normal--0-0-0-0-p-0-iso8859-1 putbi8iX.pfb -itrans-csutopia-bold-i-normal--0-0-0-0-p-0-iso8859-1 putr8iX.pfb -itrans-csutopia-medium-r-normal--0-0-0-0-p-0-iso8859-1 putri8iX.pfb -itrans-csutopia-medium-i-normal--0-0-0-0-p-0-iso8859-1 itxguj.pfb -itrans-itxguj-regular-r-normal--0-0-0-0-p-0-iso8859-1 itxbeng.pfb -itrans-itxbeng-regular-r-normal--0-0-0-0-p-0-iso8859-1 xdvng.pfb -itrans-xdvng-regular-r-normal--0-0-0-0-p-0-iso8859-1 * Run the "mkfontdir" command in the above directory. This will generate a fonts.dir file. * Add the directory to your X11 display server with this command: xset fp+ * Now, if you do a "xlsfonts" command, you should see the names of the fonts you added. To test if the font is working, try this command: "xfd -fn " where the full X11 font name is used. This should display all the characters in the font. * Start Netscape, and vist the sample page listed at the top of this page. Classical Sanskrit (Roman) encoded fonts issues: PC platform note: As of Dec 96, I could not get the CSUtopia TrueType fonts to work on PC Windows systems. So, instead of CSUtopia, I'm using the Washington Roman Indic font for displaying the text in Romanized Devanagari on PC platforms (Windows 3.1/95/NT). Both these fonts are in the Classical Sanskrit (Roman) encoding, so are compatible with each other. Mac platform note: As of Dec 96, no CS/CSX font is available, so this text cannot be viewed correctly on a Mac. CSUtopia works on Unix/X11R6 Windowing systems and PostScript printers only. --------------------------------------------------------------------------- ITRANS Guestbook E-mail --------------------------------------------------------------------------- Last modified: 18 May, 1997. Copyright © 1995-97 Avinash Chopde, avinash@acm.org. All rights reserved. Page URL: http://www.paranoia.com/~avinash/finstall.html