zed icon indicating copy to clipboard operation
zed copied to clipboard

Edit Predictions: The character width displayed locally and on GitHub is inconsistent.

Open xiaguangbo opened this issue 6 months ago • 1 comments

Summary

Is dislocation from:https://github.com/embassy-rs/embassy/blob/main/embassy-executor/src/raw/trace.rs#L27

Image

Image

Zed Version and System Specs

Zed: v0.188.3 (Zed) OS: Linux Wayland fedora 42 Memory: 29.3 GiB Architecture: x86_64 GPU: AMD Radeon Vega 8 Graphics (RADV RAVEN) || radv || Mesa 25.0.6

xiaguangbo avatar May 30 '25 02:05 xiaguangbo

This problem I think is because you are not using the mono font

in github

font size 12 line height 20 font family var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace) !important

in zed

  "buffer_font_family": "JetBrainsMono Nerd Font",
  "buffer_font_size": 12,
  "buffer_line_height": {
    // 20/12
    "custom": 1.666666666
  },

Image

0x2CA avatar May 30 '25 02:05 0x2CA

I believe this is a duplicate of:

  • https://github.com/zed-industries/zed/issues/15542

notpeter avatar May 30 '25 21:05 notpeter

I computer no have JetBrainsMono Nerd Font, only add "buffer_font_family": "Adwaita Mono", is ok.

xiaguangbo avatar Jun 02 '25 23:06 xiaguangbo