diff options
| author | Kenichi Handa | 1997-05-28 03:35:47 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-05-28 03:35:47 +0000 |
| commit | 80d4ea9282f9f59738012263e2800f78d6260203 (patch) | |
| tree | ff6e7dc7889dd15b2aa9a026f73a9d91d492302f | |
| parent | 53fd9d05e5de9ccf6c1f426f3c0c2ea3842ed4c1 (diff) | |
| download | emacs-80d4ea9282f9f59738012263e2800f78d6260203.tar.gz emacs-80d4ea9282f9f59738012263e2800f78d6260203.zip | |
(x-complement-fontset-spec): Add font names which are
ignoring sizes in alternative-fontname-alist.
| -rw-r--r-- | lisp/international/fontset.el | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index b25bf5334e5..f2906b70c22 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -228,13 +228,18 @@ Fontnames for charsets not listed in FONTLIST are generated from | |||
| 228 | XLFD-FIELDS and a property of x-charset-register of each charset | 228 | XLFD-FIELDS and a property of x-charset-register of each charset |
| 229 | automatically." | 229 | automatically." |
| 230 | (let ((charsets charset-list) | 230 | (let ((charsets charset-list) |
| 231 | (loose-xlfd-fields (copy-sequence xlfd-fields))) | 231 | (style-ignored (copy-sequence xlfd-fields)) |
| 232 | (aset loose-xlfd-fields xlfd-regexp-pixelsize-subnum nil) | 232 | (size-ignored (copy-sequence xlfd-fields))) |
| 233 | (aset loose-xlfd-fields xlfd-regexp-pointsize-subnum nil) | 233 | (aset style-ignored xlfd-regexp-weight-subnum nil) |
| 234 | (aset loose-xlfd-fields xlfd-regexp-resx-subnum nil) | 234 | (aset style-ignored xlfd-regexp-slant-subnum nil) |
| 235 | (aset loose-xlfd-fields xlfd-regexp-resy-subnum nil) | 235 | (aset style-ignored xlfd-regexp-swidth-subnum nil) |
| 236 | (aset loose-xlfd-fields xlfd-regexp-spacing-subnum nil) | 236 | (aset style-ignored xlfd-regexp-adstyle-subnum nil) |
| 237 | (aset loose-xlfd-fields xlfd-regexp-avgwidth-subnum nil) | 237 | (aset size-ignored xlfd-regexp-pixelsize-subnum nil) |
| 238 | (aset size-ignored xlfd-regexp-pointsize-subnum nil) | ||
| 239 | (aset size-ignored xlfd-regexp-resx-subnum nil) | ||
| 240 | (aset size-ignored xlfd-regexp-resy-subnum nil) | ||
| 241 | (aset size-ignored xlfd-regexp-spacing-subnum nil) | ||
| 242 | (aset size-ignored xlfd-regexp-avgwidth-subnum nil) | ||
| 238 | (while charsets | 243 | (while charsets |
| 239 | (let ((charset (car charsets))) | 244 | (let ((charset (car charsets))) |
| 240 | (if (null (assq charset fontlist)) | 245 | (if (null (assq charset fontlist)) |
| @@ -249,15 +254,18 @@ automatically." | |||
| 249 | encoding-val "*")) | 254 | encoding-val "*")) |
| 250 | (aset xlfd-fields xlfd-regexp-registry-subnum registry-val) | 255 | (aset xlfd-fields xlfd-regexp-registry-subnum registry-val) |
| 251 | (aset xlfd-fields xlfd-regexp-encoding-subnum encoding-val) | 256 | (aset xlfd-fields xlfd-regexp-encoding-subnum encoding-val) |
| 252 | (aset loose-xlfd-fields xlfd-regexp-registry-subnum registry-val) | 257 | (aset style-ignored xlfd-regexp-registry-subnum registry-val) |
| 253 | (aset loose-xlfd-fields xlfd-regexp-encoding-subnum encoding-val) | 258 | (aset style-ignored xlfd-regexp-encoding-subnum encoding-val) |
| 259 | (aset size-ignored xlfd-regexp-registry-subnum registry-val) | ||
| 260 | (aset size-ignored xlfd-regexp-encoding-subnum encoding-val) | ||
| 254 | (setq fontname (x-compose-font-name xlfd-fields t)) | 261 | (setq fontname (x-compose-font-name xlfd-fields t)) |
| 255 | (setq fontlist (cons (cons charset fontname) fontlist)) | 262 | (setq fontlist (cons (cons charset fontname) fontlist)) |
| 256 | (or (assoc fontname alternative-fontname-alist) | 263 | (or (assoc fontname alternative-fontname-alist) |
| 257 | (setq alternative-fontname-alist | 264 | (setq alternative-fontname-alist |
| 258 | (cons (list | 265 | (cons (list |
| 259 | fontname | 266 | fontname |
| 260 | (x-compose-font-name loose-xlfd-fields t) | 267 | (x-compose-font-name style-ignored t) |
| 268 | (x-compose-font-name size-ignored t) | ||
| 261 | (concat "*-" registry-val "-" encoding-val)) | 269 | (concat "*-" registry-val "-" encoding-val)) |
| 262 | alternative-fontname-alist))) | 270 | alternative-fontname-alist))) |
| 263 | ))) | 271 | ))) |
| @@ -364,7 +372,9 @@ by modifying FONTSET-SPEC appropriately. STYLE can be one of `bold', | |||
| 364 | 372 | ||
| 365 | 373 | ||
| 366 | ;; Create standard fontset from 16 dots fonts which are the most widely | 374 | ;; Create standard fontset from 16 dots fonts which are the most widely |
| 367 | ;; installed fonts. | 375 | ;; installed fonts. Fonts for Chinese-GB, Korean, and Chinese-CNS are |
| 376 | ;; specified here because FAMILY of those fonts are not "fixed" in | ||
| 377 | ;; many cases. | ||
| 368 | (defvar standard-fontset-spec | 378 | (defvar standard-fontset-spec |
| 369 | "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard, | 379 | "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard, |
| 370 | chinese-gb2312:-*-medium-r-normal-*-16-*-gb2312*-*, | 380 | chinese-gb2312:-*-medium-r-normal-*-16-*-gb2312*-*, |