iced-rs / iced

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

Tail of g doesn't show on certain window sizes. #2212

Open thunderstorm010 opened 5 months ago

thunderstorm010 commented 5 months ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

image As in the image, the tail of the "g" of "config" doesn't show in this window size. image But when I slightly change the window size, the tail of g is visible again. I've also tried advanced shaping, but nothing changed.

Code:

                container(column![text("Failed to read the config file.").size(30), text(err).shaping(text::Shaping::Advanced)]).width(Length::Fill).height(Length::Fill).center_x().center_y().into()

What is the expected behavior?

Expecting that the tail would be visible when the text itself is also visible. This issue seems to happen because the tail of "g" overflows the bounding box.

Version

master

Operating System

Windows

Do you have any log output?

No response

dtzxporter commented 5 months ago

This is a known issue blocked by https://github.com/pop-os/cosmic-text/issues/70.