JanDeDobbeleer / oh-my-posh

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

Difficulties with icons in prompt #8

Closed aaronsb closed 3 years ago

aaronsb commented 3 years ago

Hi, I might be missing something fundimental, but it appears that the characters representing items on the prompt are incorrect-ish?

Here's an example: image

If I edit the theme in vscode, only certain glyphs render correctly:

image

I'm wondering if there's a character encoding thing going on with the file maybe?

image

JanDeDobbeleer commented 3 years ago

Hey @aaronsb, that most likely depends on the font being used. I used nerd fonts Meslo LG M (top of my head).

JanDeDobbeleer commented 3 years ago

This shows another bug as well, I need to make the battery prompt for UNIX and Windows too 😅

aaronsb commented 3 years ago

I forgot about Meslo fonts. I've been using Cascadia Code (PL) for a while now.

Time to enumerate /sys/class/power_supply/ ? ;)

JanDeDobbeleer commented 3 years ago

I'll update the README if you can confirm the right font resolves the issue. And I'll create a new issue for the battery indicator 👍🏻

aaronsb commented 3 years ago

Yes, loading Meslo fonts lets the character fallback. Cascadia Code + Meslo FTW!

image

JanDeDobbeleer commented 3 years ago

So pretty ❤️

github-actions[bot] commented 3 weeks 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.