bbatsov / solarized-emacs

The Solarized colour theme, ported to Emacs.
772 stars 176 forks source link

don't scale org title #249

Open holtzermann17 opened 7 years ago

holtzermann17 commented 7 years ago

Hello,

We've previously discussed some scaling issues with Org Mode fonts under solarized-emacs: https://github.com/bbatsov/solarized-emacs/pull/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 commented 7 years ago

I fixed the problem under Emacs 25 by using

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

instead of

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