home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Documents / FAQ / Fonts-faq / part11 < prev    next >
Encoding:
Internet Message Format  |  1993-08-16  |  9.6 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!news.kei.com!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!nic.umass.edu!ymir.cs.umass.edu!ymir.cs.umass.edu!usenet
  2. From: walsh@cs.umass.edu (Norman Walsh)
  3. Newsgroups: comp.fonts,comp.answers,news.answers
  4. Subject: comp.fonts FAQ: X11 Info
  5. Followup-To: poster
  6. Date: 16 Aug 1993 18:43:59 GMT
  7. Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
  8. Lines: 217
  9. Approved: news-answers-request@MIT.Edu
  10. Distribution: world
  11. Expires: 15 Sep 93 14:42:23 GMT
  12. Message-ID: <fonts-faq-11-745526543@cs.umass.edu>
  13. References: <fonts-faq-1-745526543@cs.umass.edu>
  14. Reply-To: walsh@cs.umass.edu (Norman Walsh)
  15. NNTP-Posting-Host: ibis.cs.umass.edu
  16. Summary: This posting answers frequently asked questions about fonts.
  17.          It addresses both general font questions and questions that
  18.      are specific to a particular platform.
  19. Xref: senator-bedfellow.mit.edu comp.fonts:9732 comp.answers:1631 news.answers:11456
  20.  
  21. Posted-By: auto-faq 2.4
  22. Archive-name: fonts-faq/part11
  23. Version: 2.0.1
  24.  
  25. Subject: 9. X11 Information
  26.   
  27.   This section needs a lot of work.  At the time of this release, I'm not
  28.   in a position to write it so I'm leaving it basically blank.  Even if
  29.   you don't have time to write it, if you know what should be in this
  30.   section, please forward it to norm.
  31.   
  32. Subject: 9.1. Getting X11
  33.   
  34.   The standard location for X software is export.lcs.mit.edu.
  35.   
  36. Subject: 9.2. Historical Notes about X11
  37.   
  38.   The X Window System has been in widespread use through releases 3, 4,
  39.   and now 5 of X Version 11.
  40.   
  41.   Fonts weren't really treated by the X Consortium very well until X11
  42.   release 5 (X11R5).  In X11R3 and X11R4, the default format used by the X
  43.   servers was called SNF (server normal format). Basically the font was
  44.   formatted on disk in such a way that the X server could quickly read and
  45.   use it (it was basically a memory-dump).  The important element of the
  46.   SNF format is that it was not a portable format: it depended on the
  47.   architecture of the machine running the server (little endian vs. big
  48.   endian, for example) and as a consequence you needed different directory
  49.   structures for different systems on your network.  On top of that,
  50.   several systems vendors implemented their own font format, making font
  51.   portability even more difficult.
  52.   
  53.   With X11R5, two things changed: the font service protocol was defined as
  54.   a standard and interoperable way for an X server to obtain fonts
  55.   (independent of their format, origin, or current location on disk) and
  56.   the default format for storing fonts was changed from SNF to PCF
  57.   (Portable Compiled Font).  PCF is a format originally developed by DEC.
  58.   Its primary advantage is that it is not architecture dependent.  That
  59.   is, if you compile a font to PCF format on different systems, then you
  60.   may end up having two different PCF files, but each system will be able
  61.   to read the other's file correctly.
  62.   
  63. Subject: 9.3. X11 Font Formats
  64.   
  65.   There are many different font formats that can play a role in an X11
  66.   system configuration.  The following table summarizes some of the
  67.   common formats:
  68.   
  69.      * BDF
  70.   
  71.        The Bitmap Distribution Format (BDF) is the standard format for
  72.        distribution of fonts. It is an ASCII format so it can easily be
  73.        edited it with your favourite editor or E-mailed to other users.
  74.        As the name suggests, it stores bitmap fonts only.
  75.   
  76.        Another virtue of the BDF format is that most font format
  77.        converters convert to or from this format. Means if you want to go
  78.        from format A to format B, neither of which is BDF, then you are
  79.        likely to convert A to BDF, then BDF to B.
  80.   
  81.        The BDF format is defined by Adobe.  A document describing the
  82.        format is available by ftp from Adobe's file server at
  83.        "ps-file-server@adobe.com".  It is also available in the standard X
  84.        distribution.  Look under ../X11R4(5)/mit/hardcopy/BDF.  This
  85.        document is also reproduced in any text describing the X standard.
  86.   
  87.      * SNF
  88.   
  89.        The Server Normal Format (SNF) is an older format for bitmap
  90.        fonts. The format is X Server and host dependent.  This means that
  91.        if you have two SNF files, their actual format may be different.
  92.        Also, if you have an "snftobdf" utility, it may not be able to
  93.        read font files from other systems.  Convert to BDF format before
  94.        you move it off the host system.
  95.   
  96.        Snftobdf is one utility that can generate a BDF file from a SNF
  97.        file.  It was part of the X11R4 contrib release.  To compile under
  98.        X11R5, you need some of the X11R4 snf include files.
  99.   
  100.      * PCF
  101.   
  102.        The Portable Compiled Font (PCF) format is a binary format for
  103.        bitmap fonts.  The binary contains sufficient information to be
  104.        readable by other systems.
  105.   
  106.      * PHIGS
  107.   
  108.        These fonts are only applicable in PEX environments.  PHIGS fonts
  109.        don't really have any relationship to the normal X font mechanism.
  110.   
  111.      * DWF
  112.   
  113.        The DECWindows Fonts (DWF) are bitmap fonts.
  114.   
  115.      * Intellifont
  116.   
  117.        These are HP scalable fonts.
  118.   
  119.      * PFA/PFB
  120.   
  121.        These are Adobe Type 1 PostScript fonts.
  122.   
  123.        They can be used in X11R5 based X servers and font servers because
  124.        IBM has donated a renderer for this format to the X Consortium.
  125.        The renderer can be found on the X11R5 contrib, and on
  126.        export.lcs.mit.edu.
  127.   
  128.      * Speedo
  129.   
  130.        This is a format from Bitstream, Inc. Bitstream has also donated a
  131.        font renderer to the X Consortium, and a couple of fonts.
  132.   
  133.        I have been told that in order to use commercial fonts from
  134.        BitStream, you must patch the renderer somewhat to make it use the
  135.        right decryption code for the font.
  136.   
  137.      * FB
  138.   
  139.        These are Sun X11/NeWS format bitmap fonts used by the Sun
  140.        OpenWindows system.
  141.   
  142.        You can use "convertfont" which comes with OpenWindows to convert
  143.        to/from BDF.
  144.   
  145.      * F3/F3B
  146.   
  147.        This is the scalable Sun Folio format, also used by OpenWindows.
  148.   
  149.        You can use "convertfont" to convert to (not from) BDF.
  150.   
  151. Subject: 9.4. X11 Font Server Information
  152.   
  153.   With X11 Release 5, the X Consortium has created a network-based
  154.   standard font protocol. As a user of the X Window System, you have an X
  155.   server on your desktop, which does the interface between the hardware
  156.   (screen, mouse, keyboard), and the X network protocol. This X server
  157.   needs fonts.  Before X11r5, the only way it could get to those fonts
  158.   was to make font directories readable for the X server on that host,
  159.   either by NFS-mounting or by copying.
  160.   
  161.   With the X Font Service protocol, you just tell your X server that it
  162.   must use the services of a font server, which is a daemon process
  163.   sitting on a host on your network. The font server is a program which
  164.   talks a standardized protocol on the network, and which is capable of
  165.   reading several font formats.
  166.   
  167.   The font server sources are modular, such that it is easy to add a
  168.   renderer for an additional font format to the existing code. This is
  169.   obviously also the intention: the X Consortium provides the core
  170.   technology, and supposes that all systems vendors will add font
  171.   renderers for their proprietary formats to the code, and then ship that
  172.   to their customers.
  173.   
  174.   If you have a multi-vendor environment, then you are supposed to run a
  175.   font server on every host that carries the font files. Then all of the
  176.   X servers on your network can put all the fonts they need in their font
  177.   path. Automatically, IBM fonts will be requested from the font server
  178.   on an IBM host, DEC fonts from a DEC host, etc.
  179.   
  180.   Other benefits of using font server technology include the ability of
  181.   the font server to implement caching, provide for fault-tolerant setup,
  182.   etc.
  183.   
  184.   A final example of the good use of the font server is the combination
  185.   of a font server with a Type 1 font renderer. As mentioned above, IBM
  186.   donated a Type 1 font renderer which can easily be built into the X
  187.   font server. As the Type 1 font format, and the ATM format are the same,
  188.   it is perfectly possible to use commercial ATM fonts with the X Window
  189.   System.
  190.   
  191. Subject: 9.5. Fonts and utilities for X11
  192.   
  193.   Here's a quick list of possible steps to get from "what you got" to X:
  194.   
  195.      * Mac format bitmaps:
  196.   
  197.        No idea.  If you know how to read a Mac format bitmap file on some
  198.        other platform, please tell norm.
  199.   
  200.      * PC format bitmaps:
  201.   
  202.        Conversion to BDF is possible from TeX PK format and LaserJet
  203.        softfont format.  Other conversions are also within the realm of
  204.        possibility.  Feel free to ask norm for more information if you
  205.        have a specific conversion in mind.
  206.   
  207.      * TeX PK format bitmaps:
  208.   
  209.        PKtoBDF gets us directly to BDF format from here.
  210.   
  211.      * Mac format postscript:
  212.   
  213.        Under MS-DOS, conversion to PC format postscript allows the font to
  214.        be accessed with PS2PK (under *nix or MS-DOS).  See above for TeX
  215.        PK to X conversions.
  216.   
  217.      * PC/Unix format PostScript
  218.   
  219.        Conversion to TeX PK with PS2PK allows you to get to BDF
  220.        (indirectly).
  221.   
  222.      * XtoBDF, getbdf, FStoBDF
  223.   
  224.        XtoBDF and getbdf are two public-domain applications which are
  225.        capable of asking an X server to give them all it knows about a
  226.        given font. They then print the BDF representation of that font on
  227.        stdout.
  228.   
  229.        You can use these if you have an X server that can read some font
  230.        file, but nothing else can.
  231.   
  232.        FStoBDF is distributed with X11R5.
  233.   
  234.        If you use one of these programs, you may actually be converting a
  235.        scalable font into a bitmap font, but converting a bitmap font to a
  236.        scalable one is not currently possible.
  237.   
  238.