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

Unable to input Chinese chars in TextInput and TextEdit #2645

Open
4 tasks done
blackwhite-bear opened this issue Oct 21, 2024 · 3 comments
Open
4 tasks done

Unable to input Chinese chars in TextInput and TextEdit #2645

blackwhite-bear opened this issue Oct 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@blackwhite-bear
Copy link

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Unable to input Chinese fonts in TextInput and TextEdit

The example of my project just likes below

fn main() {
    let _ = application("", APP::update, APP::view)
        .font(include_bytes!("../img/MiSans.ttf").as_slice())
        .default_font(Font::with_name("MiSans"))
        .run();
}

.push(TextInput::new(conval::CALL, self.installer_info.name.as_str()).on_input(Message::ChangedName),)

Match _ {
    Message::ChangedName(name) => self.installer_info.name = name,
}

It's OK to show Chinese fonts in the interface. Even though, Text Fields can show Chinese when using CTRL+V to paste some into, it can not be done by using the keyboard and can only receive ASCII chars.

System information
Deepin V23
6.6.47-amd-desktop-hwe
X11

What is the expected behavior?

able to receive Chinese chars into Text Fields

Version

crates.io release

Operating System

Linux

Do you have any log output?

No
@blackwhite-bear blackwhite-bear added the bug Something isn't working label Oct 21, 2024
@jellybobbin
Copy link

Have the same problem。

cargo 1.81.0 (2dbb1af80 2024-08-20)
iced = "0.13.1"
Darwin Mac-mini 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64 x86_64

@blackwhite-bear blackwhite-bear changed the title Unable to input Chinese fonts in TextInput and TextEdit Unable to input Chinese chars in TextInput and TextEdit Oct 22, 2024
@KentaTheBugMaker
Copy link

KentaTheBugMaker commented Oct 25, 2024

Iced doesn't support winit IME related things.
I tried to support it by adding IME Event to Iced Event and interface for ime.

Result
Hecrij doesn't think about non-european input. no reply from him.
We can support IME. but too many fixes needed to widgets.
and i can't spend many times for very early dev stage of unusable toolkit.

let's see #1858
or Maybe we need to create work group for it.

@blackwhite-bear
Copy link
Author

It looks like there are many things to be done, and the progress is fascinating.

Thanks for your update

I can not work on this kind of issue. Considering this function is deeply related with platforms and may have been changed continually, building an exclusive group for it is a good idea, anyway, if this function needs to be adjusted frequently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants