Giter Site home page Giter Site logo

Comments (14)

seagle0128 avatar seagle0128 commented on June 13, 2024

I think it's related to Fira Code and your nerd fonts. I am using "Cascadia Code" and "Symbol Nerd Fonts". What nerd fonts are you using?

vspc is a half-width space, and is used between a group of an icon and texts.
The screenshot is below

image

My suggestion is:

  1. Try emacs -Q with doom-modeline and your font configurations.
  2. Try other fonts, including default font and nerd font.

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

I'm using Fira Code. I have :ui unicode enabled in Doom, and Symbols Nerd Font installed and enabled.

The issue occurs with Cascadia Code and JetBrains Mono, too.

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

Here is the appearance with emacs -Q:
image

I added MELPA, installed doom-modeline, set the font to FiraCode Nerd Font, and enabled doom-modeline-mode. The gaps between the icons and the text are still uncomfortably small.

from doom-modeline.

seagle0128 avatar seagle0128 commented on June 13, 2024

I tested on macOS, Windows and Ubuntu, and no issues were observed. I think it may be related to your WM?

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

I'm running Arch Linux rolling, with KDE 5.27.10.

The issue exists on my laptop too, also Arch, with sway (have not checked version)

from doom-modeline.

seagle0128 avatar seagle0128 commented on June 13, 2024

Well, I didn't test with KDE. I'm sure there is no issue with GTK, according to my tests.

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

On my laptop, I'm using the emacs-wayland package, which has PGTK enabled. I don't think this is toolkit-specific.

Out of curiosity, how does it look for you if you change all vspc occurrences to just spc?

from doom-modeline.

seagle0128 avatar seagle0128 commented on June 13, 2024

No idea why vspc is so narrow in your env. Can you please try this?

(defsubst doom-modeline-vspc ()
  "Thin whitespace."
  (propertize " " 'face 'variable-pitch))

image

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

Changing that did nothing. Replacing all occurrences of doom-modeline-vspc with doom-modeline-spc does this:
image

I have no clue why changing what vspc is doesn't do anything, but not using it does.

from doom-modeline.

seagle0128 avatar seagle0128 commented on June 13, 2024

Re-evaluate doom-modeline-segment.el or compile doom-modeline-core.el and restart Emacs after changing.

image

Are you sure the both are spc?

Try:

(defsubst doom-modeline-vspc ()
  "Thin whitespace."
  (propertize " " 'face 'variable-pitch))

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

Both are spc, yes. This is known behavior of nerd-icons -- if you put a space after an icon, it will become wider into that space, but still leaving a slight space.

from doom-modeline.

seagle0128 avatar seagle0128 commented on June 13, 2024

Both are spc, yes. This is known behavior of nerd-icons -- if you put a space after an icon, it will become wider into that space, but still leaving a slight space.

Obviously the behavior is different in my env.

vspc=spc
image

vspc=1/2 spc
image

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

That's fascinating. The only possibly explanation I can come up with is that something about the fontconfig on Arch is different from your Ubuntu install.

from doom-modeline.

judemille avatar judemille commented on June 13, 2024

I've just realized what's going on. It's Symbols Nerd Font vs Symbols Nerd Font Mono.

I didn't have the mono variant installed. Going to install it and see the behavior.

E: That was indeed it. Might be worth a note somewhere in the FAQ or something, to remind people that they should have the mono variant of Symbols Nerd Font installed.

from doom-modeline.

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.