~ubuntu-branches/ubuntu/dapper/cedilla/dapper

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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
(in-package "CEDILLA")

;;; For compatibility with legacy encodings, many Latin fonts contain
;;; a number of Greek glyphs (almost always mu, but sometimes also
;;; others).  In order to get all Greek glyphs from the same font, we
;;; explicitly :OMIT them.

(eval-when (load compile eval)
(defparameter *greek-glyph-names*
  '("Alpha" "Beta" "Chi" "Delta" "Epsilon" "Phi" "Gamma" "Eta" "Iota"
    "theta1" "Kappa" "Lambda" "Mu" "Nu" "Omicron" "Pi" "Theta" "Rho"
    "Sigma" "Tau" "Upsilon" "sigma1" "Omega" "Xi" "Psi" "Zeta" "alpha"
    "beta" "chi" "delta" "epsilon" "phi" "gamma" "eta" "iota" "phi1"
    "kappa" "lambda" "mu" "nu" "omicron" "pi" "theta" "rho" "sigma" "tau"
    "upsilon" "omega1" "omega" "xi" "psi" "zeta" "Upsilon1"))
)

;;; Font sets using standard PS fonts.

(define-fontset "courier"
  `((:afm "/usr/share/texmf/fonts/afm/adobe/courier/pcrr8a.afm"
     :omit ,*greek-glyph-names*)
    (:built-in :width 600 :cap-height 562 :x-height 426)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

(define-fontset "times"
  `((:afm "/usr/share/texmf/fonts/afm/adobe/times/ptmr8a.afm"
     :omit ,*greek-glyph-names*)
    (:built-in :width 667 :figure-width 500 :cap-height 662 :x-height 450)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

(define-fontset "helvetica"
  `((:afm "/usr/share/texmf/fonts/afm/adobe/helvetic/phvr8a.afm"
     :omit ,*greek-glyph-names*)
    (:built-in :width 722 :figure-width 556 :cap-height 718 :x-height 523)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; Just like Courier, but with narrower spaces.

(define-fontset "courier-space"
  `((:space :width 300)
    (:afm "/usr/share/texmf/fonts/afm/adobe/courier/pcrr8a.afm"
     :omit ,*greek-glyph-names*)
    (:built-in :width 600 :cap-height 562 :x-height 426)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; Random free fonts.

;;; This version of Courier covers all of Latin-2 out of the box.  It
;;; also contains a number of line- and box-drawing glyphs for
;;; compatibility with the IBM-PC character set.
   
(define-fontset "ibm-courier"
  `((:afm "/usr/X11R6/lib/X11/fonts/Type1/cour.afm"
     :resources ("/usr/X11R6/lib/X11/fonts/Type1/cour.pfa")
     :omit ,*greek-glyph-names*)
    (:built-in :width 600 :cap-height 562 :x-height 426)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; An Adobe font that found its way into X11R5.

(define-fontset "utopia"
  `((:afm "/usr/X11R6/lib/X11/fonts/Type1/UTRG____.afm"
     :resources ("/usr/X11R6/lib/X11/fonts/Type1/UTRG____.pfa")
     :omit ,*greek-glyph-names*)
    (:built-in :width 684 :figure-width 530 :cap-height 692 :x-height 509)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; The Luxi fonts, included with XFree86 4.2.0.

(define-fontset "luxi-mono"
  `((:afm "/usr/X11R6/lib/X11/fonts/Type1/l047013t.afm"
     :resources ("/usr/X11R6/lib/X11/fonts/Type1/l047013t.pfa")
     :omit ,*greek-glyph-names*)
    (:built-in :width 600 :cap-height 692 :x-height 509)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

(define-fontset "luxi-sans"
  `((:afm "/usr/X11R6/lib/X11/fonts/Type1/l048013t.afm"
     :resources ("/usr/X11R6/lib/X11/fonts/Type1/l048013t.pfa")
     :omit ,*greek-glyph-names*)
    (:built-in :width 722 :figure-width 556 :cap-height 723 :x-height 530)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

(define-fontset "luxi-serif"
  `((:afm "/usr/X11R6/lib/X11/fonts/Type1/l049013t.afm"
     :resources ("/usr/X11R6/lib/X11/fonts/Type1/l049013t.pfa")
     :omit ,*greek-glyph-names*)
    (:built-in :width 667 :figure-width 500 :cap-height 723 :x-height 530)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; The Omega Serif fonts, a set of international fonts provided with
;;; Omega, Yannis Haralambous' international version of TeX.

;;; As these fonts are designed for use with Omega, they do not
;;; include either a space or any precombined characters.  In
;;; addition, they use a selection of non-standard glyph names, which
;;; we compensate for.

(eval-when (load compile eval)
(defparameter *omega-serif-fonts*
  `(
    ;; Omega Serif Common
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omseco.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omseco.pfb")
     :encoding ,#'omega-encoding)
    ;; Omega Serif Latin
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omsela.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omsela.pfb")
     :encoding ,#'omega-encoding)
    ;; Omega Serif Greek
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omsegr.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omsegr.pfb")
     :encoding ,#'omega-encoding)
    ;; Omega Serif Cyrillic and Cyrillic Extended
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omsecy.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omsecy.pfb")
     :encoding ,#'omega-encoding)
    #+ignore
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omsecx.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omsecx.pfb")
     :encoding ,#'omega-encoding)
    ;; Omega Serif Armenian
    #+ignore
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omseha.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omseha.pfb")
     :encoding ,#'omega-encoding)
    ;; Omega Serif Hebrew
    #+ignore
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omsehe.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omsehe.pfb")
     :encoding ,#'omega-encoding)
    ;; Omega Serif Tifinagh
    #+ignore
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omseti.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omseti.pfb")
     :encoding ,#'omega-encoding)
    ;; Omega Serif IPA
    #+ignore
    (:afm "/usr/share/texmf/fonts/afm/public/omega/omseip.afm"
     :resources ("/usr/share/texmf/fonts/type1/public/omega/omseip.pfb")
     :encoding ,#'omega-encoding)
    (:built-in :width 667 :figure-width 500 :cap-height 662 :x-height 450)))
)

;;; One way of making the Omega Serif fonts usable is to simply
;;; provide them with a space glyph.
(define-fontset "omega-serif"
  `((:space :width 250)
    ,@*omega-serif-fonts*))

;;; The alternative is to use them with the Times-Roman font, with
;;; which they blend well
(define-fontset "times-omega-serif"
  `((:afm "/usr/share/texmf/fonts/afm/adobe/times/ptmr8a.afm"
     :omit ,*greek-glyph-names*)
    ,@*omega-serif-fonts*))

;;; Antykwa Poltawskiego.

(define-fontset "antp"
  `((:afm "/usr/share/texmf/fonts/afm/public/antp/antpr.afm"
     :omit ,*greek-glyph-names*
     :resources ("/usr/share/texmf/fonts/type1/public/antp/antpr.pfb"))
    (:built-in :width 656 :figure-width 480 :cap-height 700 :x-height 440)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; Antykwa Torunska.

(define-fontset "antt"
  `((:afm "/usr/share/texmf/fonts/afm/public/antt/anttr.afm"
     :omit ,*greek-glyph-names*
     :resources ("/usr/share/texmf/fonts/type1/public/antt/anttr.pfb"))
    (:built-in :width 763 :figure-width 520 :cap-height 714 :x-height 504)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; The URW++ fonts included with Ghostscript.  The versions included
;;; with GS 6.0 cover the full PS level 3 character set, which
;;; covers most European languages.

(define-fontset "gothicl"
  `((:afm "/usr/share/fonts/type1/gsfonts/a010013l.afm"
     :resources ("/usr/share/fonts/type1/gsfonts/a010013l.pfb")
     :omit ,*greek-glyph-names*)
    (:built-in :width 813 :figure-width 554 :cap-height 739 :x-height 547)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))
    
(define-fontset "bookman"
  `((:afm "/usr/share/fonts/type1/gsfonts/b018012l.afm"
     :resources ("/usr/share/fonts/type1/gsfonts/b018012l.pfb")
     :omit ,*greek-glyph-names*)
    (:built-in :width 740 :figure-width 620 :cap-height 681 :x-height 485)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))
    
(define-fontset "century-schoolbook"
  `((:afm "/usr/share/fonts/type1/gsfonts/c059013l.afm"
     :resources ("/usr/share/fonts/type1/gsfonts/c059013l.pfb")
     :omit ,*greek-glyph-names*)
    (:built-in :width 722 :figure-width 556 :cap-height 722 :x-height 466)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))
    
(define-fontset "palladio"
  `((:afm "/usr/share/fonts/type1/gsfonts/p052003l.afm"
     :resources ("/usr/share/fonts/type1/gsfonts/p052003l.pfb")
     :omit ,*greek-glyph-names*)
    (:built-in :width 709 :figure-width 500 :cap-height 692 :x-height 469)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; Cedilla really should compensate for the font's ItalicAngle when
;;; positioning diacritics.

(define-fontset "chancery"
  `((:afm "/usr/share/fonts/type1/gsfonts/z003034l.afm"
     :resources ("/usr/share/fonts/type1/gsfonts/z003034l.pfb")
     :omit ,*greek-glyph-names*)
    (:built-in :width 520 :figure-width 440 :cap-height 678 :x-height 411)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; This is a Cyrillic font that uses standard glyph names -- no
;;; hackery needed.  It also covers all of the AdobeStandard encoding,
;;; so there's no need to provide Courier as a fallback.

;;; For some strange reason it contains a Yi that claims to be
;;; uni0259 (schwa), so we omit that.

(define-fontset "cyrillic-courier"
  `((:afm "/usr/X11R6/lib/X11/fonts/Type1/n022003d.afm"
     :resources ("/usr/X11R6/lib/X11/fonts/Type1/n022003d.pfb")
     :omit ("uni0259" ,@*greek-glyph-names*))
    (:built-in :width 600 :cap-height 562 :x-height 426)
    (:afm "/usr/share/texmf/fonts/afm/adobe/symbol/psyr.afm")
    (:afm "/usr/share/texmf/fonts/afm/adobe/zapfding/pzdr.afm"
     :encoding ,#'zapf-dingbats-encoding)))

;;; Paper sizes.  See macros.lisp for additional keyword arguments.

(define-paper-size "A4"
  (cm 21) (cm 29.7))

(define-paper-size "Letter"
  (in 8.5) (in 11))