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 way too small #501

Closed
cpaulik opened this issue Jan 28, 2015 · 42 comments
Closed

Font way too small #501

cpaulik opened this issue Jan 28, 2015 · 42 comments
Labels

Comments

@cpaulik
Copy link
Contributor

cpaulik commented Jan 28, 2015

After the upgrade to 0.51.0 from 0.49.x everything in my emacs is way smaller than before. I do have Source Code Pro installed and everything worked perfectly before.

I do have a hdpi screen and use font scaling of 1.5 in Ubuntu to get everything to the correct size.
See the screenshot, the terminal is normal font size, emacs below is way to small to read:
screenshot from 2015-01-28 21 58 11

@syl20bnr
Copy link
Owner

Check the logs in *Messages* you should have a deprecation warning.
Font is now specified with the variable dotspacemacs-default-font more info here: https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.md#font

@cpaulik
Copy link
Contributor Author

cpaulik commented Jan 28, 2015

Oh, thank you, I did miss this change.

For me setting dotspacemacs-default-font in .spacemacs only works outside of the dotspacemacs/config function. Is this the intended behaviour?

@syl20bnr
Copy link
Owner

Yes, all dotspacemacs- variables should be in a setq outside of init and config.
See the reference in the template here: https://github.com/syl20bnr/spacemacs/blob/master/core/templates/.spacemacs.template

@cpaulik
Copy link
Contributor Author

cpaulik commented Jan 28, 2015

Thanks, that solves this issue for me.

@cpaulik cpaulik closed this as completed Jan 28, 2015
@t3chnoboy
Copy link
Contributor

I have the same issue. However, setting dotspacemacs-default-font doesn't seem to work.
My config: .spacemacs
OS X 10.10, Emacs 24.4

@syl20bnr
Copy link
Owner

@t3chnoboy if you set the size bigger than 15 does it work ? In the past with spacemacs/set-font the passed size was not the exact size displayed by emacs (usually the true size was bigger than the requested one), whereas now if you put 15 you'll get 15 as intended.

@t3chnoboy
Copy link
Contributor

No, it's still unchanged. Also, it's not just size – the font is not being changed either.

@syl20bnr
Copy link
Owner

ok, can you verify that you pass the correct font name ? Spacemacs will skip it when he cannot find it.

@syl20bnr
Copy link
Owner

@t3chnoboy Can you test the develop branch ? I just push a new way to detect the font.

@t3chnoboy
Copy link
Contributor

sure

@t3chnoboy
Copy link
Contributor

@t3chnoboy
Copy link
Contributor

Still doesn't work

@syl20bnr
Copy link
Owner

@t3chnoboy I pushed a new commit, should work :-) Thank you!

@t3chnoboy
Copy link
Contributor

Well, it's not working :(

@t3chnoboy
Copy link
Contributor

@syl20bnr
Copy link
Owner

Change the font to see if it works with another font.
BTW, you don't need a powerline patched font with the emacs powerline, it does not use font characters.

@syl20bnr
Copy link
Owner

Also be sure that you don't have any other settings that change the font afterward.

@syl20bnr
Copy link
Owner

@t3chnoboy
Copy link
Contributor

Yup! Removed that line and now it works! 👯
Thank you!

@syl20bnr
Copy link
Owner

Great ! :-)

@person808
Copy link
Contributor

I'm also having this problem on 0.52.1. This is after a clean install because I wanted to try spacemacs. Nothing was touched.
screenshot from 2015-01-30 19 25 36

@syl20bnr
Copy link
Owner

@person808 in spacemacs install the dotfile with SPC : dostpacemacs/install then open the file with SPC f e d and change the size of the font (look for :size).
More info here: https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.md#font

@syl20bnr
Copy link
Owner

@person808 what is your linux distribution ?

@person808
Copy link
Contributor

@syl20bnr I doubled the font size to 26 and everything looks fine. I'm on Arch Linux.

@syl20bnr
Copy link
Owner

@person808 great !

@aaron-lebo
Copy link

I ran into a similar issue on a fresh arch/spacemacs install.

With a size of "13", the font would not match the fonts on the rest of my system, it was too small. However, I noticed in the documentation this line:

"The font size—either a non-negative integer that specifies the pixel size, or a floating-point number that specifies the point size. "

Those of you having problems with small fonts, I'd suggest making sure you use a decimal value, "13.0", which will specify a size in points like the rest of the system.

Would a change like this being the default make things more consistent?

@mlongval
Copy link

I uncommented "org" in dotspacemacs-configuration-layers

Download and compilation seem to have gone well

But I get:

SPC m is undefined

When I try to start org-mode

@mlongval
Copy link

Ok fixed that last problem by starting a new file with .org

@TheBB
Copy link
Collaborator

TheBB commented Sep 27, 2015

This issue is closed and about something else entirely. You can start a new one if you have problems.

@mlongval
Copy link

Thanks,

Actually I wanted to post to Gitter and it ended up on that page.

Thanks again

Michael Longval, MD
mlongval@gmail.com

On Sun, Sep 27, 2015 at 11:11 AM, Eivind Fonn notifications@github.com
wrote:

This issue is closed and about something else entirely. You can start a
new one if you have problems.


Reply to this email directly or view it on GitHub
#501 (comment).

@isthisthat
Copy link

Hello, changing dotspacemacs-default-font doesn't do it for me on CentOS 6, spacemacs 0.104.3, emacs 24.5.1. Font stays the same size. Anything else I can try?

@isthisthat
Copy link

In fact, none of the font settings seem to have an effect...

@d12frosted
Copy link
Collaborator

@isthisthat Are you running GUI or in terminal?

@isthisthat
Copy link

Running GUI

@isthisthat
Copy link

Hello, could this ticket be re-opened?

@TheBB
Copy link
Collaborator

TheBB commented Nov 4, 2015

Are you sure the font name exists? If it does not, none of the other settings will apply.

@nixmaniack
Copy link
Contributor

FWIW, even if font exists, the current implementation might not detect the font in which case this would be similar to #3643

@isthisthat
Copy link

Thanks to all for your help. The issue was the missing font indeed. Problem is that I don't have sudo privileges on my machine. Luckily there is a ~/.fonts directory in my home to which I copied the Source Code Pro TTFs from https://github.com/adobe-fonts/source-code-pro and then ran fc-cache -f -v which registered the font on CentOS 6. I can now increase the font size :)

@isthisthat
Copy link

Spoke too soon. Font changed and now is too large. Font size in ~/.spacemacs still has no effect. Also upgraded to the latest release. Still nothing.

@glimmercn
Copy link

I'm using ubuntu 15.04, emacs 24.5 and spacemacs develop branch. I have the same issue. No setting of font works. It says spacemacs can't fine "Source Code Pro". But I have SCP installed and have no issue when running "emacs -nw".

I think it's a x window issue. When running emacs, here is the warning
Cannot convert string "--courier-medium-r----120-----iso8859-*" to type FontStruct

Have to dig more to solve the problem.

@slve
Copy link

slve commented Oct 14, 2016

I've solved this issue by adding
(custom-set-faces '(default ((t (:height 160 :family "Consolas" :embolden t)))))
into the top of (defun dotspacemacs/user-config () ...
(using spacemac v0.200.2, and Arch GNU/Linux)

@a-y-khan
Copy link

I ran into a similar issue on a fresh arch/spacemacs install.

With a size of "13", the font would not match the fonts on the rest of my system, it was too small. However, I noticed in the documentation this line:

"The font size—either a non-negative integer that specifies the pixel size, or a floating-point number that specifies the point size. "

Those of you having problems with small fonts, I'd suggest making sure you use a decimal value, "13.0", which will specify a size in points like the rest of the system.

Changing font size to 13.0 also worked for me on Ubuntu 18.04.

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

No branches or pull requests