Skip to content

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

Closed as duplicate
@cnjackhu

Description

@cnjackhu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions