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

SelectEntry chinese garbled #1079

Closed
kingangelAOA opened this issue Jun 5, 2020 · 11 comments
Closed

SelectEntry chinese garbled #1079

kingangelAOA opened this issue Jun 5, 2020 · 11 comments
Labels
duplicate This issue or pull request already exists

Comments

@kingangelAOA
Copy link

kingangelAOA commented Jun 5, 2020

Describe the bug:

To Reproduce:

Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots:

test

Example code:

Device (please complete the following information):

  • OS: Linux
  • Version: 18.04
  • Go version: 1.14
  • Fyne version: 1.2.4
@andydotxyz
Copy link
Member

Is this just selectEntry or does it apply to normal entry as well?
Perhaps it is a dupicate of #218

@kingangelAOA
Copy link
Author

kingangelAOA commented Jun 5, 2020

Cannot enter Chinese after

os.Setenv("FYNE_FONT", "xxxxxxxxxxxxx/FangZhengFangSongJianTi-1.ttf")
#73 this problem be solved in 1.3?

@andydotxyz
Copy link
Member

Have you tried setting it in your environment instead of SeteEnv?

@kingangelAOA
Copy link
Author

kingangelAOA commented Jun 5, 2020

test2
but Cannot input Chinese by keyboard #73

@andydotxyz
Copy link
Member

Thank you this makes sense.
Can you please confirm that, if set using SetText() the SelectEntry does display the characters?
I just want to confirm this is limited to the input isssue #73 :)

@kingangelAOA
Copy link
Author

kingangelAOA commented Jun 6, 2020

test3
test4

Is there any other way to load ttf except environment variables FYNE_FONT

@andydotxyz
Copy link
Member

Thank you, but the original report is against SelectEntry, does that behave the same?

@andydotxyz
Copy link
Member

Another way to load fonts is using the theme API as recently discussed in #1055 - but if this issue relates to input rather than display then it will not help, as it’s the same result as using environment variables.

@kingangelAOA
Copy link
Author

test111

@andydotxyz
Copy link
Member

Great, thanks for confirming. This seems like it is input-method related then.
Are you using a Chinese keyboard, or other software-based input device on your system?
I guess this relates to an upstream issue in GLFW? glfw/glfw#41

@andydotxyz
Copy link
Member

Closing as duplicate of #73

@andydotxyz andydotxyz added the duplicate This issue or pull request already exists label Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants