JanDeDobbeleer / oh-my-posh

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

Font characters in the prompts not rendering correctly on a fresh install #829

Closed LoZeno closed 3 years ago

LoZeno commented 3 years ago

Prerequisites

Description

On a fresh install of oh-my-posh, both using the Powershell method and the scoop method, and on both Powershell and Powershell code, on any theme available many characters used by the themes are replaced by the "undefined character" glyph.

Here's an example of 'Get-PoshThemes' on Powershell, with Cascadia Mono as the font: image

Here's an example of 'Get-PoshThemes' on Powershell Core, with Fira Code as the font: image

Environment

Optional

Steps to Reproduce

  1. Install oh-my-posh
  2. 'Get-PoshThemes'

Expected behavior: The prompts should render all the characters and glyphs correctly

Actual behavior: Many characters and glyphs are not rendered.

JanDeDobbeleer commented 3 years ago

@LoZeno that first font doesn't contain those characters as it isn't powerline patched. Nothing we can do about that, you need to either switch to Cascadia Code PL (which also doesn't have every glyph used by default, only themes with the minimal name work 100%) or move to a Nerd Font (which is the best solution as it's designed around the availability of glyphs for context).

LoZeno commented 3 years ago

@JanDeDobbeleer I got to the Fonts page of the documentation only after submitting the issue, my bad.

JanDeDobbeleer commented 3 years ago

@LoZeno we're here to help!

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.