home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / doc / gs-common / README.Debian < prev   
Encoding:
Text File  |  2006-10-30  |  3.8 KB  |  110 lines

  1. gs-common for Debian
  2. --------------------
  3.  
  4. This package contains a bunch of scripts and manpages for GPL/AFPL/ESP
  5. Ghostscript.  These files basically come from the latest GPL
  6. Ghostscript.
  7.  
  8. o On Defoma
  9.  
  10. The font configuration for Ghostscript is now controlled by Defoma.
  11.  
  12. If you want to update the font configuration, run:
  13.  
  14.   defoma-app update gs
  15.  
  16. Then the Defoma-configuration script for gs is called.
  17.  
  18. Following describes what the Defoma-configuration script for gs does.
  19.  
  20. Ghostscript accepts "type1", "type3", "gsfontderivative", "truetype",
  21. "cid", "cmap" and "psprint" categories.  gs registers all PostScript
  22. fonts available to gs in the postscript category with <gs>/ added to
  23. the front of their names.
  24.  
  25. Ghostscript creates files under /var/lib/defoma/gs.d/dirs.  This
  26. directory contains CMap and fonts subdirectories, and the CMap
  27. subdirectory is symlinked under /usr/share/ghostscript.
  28.  
  29. If you want to have a certain PostScript font name which is not
  30. provided by registered fonts as RealName or Alias, you can have such a
  31. font name substituted. Run
  32.  
  33.   defoma-subst edit-rule ghostscript
  34.  
  35. to edit the subst-rule. 
  36.  
  37. For example, if you want to have Charter-Bold available whose charset
  38. is ISO8859-1 and which has serifed, proportionally-spaced bold face,
  39. you should add the following line:
  40.  
  41. Charter-Bold --Charset,* ISO8859-1 --GeneralFamily Roman --Weight Bold
  42. --Width Variable --Shape Upright Serif
  43.  
  44. Then Charter-Bold will be substituted by the most similar font and
  45. become available.
  46.  
  47. The way to have CJK font substituted changes compared to the old
  48. gs-aladdin (6.50-x).  If you want to have Korean PostScript font,
  49. Dotum-Medium-KSC-EUC-H available whose actual font name is
  50. Dotum-Medium and KSC-EUC-H is a name of CMap, you should add the
  51. following line:
  52.  
  53. Dotum-Medium --CIDRegistry,* Adobe --CIDOrdering,* Korea1 --Weight Medium --Shape Upright
  54.  
  55. Then Dotum-Medium-* (* is a name of Korean CMap) are substituted and
  56. become available.
  57.  
  58. Following is a list of hinttypes specific to gs.
  59.  
  60. * GS-OriginFont, GS-OriginID: These hinttypes are used in
  61.   gsfontderivative category. The content of a font within this
  62.   category is a small PostScript program that generates a 
  63.   derivative font from a certain substantial type1 or type3 font.
  64.   Generally a derivative font has bold or oblique shape, while
  65.   the original font has normal upright shape.
  66.   A font within this category must specify the original font and
  67.   its RealName with GS-OriginFont and GS-OriginID hinttypes.
  68.  
  69. 1. type1 and type3
  70.  
  71. Fonts within this category are handled in the same way. Symlink to the
  72. fontfile is created under /var/lib/defoma/gs.d/dirs/fonts, and its
  73. font name, font file and alises are listed in Fontmap.
  74.  
  75. 2. gsfontderivative
  76.  
  77. Fonts within this category are handled in the similar way. Only one
  78. difference is that dependency on the origin of the font is registered
  79. when fonts are registered to Id cache.
  80.  
  81. 3. truetype
  82.  
  83. Fonts within this category are handled in the same way as type1 and
  84. type3 if the font doesn't include CJK glyphs. CJK truetype fonts goes
  85. different. It is treated as a cid font.
  86.  
  87. 4. cid
  88.  
  89. Symlink to the font file is created under
  90. /var/lib/defoma/gs.d/dirs/fonts, and its font name, font file and
  91. aliases are listed in CIDFnmap.  Using registered CMaps which belong
  92. to the same CIDRegistry and CIDOrdering, <CID-FontName>-<CMapName> are
  93. registered in postscript category.
  94.  
  95. 5. cmap
  96.  
  97. Symlink to the CMap file is created under
  98. /var/lib/defoma/gs.d/dirs/CMap.  Using registered CID fonts which
  99. belong to the same CIDRegistry and CIDOrdering,
  100. <CID-FontName>-<CMapName> are registered in postscript category.
  101.  
  102. 6. psprint
  103.  
  104. Fonts installed in a PostSciprt printer should be previewable by
  105. ghostscript.  They are registered to psprint category, so the script
  106. accepts this category and add the fonts and their hints to a
  107. subst-rule.
  108.  
  109.  -- Masayuki Hatta (mhatta) <mhatta@debian.org>, Sat, 21 Oct 2006 05:21:11 +0900
  110.