Demonstrate Emacs box-drawing rendering artifacts#275
Closed
mgeisler wants to merge 3 commits into
Closed
Conversation
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.
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.
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. |
Contributor
Author
|
Let me mark this as closed — it only served as an easy way to show you the screenshots from the branch 🙂 |
Owner
Yeah. good infos. Thanks for that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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 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.