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

Line drawing macOS has strange gaps and looks different from linux #142

Open
abdul-malek-octane opened this issue Mar 21, 2023 · 5 comments

Comments

@abdul-malek-octane
Copy link

Every 4 dots (vertically) there is a dot missing. Line looks patchy and thinner than on macOS for the same font, same vertical horizontal spacing.
Screen Shot 2023-03-21 at 10 54 33 AM

@tarkah
Copy link
Owner

tarkah commented Mar 21, 2023

This is a font issue. Use a terminal where you can configure line height or y-offset and lower it. I do this with Alacrity to remove gaps with my preferred font.

@abdul-malek-octane
Copy link
Author

I also use Alacritty. y-offset does not fix this no matter what unfortunately. I've played around with it quite a bit. Also worth noting that the same y-offset settings on Alacritty render differently on macOS vs linux (ubuntu, gnome).

The above picture is the best I could get while playing with y-offset. Without y-offset, the difference is much more apparent:
Screen Shot 2023-03-21 at 11 06 59 AM

@abdul-malek-octane
Copy link
Author

abdul-malek-octane commented Mar 21, 2023

Also even with no offsets, the gap issue is not present on Linux, so I believe it is an OS-related rending issue, at least in part.
If there are specific fonts/offset combinations you would like me to test that would be helpful, let me know!

@tarkah
Copy link
Owner

tarkah commented Mar 21, 2023

Are you using identical fonts between Linux and Macos?

If you're using alacrity on both platforms, it is most likely an upstream issue there.

@abdul-malek-octane
Copy link
Author

abdul-malek-octane commented Mar 21, 2023

Yep, identical fonts across both Linux and macOS. Hm, I don't think it's an Alacritty either since the issue occurs on other terminal emulators as well on macOs but not on Linux.

Fonts tried on both macOS and Linux:

  • JetBrains Mono
  • Ubuntu Mono (w/ NerdFont glyphs, same font file on both)
  • Menlo
  • Fira Code
  • Roboto Mono

For example:

  • macOS
    • Alacritty (issue occurs) (with and without y-offset)
    • Terminal (issue occurs) (no y-offset)
    • iTerm (issue occurs) (no y-offset)
  • Linux
    • Alacritty (no issue) (with and without y-offset)
    • Gnome Terminal (no issue) (no y-offset)
    • Kitty (no issue) (no y-offset)

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

2 participants