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.64k stars 4.89k forks source link

Font size and powerline separator are wrong when starting GUI frame from daemon #4816

Closed apaleslimghost closed 4 months ago

apaleslimghost commented 8 years ago
screenshot 2016-01-26 10 40 36

Left is started from daemon, right is standalone. The issue still occurs on develop. I realise several similar issues (#299, #1894, #2652) have been raised, but I'd thought they were all resolved :confused:

System Info

(emacs-lisp osx syntax-checking vinegar javascript version-control php shell-scripts html themes-megapack
            (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t)
            quarterto react markdown
            (shell :variables shell-default-shell 'ansi-term shell-default-term-shell "/usr/local/bin/zsh"))

Edit: if it helps, here is my .spacemacs. My configuration layer is also in that repo.

TheBB commented 8 years ago

I can't see this screenshot.

apaleslimghost commented 8 years ago

Apologies, reuploaded

StreakyCobra commented 8 years ago

Fastly error: unknown domain: butt.githubusercontent.com. Please check that this domain has been added to a service.

Refreshed the page again and it works now.

TheBB commented 8 years ago

https://github.com/quarterto/.spacemacs.d/blob/master/.spacemacs#L225

You have to do this after the GUI frame is created, not before.

(spacemacs|do-after-display-system-init
  (setq powerline-default-separator 'slant))
apaleslimghost commented 8 years ago

What about the font size?

TheBB commented 8 years ago

I don't know…

apaleslimghost commented 8 years ago

Quick update: I tried spacemacs/set-default-font in spacemacs|do-after-display-system-init and it had no effect.

spijet commented 8 years ago

It seems that the only way for now is to start Spacemacs with emacsclient -c -a "". Just checked it, powerline separators get re-set to default ones after frame is created.

shuokay commented 8 years ago

I incidentally find a way to solve this problem when trying to find a way to use the solaried theme, I record here in case someone need.

  1. Disable the spacemacs themes-megapack by removing it from dotspacemacs-configuration-layers
  2. Add color-theme-solarized to dotspacemacs-additional-packages
  3. add the following lines to dotspacemacs/user-config ()
(set-terminal-parameter nil 'background-mode 'dark)  
(set-frame-parameter nil 'background-mode 'dark)   
(spacemacs/load-theme 'solarized)  

I think this problem is caused by the themes-megapack, but I didn't confirm it.

jcf commented 7 years ago

To fix the font size issue I added the following snippet to my dotspacemacs/user-init function:

(setq default-frame-alist '((font . "Source Code Pro-14")))

http://superuser.com/questions/721634/different-font-size-when-running-emacs-and-emacsclient

Update: To make sure I don't trample other frame configuration, like presence of scrollbars, I'm using the following function to set the font:

(defun jcf/set-frame-font (s)
  (add-to-list 'default-frame-alist `(font . ,s)))

HTH.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

panicbit commented 4 years ago

Still valid.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!