Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font is changing when opening a new frame #5099

Closed
sebhahn opened this issue Feb 16, 2016 · 9 comments
Closed

Font is changing when opening a new frame #5099

sebhahn opened this issue Feb 16, 2016 · 9 comments

Comments

@sebhahn
Copy link
Contributor

sebhahn commented Feb 16, 2016

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
Copy link
Contributor Author

sebhahn commented Feb 16, 2016

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
Copy link
Contributor

@TheBB Do you have any info about this?

@TheBB
Copy link
Contributor

TheBB commented Feb 23, 2016

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

@TheBB
Copy link
Contributor

TheBB commented Feb 23, 2016

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
Copy link
Owner

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

@sebhahn
Copy link
Contributor Author

sebhahn commented Feb 24, 2016

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

@microamp
Copy link

microamp commented Apr 6, 2016

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

@et2010
Copy link
Contributor

et2010 commented May 3, 2016

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

@TheBB
Copy link
Contributor

TheBB commented Nov 4, 2016

I can't reproduce this any more in 0.200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants