From 0ffdb353f9db507320495d19f71759ec819d267a Mon Sep 17 00:00:00 2001 From: duianto Date: Tue, 9 Jul 2019 00:59:31 +0200 Subject: [PATCH] Change default font size from 13 to 10.0 13 and 10.0 are visually the same, because: - Integer specifies the pixel size. - Floating-point specifies the point size. Using a default floating-point size has two benefits: - It's clear that the font size can be changed by floating-point values. - There won't be an unpleasant surprise that `13` and `13.0` are different sizes. For example to make the font slightly larger or smaller than `13`. Then `10.0` has to be found first by trial and error. --- CHANGELOG.develop | 2 ++ core/templates/.spacemacs.template | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index 008a4bdb4..f865ba666 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -483,6 +483,8 @@ Other: - Calling ~spacemacs/recompile-elpa~ with an argument nukes all *.elc files (thanks to Ag Ibragimov) - Allow customizing default major mode for new empty buffers in ~SPC b N n~, see =dotspacemacs-new-empty-buffer-major-mode= (thanks to Juha Jeronen) + - Changed =dotspacemacs-default-font= =:size= from =13= (pixel size) to =10.0= + (point size) (thanks to duianto) - Fixed: - Avoid non-idempotent use of push in init code (thanks to Miciah Masters) - Moved Spacemacs startup progress bar to =core-progress-bar.el=, removed diff --git a/core/templates/.spacemacs.template b/core/templates/.spacemacs.template index 73e767cca..091fa1b62 100644 --- a/core/templates/.spacemacs.template +++ b/core/templates/.spacemacs.template @@ -209,7 +209,7 @@ It should only modify the values of Spacemacs settings." ;; Default font or prioritized list of fonts. dotspacemacs-default-font '("Source Code Pro" - :size 13 + :size 10.0 :weight normal :width normal)