Skip to content

OhMyPosh themes with arrows render gaps before arrow character #633

Closed

Description

  • 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.

Activity

  1. added
    Area-RenderingText rendering, emoji, complex glyph & font-fallback issues
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    on May 9, 2019
  2. zadjii-msft commented on May 9, 2019

    @zadjii-msft
    Member

    Seems like a thing Michael Niksa (@miniksa) might know about

  3. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on May 17, 2019
  4. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on May 17, 2019
  5. miniksa commented on May 21, 2019

    @miniksa
    Contributor

    I don't strictly know why this is, but it's probably a renderer thing so I'll self-assign for now.

  6. wenbozzz commented on Jun 19, 2019

    @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 900d0c3

    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
            }
  7. efelippe commented on Jun 26, 2019

    @efelippe

    Same issue using zsh/oh-my-zsh with powerlevel9k theme
    image

    I'm using "Sauce Code Powerline" font (patched from nerd-fonts).
    Also tried with others fonts from Powerline patched fonts

            {
                "acrylicOpacity" : 0.89999997615814209,
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "commandline" : "wsl.exe -d Ubuntu-18.04",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "filledBox",
                "fontFace" : "SauceCodePro Nerd Font",
                "fontSize" : 12,
                "guid" : "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
                "historySize" : 9001,
                "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
                "name" : "Ubuntu-18.04",
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "useAcrylic" : true
            }
    
  8. JayXon commented on Jul 13, 2019

    @JayXon

    I was able to solve this issue by installing the 'Windows Compatible' version of the nerd font, for example Droid Sans Mono Nerd Font Complete Windows Compatible.otf, and then set the fontFace to DroidSansMono NF.

    image

  9. 6 remaining items

  10. krokofant commented on Oct 2, 2019

    @krokofant

    Me and my colleagues had a bunch of issues with this but it worked for one of us. We're using my LovelyPowershell modules which installs the latest Hack NF fonts from the nerd-fonts master.

    Turns out those of us that had issues had older versions of the font. The latest on nerd-fonts master makes this issue go away. We're using the Complete Mono Windows Compatible versions.

    🎉🎉🎉

    Edit: If you try the fonts from the master branch then make sure that the old ones are actually uninstalled.

  11. utybo commented on Oct 24, 2019

    @utybo

    Isn't this fixed by the latest release? The arrows seem to work fine for me now

  12. hchokshi commented on Oct 24, 2019

    @hchokshi
    Author

    Isn't this fixed by the latest release? The arrows seem to work fine for me now

    I am also seeing this as fixed in yesterday's Github release.

  13. es50678 commented on Nov 21, 2019

    @es50678

    I was able to get the powerline fonts and symbols working by using the settings from #633 (comment) above. However, the colors do not match what I expect them to. I also have the wsltty installed which outputs the correct colors. Has anyone been able to get windows terminal to output the right colors? Or know which setting I should change?

    Capture

  14. utybo commented on Nov 21, 2019

    @utybo

    Eduardo Soto (@es50678) you can change the color scheme used by the terminal in your settings, check here for details

  15. miniksa commented on Nov 22, 2019

    @miniksa
    Contributor

    Confirmed with Dustin L. Howett (MSFT) (@DHowett-MSFT) that this should be resolved in the upcoming release thanks to #2066. Resolving.

  16. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Nov 22, 2019
  17. added
    Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
    and removed
    Needs-Tag-FixDoesn't match tag requirements
    on Nov 22, 2019
  18. ofarukcaki commented on Dec 31, 2021

    @ofarukcaki

    I have the same problem, it was working fine yesterday and I changed nothing. Opening the terminal for the first time looks like that, and after that, it just works normally. Does anyone know a solution? I tried all suggested fixes above and yet none worked

    image

    Edit: Found out it is a windows terminal problem, a temporary workaround worked: JanDeDobbeleer/oh-my-posh#172 (comment)

  19. MuktadirHassan commented on Feb 18, 2022

    @MuktadirHassan

    Still persists on the latest version of terminal.
    Windows Terminal
    Version: 1.11.3471.0
    Windows 11 Version 21H2 Build 22000.527
    image

    Workaround is to add

    clear

    at the end in .bashrc if you are using bash.

  20. zadjii-msft commented on Feb 18, 2022

    @zadjii-msft
    Member

    Muktadir Hassan (@MuktadirHassan) We're actually tracking that particular issue over in #8341

  21. locked and limited conversation to collaborators on Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-FontsRelated to the fontArea-RenderingText rendering, emoji, complex glyph & font-fallback issuesIssue-BugIt either shouldn't be doing this or needs an investigation.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions