File: README.Debian

package info (click to toggle)
ghostscript 8.71~dfsg2-9%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 79,924 kB
  • ctags: 80,691
  • sloc: ansic: 501,432; sh: 25,689; python: 4,853; cpp: 3,633; perl: 3,597; tcl: 1,480; makefile: 1,187; lisp: 407; asm: 284; xml: 263; awk: 66; csh: 17; yacc: 15
file content (124 lines) | stat: -rw-r--r-- 4,390 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
ghostscript for Debian
======================

Reconstruction
--------------

This package is merged from the former gs-gpl, gs-esp, and gs-common
packages, see debian/NEWS file.

 -- Masayuki Hatta (mhatta) <mhatta@debian.org>, Sun, 13 Jan 2008 07:58:25 +0900

Removal of non-free files
-------------------------

I removed the directory Resource/Cmap and its contents from the
upstream source tarball since their licensing policy does not conform
to the DFSG.  Also, jaspter/doc/*.pdf have been removed since their
corresponding sources are not available.

 -- Masayuki Hatta (mhatta) <mhatta@debian.org>, Wed Apr 28 06:31:45 2004

Font handling with Defoma
-------------------------

The font configuration for Ghostscript 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.

Ghostscript accepts "type1", "type3", "gsfontderivative", "truetype",
"cid", "cmap" and "psprint" categories.  gs registers all PostScript
fonts available to gs in the postscript category with <gs>/ added to
the front of their names.

Ghostscript creates files under /var/lib/defoma/gs.d/dirs.  This
directory contains CMap and fonts subdirectories, and the 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, proportionally-spaced 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 --Shape 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. The content 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, <CID-FontName>-<CMapName> 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,
<CID-FontName>-<CMapName> 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.

 -- Masayuki Hatta (mhatta) <mhatta@debian.org>, Sat, 21 Oct 2006 05:21:11 +0900