]> code.delx.au - gnu-emacs/blob - lisp/international/fontset.el
(quail-help): The output message is improved.
[gnu-emacs] / lisp / international / fontset.el
1 ;;; fontset.el --- Commands for handling fontset.
2
3 ;; Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5
6 ;; Keywords: mule, multilingual, fontset
7
8 ;; This file is part of GNU Emacs.
9
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version.
14
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25 ;;; Code:
26
27 ;; Set standard fontname specification of characters in the default
28 ;; fontset to find an appropriate font for each charset. This is used
29 ;; to generate a font name for a fontset if the fontset doesn't
30 ;; specify a font name for a specific character. The specification
31 ;; has the form (FAMILY . REGISTRY). FAMILY may be nil, in which
32 ;; case, the family name of default face is used. If REGISTRY
33 ;; contains a character `-', the string before that is embedded in
34 ;; `CHARSET_REGISTRY' field, and the string after that is embedded in
35 ;; `CHARSET_ENCODING' field. If it does not contain `-', the whole
36 ;; string is embedded in `CHARSET_REGISTRY' field, and a wild card
37 ;; character `*' is embedded in `CHARSET_ENCODING' field. The
38 ;; REGISTRY for ASCII characters are predefined as "ISO8859-1".
39
40 (let ((l `((latin-iso8859-1 . (nil . "ISO8859-1"))
41 (latin-iso8859-2 . (nil . "ISO8859-2"))
42 (latin-iso8859-3 . (nil . "ISO8859-3"))
43 (latin-iso8859-4 . (nil . "ISO8859-4"))
44 (thai-tis620 . ("*" . "TIS620"))
45 (greek-iso8859-7 . ("*" . "ISO8859-7"))
46 (arabic-iso8859-6 . ("*" . "ISO8859-6"))
47 (hebrew-iso8859-8 . ("*" . "ISO8859-8"))
48 (katakana-jisx0201 . ("*" . "JISX0201"))
49 (latin-jisx0201 . (nil . "JISX0201"))
50 (cyrillic-iso8859-5 . ("*" . "ISO8859-5"))
51 (latin-iso8859-9 . (nil . "ISO8859-9"))
52 (japanese-jisx0208-1978 . ("*" . "JISX0208.1978"))
53 (chinese-gb2312 . ("*" . "GB2312"))
54 (japanese-jisx0208 . ("*" . "JISX0208.1983"))
55 (korean-ksc5601 . ("*" . "KSC5601"))
56 (japanese-jisx0212 . ("*" . "JISX0212"))
57 (chinese-cns11643-1 . ("*" . "CNS11643.1992-1"))
58 (chinese-cns11643-2 . ("*" . "CNS11643.1992-2"))
59 (chinese-cns11643-3 . ("*" . "CNS11643.1992-3"))
60 (chinese-cns11643-4 . ("*" . "CNS11643.1992-4"))
61 (chinese-cns11643-5 . ("*" . "CNS11643.1992-5"))
62 (chinese-cns11643-6 . ("*" . "CNS11643.1992-6"))
63 (chinese-cns11643-7 . ("*" . "CNS11643.1992-7"))
64 (chinese-big5-1 . ("*" . "Big5"))
65 (chinese-big5-2 . ("*" . "Big5"))
66 (chinese-sisheng . (nil . "sisheng_cwnn"))
67 (vietnamese-viscii-lower . (nil . "VISCII1.1"))
68 (vietnamese-viscii-upper . (nil . "VISCII1.1"))
69 (arabic-digit . ("*" . "MuleArabic-0"))
70 (arabic-1-column . ("*" . "MuleArabic-1"))
71 (arabic-2-column . ("*" . "MuleArabic-2"))
72 (ipa . (nil . "MuleIPA"))
73 (ethiopic . ("*" . "Ethiopic-Unicode"))
74 (ascii-right-to-left . (nil . "ISO8859-1"))
75 (indian-is13194 . ("*" . "IS13194-Devanagari"))
76 (indian-2-column . ("*" . "MuleIndian-2"))
77 (indian-1-column . ("*" . "MuleIndian-1"))
78 (lao . ("*" . "MuleLao-1"))
79 (tibetan . ("proportional" . "MuleTibetan-0"))
80 (tibetan-1-column . ("*" . "MuleTibetan-1"))
81 (latin-iso8859-14 . (nil . "ISO8859-14"))
82 (latin-iso8859-15 . (nil . "ISO8859-15"))
83 (mule-unicode-0100-24ff . (nil . "ISO10646-1"))
84 (japanese-jisx0213-1 . ("*" . "JISX0213"))
85 (japanese-jisx0213-2 . ("*" . "JISX0213"))
86 ))
87 charset font-spec arg)
88 (while l
89 (setq charset (car (car l)) font-spec (cdr (car l)) l (cdr l))
90 (or (string-match "-" (cdr font-spec))
91 (setcdr font-spec (concat (cdr font-spec) "*")))
92 (if (symbolp charset)
93 (setq arg (make-char charset))
94 (setq arg charset))
95 (set-fontset-font "fontset-default" arg font-spec)))
96
97 ;; Set arguments in `font-encoding-alist' (which see).
98 (defun set-font-encoding (pattern charset encoding)
99 (let ((slot (assoc pattern font-encoding-alist)))
100 (if slot
101 (let ((place (assq charset (cdr slot))))
102 (if place
103 (setcdr place encoding)
104 (setcdr slot (cons (cons charset encoding) (cdr slot)))))
105 (setq font-encoding-alist
106 (cons (list pattern (cons charset encoding)) font-encoding-alist)))
107 ))
108
109 (set-font-encoding "ISO8859-1" 'ascii 0)
110 (set-font-encoding "JISX0201" 'latin-jisx0201 0)
111
112 ;; Setting for suppressing XLoadQueryFont on big fonts.
113 (setq x-pixel-size-width-font-regexp
114 "gb2312\\|jisx0208\\|ksc5601\\|cns11643\\|big5")
115
116 ;; These fonts require vertical centering.
117 (setq vertical-centering-font-regexp
118 "gb2312\\|jisx0208\\|jisx0212\\|ksc5601\\|cns11643\\|big5")
119
120 (defvar x-font-name-charset-alist
121 '(("iso8859-1" ascii latin-iso8859-1)
122 ("iso8859-2" ascii latin-iso8859-2)
123 ("iso8859-3" ascii latin-iso8859-3)
124 ("iso8859-4" ascii latin-iso8859-4)
125 ("iso8859-5" ascii cyrillic-iso8859-5)
126 ("iso8859-6" ascii arabic-iso8859-6)
127 ("iso8859-7" ascii greek-iso8859-7)
128 ("iso8859-8" ascii hebrew-iso8859-8)
129 ("iso8859-14" ascii latin-iso8859-14)
130 ("iso8859-15" ascii latin-iso8859-15)
131 ("tis620" ascii thai-tis620)
132 ("koi8" ascii cyrillic-iso8859-5)
133 ("viscii" ascii vietnamese-viscii-upper vietnamese-viscii-lower)
134 ("vscii" ascii vietnamese-viscii-upper vietnamese-viscii-lower)
135 ("mulelao-1" ascii lao))
136 "Alist of font names vs list of charsets the font can display.
137
138 When a font name which matches some element of this alist is given as
139 `-fn' command line argument or is specified by X resource, a fontset
140 which uses the specified font for the corresponding charsets are
141 created and used for the initial frame.")
142
143 ;;; XLFD (X Logical Font Description) format handler.
144
145 ;; Define XLFD's field index numbers. ; field name
146 (defconst xlfd-regexp-foundry-subnum 0) ; FOUNDRY
147 (defconst xlfd-regexp-family-subnum 1) ; FAMILY_NAME
148 (defconst xlfd-regexp-weight-subnum 2) ; WEIGHT_NAME
149 (defconst xlfd-regexp-slant-subnum 3) ; SLANT
150 (defconst xlfd-regexp-swidth-subnum 4) ; SETWIDTH_NAME
151 (defconst xlfd-regexp-adstyle-subnum 5) ; ADD_STYLE_NAME
152 (defconst xlfd-regexp-pixelsize-subnum 6) ; PIXEL_SIZE
153 (defconst xlfd-regexp-pointsize-subnum 7) ; POINT_SIZE
154 (defconst xlfd-regexp-resx-subnum 8) ; RESOLUTION_X
155 (defconst xlfd-regexp-resy-subnum 9) ; RESOLUTION_Y
156 (defconst xlfd-regexp-spacing-subnum 10) ; SPACING
157 (defconst xlfd-regexp-avgwidth-subnum 11) ; AVERAGE_WIDTH
158 (defconst xlfd-regexp-registry-subnum 12) ; CHARSET_REGISTRY
159 (defconst xlfd-regexp-encoding-subnum 13) ; CHARSET_ENCODING
160
161 ;; Regular expression matching against a fontname which conforms to
162 ;; XLFD (X Logical Font Description). All fields in XLFD should be
163 ;; not be omitted (but can be a wild card) to be matched.
164 (defconst xlfd-tight-regexp
165 "^\
166 -\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)\
167 -\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)\
168 -\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)-\\([^-]*\\)$")
169
170 ;; List of field numbers of XLFD whose values are numeric.
171 (defconst xlfd-regexp-numeric-subnums
172 (list xlfd-regexp-pixelsize-subnum ;6
173 xlfd-regexp-pointsize-subnum ;7
174 xlfd-regexp-resx-subnum ;8
175 xlfd-regexp-resy-subnum ;9
176 xlfd-regexp-avgwidth-subnum ;11
177 ))
178
179 (defun x-decompose-font-name (pattern)
180 "Decompose PATTERN into XLFD's fields and return vector of the fields.
181 The length of the vector is 14.
182
183 If PATTERN doesn't conform to XLFD, try to get a full XLFD name from
184 X server and use the information of the full name to decompose
185 PATTERN. If no full XLFD name is gotten, return nil."
186 (let (xlfd-fields fontname)
187 (if (string-match xlfd-tight-regexp pattern)
188 (let ((i 0))
189 (setq xlfd-fields (make-vector 14 nil))
190 (while (< i 14)
191 (aset xlfd-fields i (match-string (1+ i) pattern))
192 (setq i (1+ i)))
193 xlfd-fields)
194 (setq fontname (condition-case nil
195 (x-resolve-font-name pattern)
196 (error)))
197 (if (and fontname
198 (string-match xlfd-tight-regexp fontname))
199 ;; We get a full XLFD name.
200 (let ((len (length pattern))
201 (i 0)
202 l)
203 ;; Setup xlfd-fields by the full XLFD name. Each element
204 ;; should be a cons of matched index and matched string.
205 (setq xlfd-fields (make-vector 14 nil))
206 (while (< i 14)
207 (aset xlfd-fields i
208 (cons (match-beginning (1+ i))
209 (match-string (1+ i) fontname)))
210 (setq i (1+ i)))
211
212 ;; Replace wild cards in PATTERN by regexp codes.
213 (setq i 0)
214 (while (< i len)
215 (let ((ch (aref pattern i)))
216 (if (= ch ??)
217 (setq pattern (concat (substring pattern 0 i)
218 "\\(.\\)"
219 (substring pattern (1+ i)))
220 len (+ len 4)
221 i (+ i 4))
222 (if (= ch ?*)
223 (setq pattern (concat (substring pattern 0 i)
224 "\\(.*\\)"
225 (substring pattern (1+ i)))
226 len (+ len 5)
227 i (+ i 5))
228 (setq i (1+ i))))))
229
230 ;; Set each element of xlfd-fields to proper strings.
231 (if (string-match pattern fontname)
232 ;; The regular expression PATTERN matchs the full XLFD
233 ;; name. Set elements that correspond to a wild card
234 ;; in PATTERN to "*", set the other elements to the
235 ;; exact strings in PATTERN.
236 (let ((l (cdr (cdr (match-data)))))
237 (setq i 0)
238 (while (< i 14)
239 (if (or (null l) (< (car (aref xlfd-fields i)) (car l)))
240 (progn
241 (aset xlfd-fields i (cdr (aref xlfd-fields i)))
242 (setq i (1+ i)))
243 (if (< (car (aref xlfd-fields i)) (car (cdr l)))
244 (progn
245 (aset xlfd-fields i "*")
246 (setq i (1+ i)))
247 (setq l (cdr (cdr l)))))))
248 ;; Set each element of xlfd-fields to the exact string
249 ;; in the corresonding fields in full XLFD name.
250 (setq i 0)
251 (while (< i 14)
252 (aset xlfd-fields i (cdr (aref xlfd-fields i)))
253 (setq i (1+ i))))
254 xlfd-fields)))))
255
256 ;; Replace consecutive wild-cards (`*') in NAME to one.
257 ;; Ex. (x-reduce-font-name "-*-*-*-iso8859-1") => "-*-iso8859-1"
258 (defsubst x-reduce-font-name (name)
259 (while (string-match "-\\*-\\(\\*-\\)+" name)
260 (setq name (replace-match "-*-" t t name)))
261 name)
262
263 (defun x-compose-font-name (fields &optional reduce)
264 "Compose X's fontname from FIELDS.
265 FIELDS is a vector of XLFD fields, the length 14.
266 If a field is nil, wild-card letter `*' is embedded.
267 Optional argument REDUCE is always ignored. It exists just for
268 backward compatibility."
269 (concat "-" (mapconcat (lambda (x) (or x "*")) fields "-")))
270
271 (defun x-complement-fontset-spec (xlfd-fields fontlist)
272 "Complement FONTLIST for charsets based on XLFD-FIELDS and return it.
273 XLFD-FIELDS is a vector of XLFD (X Logical Font Description) fields.
274 FONTLIST is an alist of charsets vs the corresponding font names.
275
276 The fonts are complemented as below.
277
278 If FONTLIST doesn't specify a font for ASCII charset, generate a font
279 name for the charset from XLFD-FIELDS, and add that information to
280 FONTLIST.
281
282 If a font specifid for ASCII supports the other charsets (see the
283 variable `x-font-name-charset-alist'), add that information to FONTLIST."
284 (let ((ascii-font (cdr (assq 'ascii fontlist))))
285
286 ;; If font for ASCII is not specified, add it.
287 (unless ascii-font
288 (aset xlfd-fields xlfd-regexp-registry-subnum "iso8859")
289 (aset xlfd-fields xlfd-regexp-encoding-subnum "1")
290 (setq ascii-font (x-compose-font-name xlfd-fields))
291 (setq fontlist (cons (cons 'ascii ascii-font) fontlist)))
292
293 ;; If the font for ASCII also supports the other charsets, and
294 ;; they are not specified in FONTLIST, add them.
295 (let ((tail x-font-name-charset-alist)
296 elt)
297 (while tail
298 (setq elt (car tail) tail (cdr tail))
299 (if (string-match (car elt) ascii-font)
300 (let ((charsets (cdr elt))
301 charset)
302 (while charsets
303 (setq charset (car charsets) charsets (cdr charsets))
304 (or (assq charset fontlist)
305 (setq fontlist
306 (cons (cons charset ascii-font) fontlist))))))))
307
308 fontlist))
309
310 (defun fontset-name-p (fontset)
311 "Return non-nil if FONTSET is valid as fontset name.
312 A valid fontset name should conform to XLFD (X Logical Font Description)
313 with \"fontset\" in `<CHARSET_REGISTRY> field."
314 (and (string-match xlfd-tight-regexp fontset)
315 (string= (match-string (1+ xlfd-regexp-registry-subnum) fontset)
316 "fontset")))
317
318 ;; Return a list to be appended to `x-fixed-font-alist' when
319 ;; `mouse-set-font' is called.
320 (defun generate-fontset-menu ()
321 (let ((fontsets (fontset-list))
322 fontset-name
323 l)
324 (while fontsets
325 (setq fontset-name (car fontsets) fontsets (cdr fontsets))
326 (setq l (cons (list (fontset-plain-name fontset-name) fontset-name) l)))
327 (cons "Fontset"
328 (sort l (function (lambda (x y) (string< (car x) (car y))))))))
329
330 (defun fontset-plain-name (fontset)
331 "Return a plain and descriptive name of FONTSET."
332 (if (not (setq fontset (query-fontset fontset)))
333 (error "Invalid fontset: %s" fontset))
334 (let ((xlfd-fields (x-decompose-font-name fontset)))
335 (if xlfd-fields
336 (let ((weight (aref xlfd-fields xlfd-regexp-weight-subnum))
337 (slant (aref xlfd-fields xlfd-regexp-slant-subnum))
338 (swidth (aref xlfd-fields xlfd-regexp-swidth-subnum))
339 (size (aref xlfd-fields xlfd-regexp-pixelsize-subnum))
340 (charset (aref xlfd-fields xlfd-regexp-registry-subnum))
341 (nickname (aref xlfd-fields xlfd-regexp-encoding-subnum))
342 name)
343 (if (not (string= "fontset" charset))
344 fontset
345 (if (> (string-to-int size) 0)
346 (setq name (format "%s: %s-dot" nickname size))
347 (setq name nickname))
348 (cond ((string-match "^medium$" weight)
349 (setq name (concat name " " "medium")))
350 ((string-match "^bold$\\|^demibold$" weight)
351 (setq name (concat name " " weight))))
352 (cond ((string-match "^i$" slant)
353 (setq name (concat name " " "italic")))
354 ((string-match "^o$" slant)
355 (setq name (concat name " " "slant")))
356 ((string-match "^ri$" slant)
357 (setq name (concat name " " "reverse italic")))
358 ((string-match "^ro$" slant)
359 (setq name (concat name " " "reverse slant"))))
360 name))
361 fontset)))
362
363 ;;;###autoload
364 (defun create-fontset-from-fontset-spec (fontset-spec
365 &optional style-variant noerror)
366 "Create a fontset from fontset specification string FONTSET-SPEC.
367 FONTSET-SPEC is a string of the format:
368 FONTSET-NAME,CHARSET-NAME0:FONT-NAME0,CHARSET-NAME1:FONT-NAME1, ...
369 Any number of SPACE, TAB, and NEWLINE can be put before and after commas.
370
371 Optional 2nd argument is ignored. It exists just for backward
372 compatibility.
373
374 If this function attempts to create already existing fontset, error is
375 signaled unless the optional 3rd argument NOERROR is non-nil.
376
377 It returns a name of the created fontset."
378 (if (not (string-match "^[^,]+" fontset-spec))
379 (error "Invalid fontset spec: %s" fontset-spec))
380 (setq fontset-spec (downcase fontset-spec))
381 (let ((idx (match-end 0))
382 (name (match-string 0 fontset-spec))
383 xlfd-fields charset fontlist ascii-font)
384 (if (query-fontset name)
385 (or noerror
386 (error "Fontset \"%s\" already exists" name))
387 (setq xlfd-fields (x-decompose-font-name name))
388 (or xlfd-fields
389 (error "Fontset \"%s\" not conforming to XLFD" name))
390
391 ;; At first, extract pairs of charset and fontname from FONTSET-SPEC.
392 (while (string-match "[, \t\n]*\\([^:]+\\):\\([^,]+\\)" fontset-spec idx)
393 (setq idx (match-end 0))
394 (setq charset (intern (match-string 1 fontset-spec)))
395 (if (charsetp charset)
396 (setq fontlist (cons (cons charset (match-string 2 fontset-spec))
397 fontlist))))
398
399 ;; Complement FONTLIST.
400 (setq fontlist (x-complement-fontset-spec xlfd-fields fontlist))
401
402 (new-fontset name fontlist)
403
404 ;; Define the short name alias.
405 (if (and (string-match "fontset-.*$" name)
406 (not (assoc name fontset-alias-alist)))
407 (let ((alias (match-string 0 name)))
408 (or (rassoc alias fontset-alias-alist)
409 (setq fontset-alias-alist
410 (cons (cons name alias) fontset-alias-alist)))))
411
412 ;; Define the ASCII font name alias.
413 (setq ascii-font (cdr (assq 'ascii fontlist)))
414 (or (rassoc ascii-font fontset-alias-alist)
415 (setq fontset-alias-alist
416 (cons (cons name ascii-font)
417 fontset-alias-alist))))
418
419 name))
420
421 (defun create-fontset-from-ascii-font (font &optional resolved-font
422 fontset-name)
423 "Create a fontset from an ASCII font FONT.
424
425 Optional 1st arg RESOLVED-FONT is a resolved name of FONT. If
426 omitted, x-resolve-font-name is called to get the resolved name. At
427 this time, if FONT is not available, error is signaled.
428
429 Optional 2nd arg FONTSET-NAME is a string to be used in
430 `<CHARSET_ENCODING>' fields of a new fontset name. If it is omitted,
431 an appropriate name is generated automatically.
432
433 It returns a name of the created fontset."
434 (setq font (downcase font))
435 (if resolved-font
436 (setq resolved-font (downcase resolved-font))
437 (setq resolved-font (downcase (x-resolve-font-name font))))
438 (let ((xlfd (x-decompose-font-name font))
439 (resolved-xlfd (x-decompose-font-name resolved-font))
440 fontset fontset-spec)
441 (aset xlfd xlfd-regexp-foundry-subnum nil)
442 (aset xlfd xlfd-regexp-family-subnum nil)
443 (aset xlfd xlfd-regexp-registry-subnum "fontset")
444 (if fontset-name
445 (setq fontset-name (downcase fontset-name))
446 (setq fontset-name
447 (format "%s_%s_%s"
448 (aref resolved-xlfd xlfd-regexp-registry-subnum)
449 (aref resolved-xlfd xlfd-regexp-encoding-subnum)
450 (aref resolved-xlfd xlfd-regexp-pixelsize-subnum))))
451 (aset xlfd xlfd-regexp-encoding-subnum fontset-name)
452 (setq fontset (x-compose-font-name xlfd))
453 (or (query-fontset fontset)
454 (create-fontset-from-fontset-spec (concat fontset ", ascii:" font)))))
455
456 \f
457 ;; Create standard fontset from 16 dots fonts which are the most widely
458 ;; installed fonts. Fonts for Chinese-GB, Korean, and Chinese-CNS are
459 ;; specified here because FAMILY of those fonts are not "fixed" in
460 ;; many cases.
461 (defvar standard-fontset-spec
462 (purecopy "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard,
463 chinese-gb2312:-*-medium-r-normal-*-16-*-gb2312*-*,
464 korean-ksc5601:-*-medium-r-normal-*-16-*-ksc5601*-*,
465 chinese-cns11643-1:-*-medium-r-normal-*-16-*-cns11643*-1,
466 chinese-cns11643-2:-*-medium-r-normal-*-16-*-cns11643*-2,
467 chinese-cns11643-3:-*-medium-r-normal-*-16-*-cns11643*-3,
468 chinese-cns11643-4:-*-medium-r-normal-*-16-*-cns11643*-4,
469 chinese-cns11643-5:-*-medium-r-normal-*-16-*-cns11643*-5,
470 chinese-cns11643-6:-*-medium-r-normal-*-16-*-cns11643*-6,
471 chinese-cns11643-7:-*-medium-r-normal-*-16-*-cns11643*-7")
472 "String of fontset spec of the standard fontset.
473 You have the biggest chance to display international characters
474 with correct glyphs by using the standard fontset.
475 See the documentation of `create-fontset-from-fontset-spec' for the format.")
476
477 ;; Create fontsets from X resources of the name `fontset-N (class
478 ;; Fontset-N)' where N is integer 0, 1, ...
479 ;; The values of the resources the string of the same format as
480 ;; `standard-fontset-spec'.
481
482 (defun create-fontset-from-x-resource ()
483 (let ((idx 0)
484 fontset-spec)
485 (while (setq fontset-spec (x-get-resource (format "fontset-%d" idx)
486 (format "Fontset-%d" idx)))
487 (create-fontset-from-fontset-spec fontset-spec t 'noerror)
488 (setq idx (1+ idx)))))
489
490 ;;
491 (provide 'fontset)
492
493 ;;; fontset.el ends here