Coder Social home page Coder Social logo

Comments (5)

andreyyao avatar andreyyao commented on May 14, 2024 1

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)))

from nyan-mode.

RushanKhan1 avatar RushanKhan1 commented on May 14, 2024

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

from nyan-mode.

RushanKhan1 avatar RushanKhan1 commented on May 14, 2024

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.

from nyan-mode.

andreyyao avatar andreyyao commented on May 14, 2024

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

from nyan-mode.

tusooa avatar tusooa commented on May 14, 2024

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.

from nyan-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.