Is there any way to set the default font to 16pts in iTerm2?
I am going through several fonts such as “Consolas” and “Source Code Pro” and noticed in iTerm2 there is no way to set default size to 16pts. Only 9pt, 10pt, 11pt, 12pt, 13pt, 14pt, 18pt, 24pt,... are available. What happened to 15pt, 16pt, 17pt?
Solution 1:
You can also add custom values for font sizes. From the Font window, click the gear in the upper left, and choose "Edit Sizes".
Then, enter your value.
Solution 2:
You can click on the number below the 'Size' column and write any value.
Solution 3:
Open 'Preferences', click on the 'Profiles' tab, further click on the 'Text' sub-tab,
and select the font and size:
Solution 4:
I haven't tested this, but a brief review of iTerm's source code suggests your font preferences are stored in a property list named DefaultBookmark.plist
, under the keys Normal Font
and Non Ascii Font
. The default values both being Monaco 12
, if you were to change it to Consolas 16
or Source Code Pro 16
it should do what you want. You should be able to find these files with the command find / -name DefaultBookmark.plist
, and since the name "Default" suggests there may be other property lists, you can find them with grep -R "Normal Font" /
or grep -R "Non Ascii Font" /
Please keep in mind that it seems to occasionally ignore the font size and come up with it's own as it has a class called FontSizeEstimator
which has the following in its comments
Lines 11 - 12:
** Description: Attempts to measure font metrics because the OS's metrics
** are sometimes unreliable.
Lines 65 - 68:
size.width = advances[0];
size.width *= [aFont pointSize];
size.width /= CGFontGetUnitsPerEm(cgfont);
size.width = round(size.width);
Although it seems as if this is only used for estimating the size of the window, rather than the size of the font being rendered.