iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
25.97k stars 1.25k forks source link

Some characters show up as squares, differs by OS, example chess pawn #2842

Closed dcampbell24 closed 2 days ago

dcampbell24 commented 3 days ago

Is your issue REALLY a bug?

Is there an existing issue for this?

Is this issue related to iced?

What happened?

I went on Windows and a character that was a chess pawn on Linux showed up as a square. If this is unavoidable, it would be nice to have directions somewhere on how to make the chess piece show as a chess piece. Various other symbols don't work on Windows and some don't work on Linux. It would be nice to know how to get support.

What is the expected behavior?

I expected to see a chess pawn.

Version

crates.io release

Operating System

Windows

Do you have any log output?

airstrike commented 3 days ago

You may need text::Shaping::Advanced

https://github.com/iced-rs/iced/blob/master/examples/todos/src/main.rs#L343

dcampbell24 commented 3 days ago

It works, thanks! The only problem is now it is not mono-spaced.

dcampbell24 commented 2 days ago

I set the height and width of the widget and that works!