Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change Emacs' default font size and font type?

Tags:

emacs

emacs23

I am using Emacs 23.3. How can I change the font size and font type?

like image 531
demonchand Avatar asked May 17 '11 05:05

demonchand


People also ask

How do I change the default font size and style?

Go to Format > Font > Font. + D to open the Font dialog box. Select the font and size you want to use. Select Default, and then select Yes.

What is the default font in Emacs?

By default, Emacs displays text on graphical displays using a 10-point monospace font, and the font size can be changed interactively (see Text Scale).

How do I find my Emacs font?

For a given character, you can find out which font was used by moving point to that character than then doing C-u C-x = which will give you all kinds of information about that position in the buffer, including which font was used for it.

What is Bootstrapâ € ™ s global default font size?

Bootstrap's global default font-size is 14px, with a line-height of 1.428.


2 Answers

You can also do the following in your .emacs file.

Emacs 23.1

(set-frame-font "Inconsolata 12" nil t) 

Older versions of Emacs

(set-default-font "Inconsolata 12" nil t) 
like image 68
Dov Grobgeld Avatar answered Oct 03 '22 23:10

Dov Grobgeld


You can use the menu bar. Go to Options->Set Default Font....

After you choose a font, don't forget to press Options->Save Options—otherwise your new font will not be saved after you close Emacs.

like image 41
Tikhon Jelvis Avatar answered Oct 03 '22 23:10

Tikhon Jelvis