Skip to content

Demonstrate Emacs box-drawing rendering artifacts#275

Closed
mgeisler wants to merge 3 commits into
dakra:mainfrom
mgeisler:box-drawing-tests
Closed

Demonstrate Emacs box-drawing rendering artifacts#275
mgeisler wants to merge 3 commits into
dakra:mainfrom
mgeisler:box-drawing-tests

Conversation

@mgeisler
Copy link
Copy Markdown
Contributor

@mgeisler mgeisler commented May 14, 2026

For #271: Demonstrate how Emacs (and Ghostel) renders box-drawing characters compared to native terminal emulators.

Key findings from these screenshots:

  • A regular Emacs buffer renders exactly like a Ghostel buffer. The native module doesn't introduce any new artifacts; it's an Emacs rendering quirk.

  • Native terminals (Gnome Terminal and Ghostty) render very differently from Emacs:

    • box drawing characters render as smooth, continuous, anti-aliased lines without any jagged edges.

      Ghostty (200% zoom) Emacs (200% zoom)
      image image
    • block shading characters render as speckles in Emacs, as solid colors in native terminals.

      Ghostty Emacs
      image image
  • All tested fonts in Emacs show jagged edges to some degree. Victor Mono shows artifacts especially for diagonal lines, Fira Code shows them to a lesser degree. FiraCode Nerd Font from https://www.nerdfonts.com/font-downloads renders identically to Fira Code.

  • These jagged edges persist regardless of the hinting and anti-aliasing settings in the Gnome Tweak tool.

This PR is just for demonstration purposes and in case someone finds the script helpful in a further investigation. I will see how I can submit a bug report to upstream Emacs since this is not specific to Ghostel.

For dakra#271: Demonstrate how Emacs (and Ghostel) renders box-drawing
characters compared to native terminal emulators.

Key findings from these screenshots:

- A regular Emacs buffer renders exactly like a Ghostel buffer. The
  native module doesn't introduce any new artifacts; it's an Emacs
  rendering quirk.

- Native terminals (Gnome Terminal and Ghostty) render very
  differently from Emacs:

  - box drawing lines render as smooth, continuous, anti-aliased lines
    without any jagged edges.

  - block shading characters render as speckles in Emacs, as solid
    colors in native terminals.

- All tested fonts in Emacs show jagged edges to some degree. Victor
  Mono shows some artifacts, Fira Code shows them less. FiraCode Nerd
  Font from https://www.nerdfonts.com/font-downloads renders
  identically to Fira Code.

- These jagged edges persist regardless of the hinting and
  anti-aliasing settings in the Gnome Tweak tool.
mgeisler added 2 commits May 15, 2026 11:16
This is where a small repeated rendering artifact shows up the most.
The script

- Is not strictly related to the Ghostel package.
- Fonts not installed on the system are skipped.
@mgeisler
Copy link
Copy Markdown
Contributor Author

I reported this upstream to Emacs proper, see bug 81046 for details. Eli responded quickly and explained that Emacs is not doing anything special to the glyphs. What I am seeing is basically intrinsic to the fonts I'm testing with.

@mgeisler
Copy link
Copy Markdown
Contributor Author

Let me mark this as closed — it only served as an easy way to show you the screenshots from the branch 🙂

@mgeisler mgeisler closed this May 15, 2026
@dakra
Copy link
Copy Markdown
Owner

dakra commented May 15, 2026

Let me mark this as closed — it only served as an easy way to show you the screenshots from the branch 🙂

Yeah. good infos. Thanks for that.

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

Successfully merging this pull request may close these issues.

2 participants