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

don't scale org title #249

Open
holtzermann17 opened this issue Nov 21, 2016 · 1 comment
Open

don't scale org title #249

holtzermann17 opened this issue Nov 21, 2016 · 1 comment

Comments

@holtzermann17
Copy link

Hello,

We've previously discussed some scaling issues with Org Mode fonts under solarized-emacs: #184

There is a work-around suggested there which doesn't solve the current problem I've spotted. The proposed work-around did solve earlier related problems, so I'll quote it here.

So setting a default font height probably solves the tiny font issue, maybe add something like this to your init el before the theme is loaded (set-face-attribute 'default nil "Somefontname-13")

Something similar is in place in my .emacs, along with the setting (setq solarized-scale-org-headlines nil).

OK, onto the current bug report. Here, even under magnification, the title text looks like a blur.

solarized-small-font

magnified

I'm on a Macbook Pro with a Retina display.

Here is a work around that solves the immediate problem. I tested against the latest version (43d250) of solarized-emacs.

diff --git a/solarized.el b/solarized.el
index fbe8795..e9d7689 100644
--- a/solarized.el
+++ b/solarized.el
@@ -1655,7 +1655,9 @@ customize the resulting theme."
      `(org-column-title ((,class (:background ,base02 :underline t :weight bold))))
      `(org-date-selected ((,class (:foreground ,red :inverse-video t))))
      `(org-document-info ((,class (:foreground ,base0))))
-     `(org-document-title ((,class (:foreground ,base1  :weight bold :height ,solarized-height-plus-4))))
+     `(org-document-title ((,class (:foreground ,base1  :weight bold
+                                                ,@(when solarized-scale-org-headlines
+                                                    (list :height ,solarized-height-plus-4))))))
      `(org-drawer ((,class (:foreground ,cyan))))
      `(org-footnote ((,class (:foreground ,magenta :underline t))))
      `(org-latex-and-export-specials ((,class (:foreground ,orange))))
@hankook
Copy link

hankook commented Feb 11, 2017

I fixed the problem under Emacs 25 by using

(setq solarized-height-minus-1 1.0)
...

instead of

(setq solarized-height-minus-1 1)
...

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

3 participants