Skip to content

code-server not rendering the Oh-My-Posh font after changing the terminal.integrated.fontFamily setting #7252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
cnjackhu opened this issue Mar 8, 2025 · 2 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@cnjackhu
Copy link

cnjackhu commented Mar 8, 2025

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

Title:
Oh-My-Posh font not rendering in code-server terminal after setting terminal.integrated.fontFamily to "MesloLGM Nerd Font"


Description:
After updating the settings.json configuration in code-server to use the "MesloLGM Nerd Font" for the integrated terminal, the Oh-My-Posh font is not rendering correctly. The terminal displays fallback characters or incorrect symbols instead of the expected Oh-My-Posh glyphs.

Steps to Reproduce:

  1. Install code-server and ensure Oh-My-Posh is configured in the shell (e.g., .bashrc, .zshrc).
  2. Add the following setting to settings.json:
    "terminal.integrated.fontFamily": "MesloLGM Nerd Font"
  3. Restart code-server and open the integrated terminal.
  4. Observe that the Oh-My-Posh font is not rendering correctly.

Expected Behavior:
The terminal should correctly render the Oh-My-Posh font using "MesloLGM Nerd Font" as specified in the configuration.

Actual Behavior:

Uploaded image

Image

Steps to Reproduce

  1. install oh-my-posh oh-my-posh
  2. then install the font oh-my-posh font install meslo
  3. change the config for code-server by :"terminal.integrated.fontFamily": "MesloLGM Nerd Font"

Expected

show the Nerd font correctly

Actual

not show the nerd font correctly as the image

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

No, this works as expected in native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@cnjackhu cnjackhu added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Mar 8, 2025
@benz0li
Copy link
Contributor

benz0li commented Mar 10, 2025

Cross reference:

@code-asher
Copy link
Member

code-asher commented Mar 10, 2025

Seems fair to call this a duplicate of #1374

I looked around to see if the issue has been reported upstream. microsoft/vscode#83294 is the closest I could find, but technically it is about a different issue. There is discussion here but not much: https://github.com/orgs/community/discussions/42740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants