Last active
July 8, 2022 07:01
-
-
Save gongo/d3285442b0a405b59620c97963c41267 to your computer and use it in GitHub Desktop.
自作 fontset が current frame にうまく反映されない
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let* ((font (format "%s-%d:weight=normal:slant=normal" "Cica" 22)) | |
(fontset (create-fontset-from-ascii-font font nil "gongo"))) | |
(set-fontset-font fontset ?い (font-spec :family "Cica" :size 38)) | |
(add-to-list 'default-frame-alist `(font . ,fontset)) | |
(set-face-font 'default fontset) | |
(setq use-default-font-for-symbols nil) | |
) | |
;; この設定だと Cica-22 そのものは適用されるけど | |
;; 「い」のサイズは変わらない(22のまま) | |
;; こうやると問題なく「い」だけがでかくなる | |
;; (set-fontset-font nil ?い (font-spec :family "Cica" :size 38)) | |
;; M-x describe-fontset [RET] すると fontset-auto1 が使われているので | |
;; fontset-gongo の frame への適用がうまくいっていない……? | |
;; M-x emacs-version | |
;; GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment