profile
viewpoint

Ask questionsOhMyPosh themes with arrows render gaps before arrow character

  • Your Windows build number: (Type ver at a Windows Command Prompt) Windows 10 18362.30 (Enterprise) oh-my-posh 2.0.263 - agnoster theme posh-git 0.7.3 Screenshots taken using Nerd Fonts Inconsolata NF, also tried using FuraCode NF with same results. I am using a build from master as of ~11am PDT today.

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots) Windows Terminal image Fluent Terminal (expected result) image

  • What's wrong / what should be happening instead: Arrow characters on powerline should be getting rendered a few pixels to the left, so colour gaps aren't visible (see Fluent Terminal screenshot). Screenshots taken using agnoster theme, but the same happens on other themes utilising those arrows - Paradox and Fish. No issues noticed on themes that don't render this arrow character. https://github.com/JanDeDobbeleer/oh-my-posh#themes

Edit: removed ohmyposh disabled screenshot, as that doesn't relate to this issue but to the other one I just opened.

microsoft/terminal

Answer questions wenbozzz

Hi, I got the same issue here using patched nerd font UbuntuMono NF from here using agnoster theme in zsh

Also tried with different patched nerd fonts like SpaceMono NF, RobotoMono NF and DejaVuSansMono NF, all with the same issue

I'm using the latest master as of right now, with HEAD at 900d0c3cce39fa191e16b0224fa32c3441f8de24

image

As you can see first lettter of the command (like c from cd and l from ls) is not rendered (or rather I guess it's blocked by the charater to the left that looks like this one: ▶)

settings of the ubuntu terminal as below:

{
            "acrylicOpacity" : 0.5,
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline" : "wsl.exe -d Ubuntu",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "UbuntuMono NF",
            "fontSize" : 10,
            "guid" : "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
            "name" : "Ubuntu",
            "padding" : "0, 0, 0, 0",
            "startingDirectory" : "%USERPROFILE%",
            "snapOnInput" : true,
            "useAcrylic" : false
        }

Update: It's seems the character is rendered just fine with the original font (the one that's not nerd font patched) image

{
            "acrylicOpacity" : 0.5,
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline" : "wsl.exe -d Ubuntu",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Roboto Mono for Powerline",
            "fontSize" : 10,
            "guid" : "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
            "name" : "Ubuntu",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "useAcrylic" : false
        }
useful!
source:https://uonfu.com/
Github User Rank List