tickrs icon indicating copy to clipboard operation
tickrs copied to clipboard

Line drawing macOS has strange gaps and looks different from linux

Open abdul-malek-octane opened this issue 1 year ago • 5 comments

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

abdul-malek-octane avatar Mar 21 '23 15:03 abdul-malek-octane

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.

tarkah avatar Mar 21 '23 15:03 tarkah

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 avatar Mar 21 '23 15:03 abdul-malek-octane

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!

abdul-malek-octane avatar Mar 21 '23 15:03 abdul-malek-octane

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.

tarkah avatar Mar 21 '23 15:03 tarkah

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)

abdul-malek-octane avatar Mar 21 '23 15:03 abdul-malek-octane