home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / fonts-faq / part15 < prev    next >
Internet Message Format  |  1996-08-15  |  10KB

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