Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New line rendered as a box on Linux #1545

Closed
ghost opened this issue Jan 21, 2021 · 3 comments
Closed

New line rendered as a box on Linux #1545

ghost opened this issue Jan 21, 2021 · 3 comments
Labels
bug does not behave the way it is supposed to
Milestone

Comments

@ghost
Copy link

ghost commented Jan 21, 2021

On a multiline TextBox:

Screenshot_2021-01-21_19-17-13

Code to reproduce:

use druid::widget::TextBox;
use druid::{AppLauncher, PlatformError, Widget, WindowDesc};

fn main() -> Result<(), PlatformError> {
    let main_window = WindowDesc::new(ui_builder);
    let data = String::new();
    AppLauncher::with_window(main_window)
        .use_simple_logger()
        .launch(data)
}

fn ui_builder() -> impl Widget<String> {
    TextBox::multiline()
}

This happens on the latest commit of master as of the moment I'm writing this (953bd0b) on both X11 and GTK backends.

@ghost ghost changed the title New line rendered as a box in Linux New line rendered as a box on Linux Jan 21, 2021
@Zarenor Zarenor added the bug does not behave the way it is supposed to label Jan 21, 2021
@Zarenor
Copy link
Collaborator

Zarenor commented Jan 21, 2021

Thanks for reporting this! I think the issue is known - I know a contributor is currently on text enhancements on Linux, and their latest screenshots appear to have this bug resolved. Hopefully they can finish their work and PR it soon!

@cmyr
Copy link
Member

cmyr commented Feb 17, 2021

yes, this will be closed when linebender/piet#389 is merged, and we get a new piet release.

@cmyr cmyr modified the milestones: textbox-polish, piet-4.0 Mar 18, 2021
@cmyr
Copy link
Member

cmyr commented Mar 30, 2021

this should be fixed with #1677

@cmyr cmyr closed this as completed Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug does not behave the way it is supposed to
Projects
None yet
Development

No branches or pull requests

2 participants