How to set the font size in Emacs?

I also want to save the font size in my .emacs file.


Solution 1:

(set-face-attribute 'default nil :height 100)

The value is in 1/10pt, so 100 will give you 10pt, etc.

Solution 2:

From Emacswiki, GNU Emacs 23 has a built-in key combination:

C-xC-+ and C-xC-- to increase or decrease the buffer text size

Solution 3:

Press Shift and the first mouse button. You can change the font size in the following way: This website has more detail.