-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 changes in dotspacemacs-default-font not getting applied (OS X) (Workaround in comments) #3477
Comments
I cannot see Source Code Pro on your screenshot but I trust you that you have it installed :-) |
I am probably blind, but... are you in terminal or gui? 😄 |
I'm in the gui, @d12frosted. Terminal emacs respects my terminal settings (inconsolata-g for powerline, 14pt) |
Ah sorry, @calebmeyer. I am blind indeed 😄
Yeah, this is exactly why I asked about terminal vs GUI - cause terminal emacs respects only terminal settings. |
No problem. I appreciate your help. Emacs so far is a series of small frustrations, alongside a series of big wins. The layer concept is a fantastic way of pulling together packages and good defaults. |
What does I also noticed you have an old
Maybe try to update it (hint: |
Updated my .spacemacs file. Output of describe-font:
Yes, calling set frame font to source code pro switched the font. It kept the size at 12 though. |
Per conversation on the gitter chat, I uninstalled and reinstalled emacs-mac via this sequence of commands:
This didn't solve the issue Turns out I do have the nice icon, but Mac OS X doesn't reflect it only in the applications drawer on the dock. The finder and the actual opened application both have the pretty icon. |
I was able to work around the official settings via this code in my user-config: (set-face-attribute 'default nil :family "Source Code Pro")
(set-face-attribute 'default nil :height 165) which I found here: http://emacswiki.org/emacs/SetFonts |
Same problem for me, same diagnostics (except I'm on Fedora 22), on the latest stable Spacemacs release. Workaround posted by @calebmeyer works for me -- except that if I use |
Not sure if it's related, but setting up font using (when (display-graphic-p)
(set-face-attribute 'default nil :font "Input Mono Condensed-13" :weight 'ultralight)) |
For me anyway, this issue is fixed in |
I am on develop (0.105.4) and can confirm that this is not fixed. Without the workaround mentioned above staying in my user-config, I still get monaco. I am able to set the font without the hack on a ubuntu vm, so this appears to be a mac related issue. |
So, I figured I'd look through the code for spacemacs to see if I could do some more debugging myself. I made this change: diff --git a/core/core-fonts-support.el b/core/core-fonts-support.el
index 5f9b07b..c16375d 100644
--- a/core/core-fonts-support.el
+++ b/core/core-fonts-support.el
@@ -27,6 +27,7 @@ PLIST has the form (\"fontname\" :prop1 val1 :prop2 val2 ...)"
:powerline-offset))
(fontspec (apply 'font-spec :name font font-props)))
(spacemacs-buffer/message "Setting font \"%s\"..." font)
+ (spacemacs-buffer/warning "Setting fontspec \"%s\"..." fontspec)
(set-frame-font fontspec nil t)
(setq-default powerline-scale scale)
(setq-default powerline-height (spacemacs/compute-powerline-height))
(END) And just logging out the font spec to my messages buffer has fixed the bug. I verified by unmaking the change, it went back to monaco. It logs this:
|
I ran into this issue as well, and the above fix by @calebmeyer fixed the issue for me as well. Running OS X 10.11.2, Spacemacs 0.105.9, emacs 24.5.1 installed as per instructions here. |
Same issue here. @calebmeyer's solution did the trick for me. |
Confirmed worked for me-
|
FYI: seems osx does not have "source code pro" installed by default, you can pick it up here: https://github.com/adobe-fonts/source-code-pro This solved the issue for me. Could be helpful to have an error show up if it doesn't exist? |
Could be even more helpful if we could somehow distribute source code pro with spacemacs. It's licensed under the SIL open font license which the FSF says is kosher. Might be a nightmare to get fonts installed cross platform though. |
My problem was that I was loading a saved desktop after loading the changes to the font, making the previous desktop's font appear. remember to reload your desktop! |
There is no need to distribute Source Code Pro. I just realised that there is no mention of Source Code Pro in installation guide inside of README file. This is what we should do - post a link to Source Code Pro download page. |
I've been playing around with this on Arch Linux. After making the change mentioned by @calebmeyer, the first emacsclient instance uses the correct font, but future instances don't |
@ajimu Can you try the |
@StreakyCobra thanks, it is fixed on |
@calebmeyer Can you also try last |
Ok :-( |
If I make changes that result in having |
my system is ubuntu 15.4, emacs 24.5, spacemacs develop. even @calebmeyer 's tweak can't help me. |
I had the same problem on Mac with 24.5. I was able to fix it by resetting
|
Before doing something crazy with your
|
Can this be related with Yesterday I set it to
and it didn't read the font settings. (It was only increasing the font size to 30.) I checked out
and it's resolved both in This is on Ubuntu 17.04 with Emacs 24.5.1, on Turkish language locale. This is my third day in Spacemacs, so I'm not fully equipped to dig in but one of the themes seems to be misbehaving. |
I'm in windows 10 with spacemacs 0.200.9@25.2.1 , this issue is fixed by |
I fixed this by deleting:
from
|
Fixed this for me, windows 10 spacemacs 0.200.9@25.2.1 |
@jb55 solution fixed the issue for me too (on Linux Mint - 0.200.9@25.3.2 (spacemacs) ) |
Thanks @jb55, your solution worked for me! 👏
|
I was having an issue similar to this one today, but it seems to have been caused by the |
april 2019 .... 4 years after, same problem.... just use a font is a mess. |
@jerome-diver
(you can manipulate height and font type here) |
This is still broken on a fresh spacemacs install on GNU Emacs 26.2 + macOS 10.14.5. Edit: looks like my installation of Source Code Pro was broken. Setting the font size works fine after reinstalling it. |
Had the same problem on latest develop. What helped me was I switched back to master branch, launched Emacs, then switched back to develop branch and restarted it - it began to respect font settings in .spacemacs after all this gymnastics. |
I'm currently trying out spacemacs and ran into the same issue as described here. Spacemacs would not respect So somehow it's being overwritten by my Emacs config located in |
For me, the problem was in
Deleting this line fixed the issue. To note that the same configuration was working (in the sense of the font size) on the master branch. EDIT: just saw that this was for OSX. I had the same problem with ArchLinux. |
Thanks @jb55, your solution worked for me too! 👏 macOS Mojave 10.14.6 |
Closing since this doesn't seem to be a Spacemacs bug. |
Emacs Version: GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, Carbon Version 157 AppKit 1348.17)
.spacemacs file: https://github.com/calebmeyer/dotfiles/blob/master/spacemacs
messages buffer after launch: https://gist.github.com/calebmeyer/28630f6695723f430f7b
Let me know if you need any more information to debug this. I love spacemacs, and I really want to use it as my default. I have checked, I do have Source Code Pro installed.
The text was updated successfully, but these errors were encountered: