change font settings

This commit is contained in:
2025-07-06 21:41:07 +02:00
parent efa2d5e78e
commit 6cb8c01c29

View File

@@ -16,6 +16,10 @@
(load-theme 'spacemacs-dark t) (load-theme 'spacemacs-dark t)
(load-theme 'my t)) (load-theme 'my t))
(use-package my-tool-bar
:config
(my-tool-bar-mode 1))
;; Test char and monospace: ;; Test char and monospace:
;; 1234567890abcdefghijklmnopqrstuvwxyz [] () :;,. !@#$^&* ;; 1234567890abcdefghijklmnopqrstuvwxyz [] () :;,. !@#$^&*
;; 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ {} <> "'` ~-_/|\? ;; 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ {} <> "'` ~-_/|\?
@@ -33,8 +37,9 @@
;; 🅰🅱🅲🅳🅴🅵🅶🅷🅸🅹🅺🅻🅼🅽🅾🅿🆀🆁🆂🆃🆄🆅🆆🆇🆈🆉 🆊 NEGATIVE SQUARED LATIN CAPITAL LETTER X ;; 🅰🅱🅲🅳🅴🅵🅶🅷🅸🅹🅺🅻🅼🅽🅾🅿🆀🆁🆂🆃🆄🆅🆆🆇🆈🆉 🆊 NEGATIVE SQUARED LATIN CAPITAL LETTER X
;; 𝓪𝓫𝓬𝓭𝓮𝓯𝓰𝓱𝓲𝓳𝓴𝓵𝓶𝓷𝓸𝓹𝓺𝓻𝓼𝓽𝓾𝓿𝔀𝔁𝔂𝔃 MATHEMATICAL BOLD SCRIPT SMALL X ;; 𝓪𝓫𝓬𝓭𝓮𝓯𝓰𝓱𝓲𝓳𝓴𝓵𝓶𝓷𝓸𝓹𝓺𝓻𝓼𝓽𝓾𝓿𝔀𝔁𝔂𝔃 MATHEMATICAL BOLD SCRIPT SMALL X
;; 𝓐𝓑𝓒𝓓𝓔𝓕𝓖𝓗𝓘𝓙𝓚𝓛𝓜𝓝𝓞𝓟𝓠𝓡𝓢𝓣𝓤𝓥𝓦𝓧𝓨𝓩 MATHEMATICAL BOLD SCRIPT CAPITAL X ;; 𝓐𝓑𝓒𝓓𝓔𝓕𝓖𝓗𝓘𝓙𝓚𝓛𝓜𝓝𝓞𝓟𝓠𝓡𝓢𝓣𝓤𝓥𝓦𝓧𝓨𝓩 MATHEMATICAL BOLD SCRIPT CAPITAL X
;; ✈↵#↹⏎⇤⇥␣↑↓←→ ☐☑ ;; ✈↵#↹⏎⇤⇥␣↑↓←→ ☐☑ ⃝⃞⃟⃠ ⦾⦿⧇⧈
;; :rage::hamburger: ;; :rage::hamburger:
;; ◉○✸✿ 
;; box drawing alignment tests: █ ;; box drawing alignment tests: █
;; ▉ ;; ▉
;; ╔══╦══╗ ┌──┬──┐ ╭──┬──╮ ╭──┬──╮ ┏━━┳━━┓ ┎┒┏┑ ╷ ╻ ┏┯┓ ┌┰┐ ▊ ╱╲╱╲╳╳╳ ;; ╔══╦══╗ ┌──┬──┐ ╭──┬──╮ ╭──┬──╮ ┏━━┳━━┓ ┎┒┏┑ ╷ ╻ ┏┯┓ ┌┰┐ ▊ ╱╲╱╲╳╳╳
@@ -46,24 +51,58 @@
;; ╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█ ;; ╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█
;; see M-x describe-char ;; see M-x describe-char
;; (set-frame-font "DejaVu Sans Mono-10") (set-face-font 'default (font-spec :family "FiraCode Nerd Font" :size 13))
;; (set-frame-font "DejaVu Sans Mono:pixelsize=13")
;; (set-frame-font (font-spec :name "DejaVu Sans Mono" :size 13)) ;; (set-fontset-font FONTSET CHARACTERS FONT-SPEC &optional FRAME ADD)
(cond ;; CHARACTERS see `script-representative-chars' and
((find-font (font-spec :name "Source Code Pro medium")) ;; list-character-sets and list-charset-chars for the list of
(set-frame-font (font-spec :name "Source Code Pro medium" :size 13))) ;; character sets and their characters.
((find-font (font-spec :name "DejaVu Sans Mono")) ;; (list-charset-chars 'unicode-bmp)
(set-frame-font (font-spec :name "DejaVu Sans Mono" :size 13))) ;; defind by all the icons?
((find-font (font-spec :name "Noto Sans Mono")) ;; parentheses moving ;; (set-fontset-font t '(#x2600 . #x27bf) (font-spec :family "D2CodingLigature Nerd Font"))
(set-frame-font (font-spec :name "Noto Sans Mono" :size 13))) ;; (set-fontset-font t '(#xe000 . #xeea0) (font-spec :family "icons-in-terminal") nil 'prepend)
((find-font (font-spec :name "Source Han Mono")) ;; '(#xeea1 . #xf1ff) "FiraCode Nerd Font"
(set-frame-font (font-spec :name "Source Han Mono" :size 12))) ;; (set-fontset-font t '(#xf200 . #xf3ff) (font-spec :family "Font Awesome 6 Free")) ;; #xf3xx wild mix
((find-font (font-spec :name "inconsolata")) ;; (set-fontset-font t '(#xf400 . #xfd46) (font-spec :family "MesloLGS NF"))
(set-frame-font (font-spec :name "inconsolata" :size 16)))
((find-font (font-spec :name "Lucida Console")) ;; (setq use-default-font-for-symbols t)
(set-frame-font "Lucida Console-10")) ;; (setq use-default-font-for-symbols nil) ;; t use default face, nil use fontset
((find-font (font-spec :name "courier")) ;; is breathing if underline is displayed dynamically
(set-frame-font (font-spec :name "courier" :size 14)))) ;; see `fontset-alias-alist'
;; (fontset-name-p "fontset-default")
;; (fontset-name-p "fontset-standard")
;; (cond
;; ((find-font (font-spec :name "Iosevka Nerd Font"))
;; (set-frame-font (font-spec :name "Iosevka Nerd Font" :size 13)))
;; ((find-font (font-spec :name "Source Code Pro medium"))
;; (set-frame-font (font-spec :name "Source Code Pro medium" :size 13)))
;; ((find-font (font-spec :name "DejaVu Sans Mono"))
;; (set-frame-font (font-spec :name "DejaVu Sans Mono" :size 13)))
;; ((find-font (font-spec :name "Noto Sans Mono")) ;; parentheses moving
;; (set-frame-font (font-spec :name "Noto Sans Mono" :size 13)))
;; ((find-font (font-spec :name "Source Han Mono"))
;; (set-frame-font (font-spec :name "Source Han Mono" :size 12)))
;; ((find-font (font-spec :name "inconsolata"))
;; (set-frame-font (font-spec :name "inconsolata" :size 16)))
;; ((find-font (font-spec :name "Lucida Console"))
;; (set-frame-font "Lucida Console-10"))
;; ((find-font (font-spec :name "courier")) ;; is breathing if underline is displayed dynamically
;; (set-frame-font (font-spec :name "courier" :size 14))))
(use-package nerd-icons
:defer t
;; example usage
;; - Inserts an icon for Emacs Lisp
;; (insert (nerd-icons-icon-for-file "init.el"))
;; - Inserts a Gitlab icon
;; (insert (nerd-icons-faicon "nf-fa-gitlab"))
;; :config
;; The Nerd Font you want to use in GUI
;; "Symbols Nerd Font Mono" is the default and is recommended
;; but you can use any other Nerd Font if you want
;; (setq nerd-icons-font-family "Symbols Nerd Font Mono")
;; (nerd-icons-set-font)
)
(use-package emojify (use-package emojify
:if window-system :if window-system