Skip to content
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

Messed up character width for some fonts #286

Open
lukepistrol opened this issue Mar 23, 2023 · 5 comments
Open

Messed up character width for some fonts #286

lukepistrol opened this issue Mar 23, 2023 · 5 comments

Comments

@lukepistrol
Copy link

For some fonts the character width is a bit messed up (i.e. too wide).

SwiftTerm:

Screenshot 2023-03-24 at 00 30 59

Apple's Terminal (iTerm looks the same):

Screenshot 2023-03-24 at 00 32 05

The font used in this example is FiraCode but this happens with a couple of other fonts (Source Code Pro for Powerline, Fira Mono for Powerline) too which look totally normal in other Terminal emulators.

@migueldeicaza
Copy link
Owner

This is odd, how did you get this setup?

@Hukeqing
Copy link

This is odd, how did you get this setup?

This is the issue I raised at this address(CodeEditApp/CodeEdit#1084). @lukepistrol helped me to re-raise it here. You can check the configuration information of the original issue. If you need other help information, you can contact me

@migueldeicaza
Copy link
Owner

Folks, I could appreciate a complete bug report, something I can reproduce on my end.

Otherwise, I spend hours tracking down third party issues. I am using those fonts and do not have that problem on iOS.

@scrapp08
Copy link

scrapp08 commented Aug 29, 2023

Adding onto this, nerd fonts do not seem to render correctly.

What I'm getting:
image

What is expected:
image

By the looks of if, the font isn't even the right one.

@jwells89
Copy link

jwells89 commented Feb 10, 2024

I’m seeing this issue with a few fonts as well.
FontBug

Screenshot taken in my own project, but it’s reproducible in the MacTerminal sample project by:

  1. Installing the attached version of the free Cascadia Code font
  2. In viewDidLoad() in ViewController.swift, inserting terminal.font = NSFont(name: "Cascadia Code", size: 13)!
  3. Running the app

I’m running macOS 14.3.1 (23D60) on an Apple Silicon machine. Let me know if there are any details I’ve missed, and if it would be helpful I can try to reproduce this in a clean VM and an Intel mac to help rule out possibilities.

CascadiaCode.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants