You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a glyph from a Nerdfont-patched font is used, the interface is not properly rendered for some backends.
To Reproduce
After cloning the repo, I added the following change:
diff --git a/cursive/examples/dialog.rs b/cursive/examples/dialog.rs
index c044205..695f0de 100644
--- a/cursive/examples/dialog.rs+++ b/cursive/examples/dialog.rs@@ -10,7 +10,7 @@ fn main() {
// Creates a dialog with a single "Quit" button
siv.add_layer(
// Most views can be configured in a chainable way
- Dialog::around(TextView::new("Hello Dialog!"))+ Dialog::around(TextView::new("Hello Dialog! \u{f049d} "))
.title("Cursive")
.button("Foo", |_s| ())
.button("Quit", |s| s.quit())
And then I experimented with various backends:
ncurses
cargo run --example dialog --features ncurses-backend --no-default-features
termion
cargo run --example dialog --features termion-backend --no-default-features
pancurses
cargo run --example dialog --features pancurses-backend --no-default-features
crossterm
cargo run --example dialog --features crossterm-backend --no-default-features
Expected behavior
All backends should have the same result as termion.
Environment
Operating system used: macOS Ventura 13.4
Backend used: all macOS supported backends were tested
It looks like ncurses is messing up the glyph width here. Not sure what we can do about it :(
We might starts defaulting to crossterm as a backend once I fix some remaining perf issues (essentially moving the buffered backend into cursive proper)
Describe the bug
When a glyph from a Nerdfont-patched font is used, the interface is not properly rendered for some backends.
To Reproduce
After cloning the repo, I added the following change:
And then I experimented with various backends:
ncurses
termion
pancurses
crossterm
Expected behavior
All backends should have the same result as
termion
.Environment
30046dc563b3041092f0f0475ddf87a84eef25f9
(I used themain
branch)Additional context
ncspot
: Nerdfont is not being properly rendered hrkfdn/ncspot#1154The text was updated successfully, but these errors were encountered: