Font changes (but shouldn't) when switching to other split subwindow in emacs -
in .emacs, i've set larger font kanji, want retain smaller font hiragana , katakana:
(set-fontset-font "fontset-default" 'han "sazanami gothic:size=18") (set-fontset-font "fontset-default" '(#x3000 . #x30ff) "sans")
that works when loading files etc.
when use horizontally split window, , switch other subwindow, font of hiragana in subwindow i'm leaving changes large font. because unicode ranges overlap, , order of definitions not respected? how should correctly specify ranges, i.e. can exclude range 'han, or need hunt down definition of 'han , correct ranges manually?
in general, fonts such buffer background , buffer foreground changed globally -- either on per frame basis or frames -- not on per buffer or per window basis. following 2 examples of how affect 1 buffer:
(defun buffer-background-red () (interactive) (setq buffer-face-mode-face `(:background "red")) (buffer-face-mode 1)) (defun zoom () (interactive) (setq buffer-face-mode-face `(:height 375)) (buffer-face-mode 1))
Comments
Post a Comment