JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.01k stars 2.37k forks source link

Gaps in powerline segments when using certain icons #226

Closed tradiff closed 3 years ago

tradiff commented 3 years ago

Prerequisites

Description

I am observing strange gaps in powerline segments, but only if certain icons are used. In this screenshot you can see a black gap, which only appeared once I changed the prefix from " \uE5FF " (a folder) to " \ufa1a " (a stopwatch)

image

The entire segment code is:

{
  "type": "path",
  "style": "powerline",
  "powerline_symbol": "\uE0B0",
  "foreground": "#ffffff",
  "background": "#ff479c",
  "properties": {
    "prefix": " \ufa1a ",
    "style": "folder"
  }
},

Environment

Steps to Reproduce

  1. Use a theme with powerline segments such as jandedobbeleer
  2. Replace an icon with " \ufa1a "
  3. Observe broken powerline segments

This also occurs with other icons, such as \ufa1e (nf-mdi-timer_sand). But interestingly it does not occur with the other sand timer icons (\ufbab and \ufc8a). This also occurs with other segment types, it is not limited to path

Expected behavior: No gap

Actual behavior: Gap

JanDeDobbeleer commented 3 years ago

Correct, some icon are acting annoying. Unfortunately it's not something I can fix, that's a Nerd Font issue.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.