all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tak Kunihiro <homeros.misasa@gmail.com>
To: "ISHIKAWA\,chiaki" <ishikawa@yk.rim.or.jp>
Cc: help-gnu-emacs@gnu.org, tkk@misasa.okayama-u.ac.jp
Subject: Re: Changing font size of all the buffers including the status line and the characters shown in electric-buffer
Date: Wed, 10 Oct 2018 21:06:22 +0900	[thread overview]
Message-ID: <86k1mqvwe9.fsf@misasa.okayama-u.ac.jp> (raw)
In-Reply-To: <5782ad06-95db-fd70-4765-ee5645d66ec0@yk.rim.or.jp> (chiaki ISHIKAWA's message of "Wed, 10 Oct 2018 20:37:29 +0900")

> So I probably have to do something about the size of various fonts
> either in my .emacs start up or maybe using X11 resource properly(?).
> There seems to be a method to selectively change the size of a given
> font used inside a buffer.

I configure Japanese font in the following manner.  HTH.

(defun sesame-set-font (font)
  "Set Japanese font."
  (interactive
   (list (let ((collection '("NasuM-14"
                             "Myrica M-14"
                             "MyricaM M-14"
                             "Noto Sans Mono CJK JP Regular-12"
                             "Noto Sans Mono CJK JP Regular-14"
                             "Ricty Diminished Discord-12"
                             "Ricty Diminished Discord-15"
                             "MigMix 1M-10")))
           (completing-read "Font: " collection nil t (car collection)))))

  (if (member (car (split-string font "-")) (font-family-list))
      (progn
        (set-frame-font font t)
        (add-to-list 'default-frame-alist `(font . ,font)))
    (message "Font %s not found" font)))
(sesame-set-font "NasuM-14")



  reply	other threads:[~2018-10-10 12:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10 11:37 Changing font size of all the buffers including the status line and the characters shown in electric-buffer ISHIKAWA,chiaki
2018-10-10 12:06 ` Tak Kunihiro [this message]
2018-10-10 12:23 ` Kaushal Modi
2018-10-10 13:45 ` Van L
2018-10-10 17:40 ` ISHIKAWA,chiaki
     [not found] <mailman.1949.1539171461.1284.help-gnu-emacs@gnu.org>
2018-10-10 12:28 ` Marco Wahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86k1mqvwe9.fsf@misasa.okayama-u.ac.jp \
    --to=homeros.misasa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ishikawa@yk.rim.or.jp \
    --cc=tkk@misasa.okayama-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.