I'd like to use a fractional font size throughout Emacs. I have been able to set my default font size on launch using custom-set-faces
:
(custom-set-faces
'(default ((t (:inherit nil :stipple nil :background "#212121"
:foreground "#e8e8d3" :inverse-video nil :box nil
:strike-through nil :overline nil :underline nil :slant normal
:weight normal :height 185 :width normal :foundry "nil" :family "Menlo")))))
The above configuration works fine on launch after Emacs finally settles on its default frame size.
However, when I create a new frame, this font is not utilized. I understand that I can use default-frame-alist
to configure the new frame font, but default-frame-alist
uses entirely different configuration data which does not seem to support fractional sizes:
(setq default-frame-alist
'((width . 142)
(height . 54)
(font . "-*-Menlo-normal-normal-normal-*-18.5-185-*-*-m-0-iso10646-1")))
The above configuration does not work as expected -- the fractional portion is ignored and I simply receive a frame with an 18 point font.
custom-set-faces
call should affect ll frames rather than just the first, so I suggest youM-x report-emacs-bug
.