adam7 / delugia-code

Can we add Nerd Fonts to Cascadia Code Font using a GitHub Action
MIT License
572 stars 34 forks source link

Glyphs not rendering JUST in Powershell #35

Closed isaacrlevin closed 4 years ago

isaacrlevin commented 4 years ago

Tried to get Delugia + Nerd Fonts installed on a new box, but I cannot get it to work in Windows Terminal Powershell. Here is PS Core image

and PS

image

I can open an issue in Terminal, but wanted to see if there is an easy fix for this

Finii commented 4 years ago

How do I set the prompt, so that the git stuff is displayed? Plain PS seems to not have it ;)

Finii commented 4 years ago

This is on my Windows box. Top image: Git bash, bottom image PowerShell. I pasted a line with relevant characters from my Linux console into both.

Screenshot from 2020-05-19 08-04-32

I wonder, why is it rendering as multiple chars in your screenshots, seems the unicode stuff is not working correctly? Should be one char, maybe unknown, but multiple?

Finii commented 4 years ago

Hmm, this is also not working with Cascadia PL. Copy triangular thing from CharacterMap, paste into PowerShell.

Screenshot from 2020-05-19 08-28-29

My Windows skills erode away...

adam7 commented 4 years ago

@isaacrlevin Are you using oh-my-posh for your font theming?

isaacrlevin commented 4 years ago

I'm using just posh git and a custom powershell profile

KillDozerX2 commented 4 years ago

@isaacrlevin I had the same issue, but fixed it by installing both posh-git and oh-my-posh.

isaacrlevin commented 4 years ago

@KillDozerX2 same issue with bot installed image

Finii commented 4 years ago

Funny

How bad is that? PowerShell does not reder the glyphs when you type them, but in the error message they are shown??!

remmina_HaskStep7_localhost:1111_2020528-4578,318722

For sure this has nothing to do with the font, but with some PowerShell peculiarity.

Finii commented 4 years ago

Same Window, switched to Lucida Console, where the extra chars are not avail: remmina_HaskStep7_localhost:1111_2020528-5356,564832

Finii commented 4 years ago

Hmm, seems to work (on my machine). I never had anything special installed on that Windows box, just used it to test Delugia on Windows with VisualStudio. Installed oh-my-posh, and voila: remmina_HaskStep7_localhost:1111_2020528-52614,983658 I don't know what the missing char in the left is, but the powerline triangular things are there.

What I did (in an admin PS window) was just:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install ConEmu
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
Set-ExecutionPolicy Bypass -Scope Process -Force; Import-Module oh-my-posh
Set-Prompt

I reckon ConEmu is not needed, but it was in the installation manual.

Finii commented 4 years ago

Ah, with Delugia Complete we also see what that strange glyph in the left is: remmina_HaskStep7_localhost:1111_2020528-54548,174398

Can you @isaacrlevin make it work for you with these hints?

Finii commented 4 years ago

Git stuff also works ;) remmina_HaskStep7_localhost:1111_2020528-55246,906897

Edit: Did a Set-Theme Paradox between both screenshots, this explains the slightly different prompt.

isaacrlevin commented 4 years ago

Doesn't work, however the glyph is there in character map and can be pasted into terminal. I assume the encoding on my profile is messed up but it works in ps core

image

Finii commented 4 years ago

I assume the issue is 'solved' by declaring it an issue of your setup? I'm quite at a loss what happens here.

Please feel free to reopen it, if you think we can do something. It sounded like you now think it can be a problem of your setup.