Defoma specific document. -------------------------------- Font configuration of gs is now controlled by Defoma. If you want to update the font configuration, run: defoma-app update gs then the Defoma-configuration script for gs is called. Following describes what the Defoma-configuration script for gs does. gs accepts type1, type3, gsfontderivatice, truetype, cid, cmap and psprint categories. gs registered all PostScript fonts available to gs in postscript category with / added to the top of their names. gs creates files under /var/lib/defoma/gs.d/dirs. This directory contains CMap and fonts subdirectories, and CMap subdirectory is symlinked under /usr/share/ghostscript. If you want to have a certain PostScript font name which is not provided by registered fonts as RealName or Alias, you can have such a font name substituted. Run defoma-subst edit-rule ghostscript to edit the subst-rule. For example, if you want to have Charter-Bold available whose charset is ISO8859-1 and which has serifed, propotional widthed bold face, you should add the following line: Charter-Bold --Charset,* ISO8859-1 --GeneralFamily Roman --Weight Bold \ --Width Variable --Shape Upright Serif Then Charter-Bold will be substituted by the most similar font and become available. The way to have CJK font substituted changes compared to the old gs-aladdin (6.50-x). If you want to have Korean PostScript font, Dotum-Medium-KSC-EUC-H available whose actual font name is Dotum-Medium and KSC-EUC-H is a name of CMap, you should add the following line: Dotum-Medium --CIDRegistry,* Adobe --CIDOrdering,* Korea1 --Weight Medium \ --Suape Upright Then Dotum-Medium-* (* is a name of Korean CMap) are substituted and become available. Following is a list of hinttypes specific to gs. * GS-OriginFont, GS-OriginID: These hinttypes are used in gsfontderivative category. Substance of a font within this category is a small PostScript program that generates a derivative font from a certain substantial type1 or type3 font. Generally a derivative font has bold or oblique shape, while the original font has normal upright shape. A font within this category must specify the original font and its RealName with GS-OriginFont and GS-OriginID hinttypes. 1. type1 and type3 Fonts within this category are handled in the same way. Symlink to the fontfile is created under /var/lib/defoma/gs.d/dirs/fonts, and its font name, font file and alises are listed in Fontmap. 2. gsfontderivative Fonts within this category are handled in the similar way. Only one difference is that dependency on the origin of the font is registered when fonts are registered to Id cache. 3. truetype Fonts within this category are handled in the same way as type1 and type3 if the font doesn't include CJK glyphs. CJK truetype fonts goes different. It is treated as a cid font. 4. cid Symlink to the font file is created under /var/lib/defoma/gs.d/dirs/fonts, and its font name, font file and aliases are listed in CIDFnmap. Using registered CMaps which belong to the same CIDRegistry and CIDOrdering, - are registered in postscript category. 5. cmap Symlink to the CMap file is created under /var/lib/defoma/gs.d/dirs/CMap. Using registered CID fonts which belong to the same CIDRegistry and CIDOrdering, - are registered in postscript category. 6. psprint Fonts installed in a PostSciprt printer should be previewable by ghostscript. They are registered to psprint category, so the script accepts this category and add the fonts and their hints to a subst-rule.