org-beautify-theme icon indicating copy to clipboard operation
org-beautify-theme copied to clipboard

Strange font effects

Open robertsck opened this issue 8 years ago • 9 comments

I'm noticing some strange font effects with several different base themes. I've tested with spacemacs-dark, zenburn, and solarized-dark. All are showing the same effects. Not sure if it's due to personal settings or a general theme conflict. Would appreciate any insights you might have. Describe-font shows I'm using Source-Code-Pro-Normal.

On initial load, the theme looks great. However, as I move the cursor around, small defects appear.

This screen shot shows a Title before moving the cursor into it: screen shot 2017-01-09 at 11 02 01 am

This is after moving the cursor into the line and back out again: screen shot 2017-01-09 at 11 02 12 am screen shot 2017-01-09 at 11 02 24 am

This shows a black bar across the cursor which shows on Level 1 headlines: screen shot 2017-01-09 at 11 02 32 am

This shows a similar distortion caused by the cursor on a level 2 headline. screen shot 2017-01-09 at 11 02 48 am

robertsck avatar Jan 09 '17 16:01 robertsck

Hmm. The black bar across the cursor is easy to explain. It's an artifact of how the leading is being hacked. Basically a box is added to the text in the same color as the background color. I should probably mention that in the description.

I am not sure what is happening with the cursor movement artifacts. Let me see if I can repro.

jonnay avatar Jan 12 '17 00:01 jonnay

+1 I'm having the same problem

stewartpark avatar Feb 12 '17 04:02 stewartpark

I like the theme a lot however I see the artifacts too on the leuven theme. I also find that the cursor disappears when it is at the beginning of the line on a heading. image

here is after moving the cursor one space: image

fkgruber avatar Apr 28 '17 18:04 fkgruber

I'm seeing this (in light themes)... I don't think this is the desired effect...?

org-beautify-theme

ghost avatar Aug 31 '17 06:08 ghost

Actually its worse after fully reloading the theme....

org-beautify-theme

ghost avatar Aug 31 '17 06:08 ghost

@usharf the load order of the theme matters. If you load org-beautify first, and then load another theme on top, org-beautify doesn't properly find the background color to hack in the spacing. That's why you have the goofy black boxes everywhere.

jonnay avatar Sep 08 '17 21:09 jonnay

If you pull down the latest version (0.4) and customize the variable org-beautify-theme-use-box-hack and set it to false, that should fix your woes.

jonnay avatar Sep 08 '17 22:09 jonnay

Great thanks. If it helps anyone else using spacemacs, I'm using this snippet to force org-beautify-theme to re-apply after loading/changing active theme: org-beautify-theme-title

  (add-hook 'spacemacs-post-theme-change-hook
            'org-beautify-theme)

org-beautify-theme-title

ghost avatar Sep 10 '17 13:09 ghost

ooops... sorry, but I'm now seeing some artifacts in the theming of the mode-line.... i.e. those white blocks in the 2nd screen grab. Spacemacs uses powerline and the default seperator is 'wave ...

org-beauitify-befor org-beautify-after

ghost avatar Sep 10 '17 13:09 ghost