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
3.If add a space before \n, it could display well.
slint::slint! {
export component HelloWorld {
width: 200px;
height: 100px;
Text {
text: "你好 \n世界"; // here is a space in front of \n
}
}
}
fn main() {
HelloWorld::new().unwrap().run().unwrap();
}
Environments is msys x86_64 with Windows 10, default backend.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report. Looks like a series of bugs indeed. Could you enabling the Skia renderer and see if that works better for you? See https://releases.slint.dev/1.6.0/docs/slint/src/advanced/backend_winit and you might have to enable the renderer-skia feature on the slint crate (or enable SLINT_FEATURE_RENDERER_SKIA=ON if you're using CMake).
Text widgets seem not to display correctly with Chinese character, here are some examples:
\n
, the Chinese character should be displayed as tofu.2.All the Chinese character joint with
\n
, the character just in front of\n
was missing.3.If add a space
before
\n
, it could display well.Environments is msys x86_64 with Windows 10, default backend.
The text was updated successfully, but these errors were encountered: