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 in org-mode differs from my setting #62

Closed
binshengliu opened this issue Aug 29, 2016 · 6 comments
Closed

Font in org-mode differs from my setting #62

binshengliu opened this issue Aug 29, 2016 · 6 comments

Comments

@binshengliu
Copy link

I'm using "DejaVu Sans Mono-10" as my font, but it seems it changed after enabling monokai-theme. "Listening to music" in the image is not displayed with a monospaced font. And the line number also looks weird. Others remain what I expect.

image

@oneKelvinSmith
Copy link
Owner

Hey @lbsx,

Can you try put this in your init.el:

(setq monokai-height-plus-1 1.0
      monokai-height-plus-2 1.0
      monokai-height-plus-3 1.0
      monokai-height-plus-4 1.0
      monokai-height-minus-1 1.0)

These functions are used to scale the org-mode headers.

@binshengliu
Copy link
Author

I tried that before. The font size is not scaled but the font family remains DejaVu Sans instead of DejaVu Sans Mono. And the line numbers are not aligned.

I found lots of settings about org-mode in monokai-theme, but I don't know how they change the font.

image

@oneKelvinSmith
Copy link
Owner

oneKelvinSmith commented Sep 2, 2016

Ok, I think it's because of the variable-pitch see: bbatsov/solarized-emacs#87

Please try this:

  (setq monokai-use-variable-pitch nil)

If this helps I'll update the README and I'm considering disabling this by default because I think this has confused a few people.

@binshengliu
Copy link
Author

It works. Thanks.

Actually I'm confused by the feature and I don't know in which situation it should to be used.

And I think it looks better if the line numbers of the headings look the same with the default monokai-height-plus-* values.

Could you please close the issue after updating the README or disabling the feature?

@oneKelvinSmith
Copy link
Owner

Yeah, I'd not realised it forced the use of a fixed width font and I don't use org-mode myself so I've not been frustrated by the weird rendering.

I'll disable it and the font resizing by default and document the use of the functions for people who still want the effect.

Thank you for pointing out the issue.

@oneKelvinSmith
Copy link
Owner

This should be fixed with fe409de.

Thanks again :)

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

No branches or pull requests

2 participants