modify font loading method
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -5,6 +5,12 @@
|
|||||||
;; Initialize frame with alpha
|
;; Initialize frame with alpha
|
||||||
(add-to-list 'default-frame-alist '(alpha-background . 85))
|
(add-to-list 'default-frame-alist '(alpha-background . 85))
|
||||||
(add-to-list 'default-frame-alist '(fullscreen . maximized))
|
(add-to-list 'default-frame-alist '(fullscreen . maximized))
|
||||||
|
(add-to-list 'default-frame-alist
|
||||||
|
(cons 'font (if (eq system-type 'windows-nt)
|
||||||
|
(if (> (frame-pixel-width) 2560)
|
||||||
|
"等距更纱黑体 SC-16"
|
||||||
|
"等距更纱黑体 SC-12")
|
||||||
|
"Sarasa Mono SC-12")))
|
||||||
|
|
||||||
(when (fboundp 'menu-bar-mode)
|
(when (fboundp 'menu-bar-mode)
|
||||||
(menu-bar-mode -1))
|
(menu-bar-mode -1))
|
||||||
|
|||||||
+2
-2
@@ -96,8 +96,8 @@ if FRAME is nil, setup for current frame."
|
|||||||
(font-spec :family family :size size) frame)
|
(font-spec :family family :size size) frame)
|
||||||
(error nil)))))))
|
(error nil)))))))
|
||||||
|
|
||||||
(add-hook 'emacs-startup-hook #'creature/fontset)
|
;; (add-hook 'emacs-startup-hook #'creature/fontset)
|
||||||
(add-hook 'server-after-make-frame-hook #'creature/fontset)
|
;; (add-hook 'server-after-make-frame-hook #'creature/fontset)
|
||||||
|
|
||||||
|
|
||||||
(provide 'init-theme)
|
(provide 'init-theme)
|
||||||
Reference in new issue
Block a user