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

Cat and Rainbow does not scale well on Emacs 27 #48

Open
tusooa opened this issue Sep 27, 2020 · 5 comments
Open

Cat and Rainbow does not scale well on Emacs 27 #48

tusooa opened this issue Sep 27, 2020 · 5 comments
Labels

Comments

@tusooa
Copy link

tusooa commented Sep 27, 2020

image

On Emacs 27 the rainbow segments have visible spaces between them, and the rainbow is significantly higher than the cat.
image

@RushanKhan1
Copy link

RushanKhan1 commented Oct 1, 2020

nyan-mode works perfectly when I use 1.00x scaling but when I increase the scaling I face this same problem.

@RushanKhan1
Copy link

I kinda found a way to make it somewhat better, locally. All you need to do Is resize all of the xpm images equally in the img folder to suit your particular scaling.

@TeMPOraL TeMPOraL added the bug label Apr 8, 2022
@andreyyao
Copy link

andreyyao commented Jul 14, 2022

Are you launching emacs server as systemd service? I have the same problem, but the cat size appears to be normal when I launch emacs from my distro's application menu instead of as systemd
OS: 5.16.18-1-MANJARO
Emacs: 28.1 with native compilation

@tusooa
Copy link
Author

tusooa commented Jul 14, 2022

Are you launching emacs server as systemd service? I have the same problem, but the cat size appears to be normal when I launch emacs from my distro's application menu instead of as systemd OS: 5.16.18-1-MANJARO Emacs: 28.1 with native compilation

I don't have systemd.

@andreyyao
Copy link

andreyyao commented Feb 2, 2023

Found a band-aid fix.

The issue is that in nyan.el, for some reason when the .xpm images are created in nyan-cat-image and nyan-animation-frames, the scaling wasn't automatically inferred by create-image even though it's supposed to.

Fix: add the following code to init file after the lines where you (nyan-mode t):

  (setq nyan-cat-image
        (create-image nyan-cat-face-image 'xpm nil :scale 2 :ascent 'center))
  (setq nyan-animation-frames
        (mapcar
	 (lambda (id)
           (create-image (concat nyan-directory (format "img/nyan-frame-%d.xpm" id))
                         'xpm nil :scale 2 :ascent 95))
         '(1 2 3 4 5 6)))

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

4 participants