syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.89k forks source link

Font is changing when opening a new frame #5099

Closed sebhahn closed 7 years ago

sebhahn commented 8 years ago

I'm using the following code in my .spacemacs file to set a custom font, which works without a problem. But once opening a new frame with C-x 5 2 the font is different in the new frame! Is this a bug?

    (when (string= system-name "shahn-T450s")
      (setq dotspacemacs-default-font '("Hack"
                                        :size 14
                                        :weight normal
                                        :width normal
                                        :powerline-scale 1.25))
      )
sebhahn commented 8 years ago

I already identified the problem. It is coming from

    ;; theming-modifications
    ;; '((sanityinc-tomorrow-eighties
    ;;    ;; Font locking
    ;;    (font-lock-string-face :foreground "#99cc99")
    ;;    (font-lock-type-face :foreground "#cc99cc")
    ;;    (font-lock-function-name-face :foreground "#6699cc"))
    ;;   (base16-tomorrow-dark
    ;;    (default :background "#2d2d2d")))

which is just written above. As soon as I uncomment the custom theme modification the bug occurs.

StreakyCobra commented 8 years ago

@TheBB Do you have any info about this?

TheBB commented 8 years ago

@sebhahn Can you show me exactly where you put that code in your dotfile?

TheBB commented 8 years ago

Actually I can reproduce something similar, but it appears to work (that is, to not work) independently of the theming layer. Instead I get a different font in the new frame if I set dotspacemacs-default-font to something that is not equal to the system monospace font.

syl20bnr commented 8 years ago

@sebhahn if you use the default Spacemacs font (Source Code Pro), do you still have the problem ?

sebhahn commented 8 years ago

yes, e.g. if I change the default font size, the font size will be different in the new frame

microamp commented 8 years ago

I have the same issue on OS X. The font in the other frame doesn't appear to be a monospace font.

et2010 commented 8 years ago

I have the same issue on archlinux, with spacemacs on develop branch.

TheBB commented 8 years ago

I can't reproduce this any more in 0.200