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

Can not display Chinese #406

Closed
hlizard opened this issue Aug 6, 2020 · 5 comments
Closed

Can not display Chinese #406

hlizard opened this issue Aug 6, 2020 · 5 comments

Comments

@hlizard
Copy link

hlizard commented Aug 6, 2020

I found the neko, hashlink target of haxeui-openfl also not display Chinese(flash and html target is right), but some diff, Chinese is missing:
image

import haxe.ui.Toolkit;
import haxe.ui.components.Button;
import haxe.ui.containers.VBox;
import haxe.ui.core.Screen;

class Main {
	static function main() {
		trace("你好, 中国!");
		trace("你好, 中国!".length);

		Toolkit.init();

		var main = new VBox();

		var button1 = new Button();
		button1.text = "按钮 1";
		main.addComponent(button1);

		var button2 = new Button();
		button2.text = "按钮 2";
		main.addComponent(button2);

		var input = new TextField();
		main.addComponent(input);

		Screen.instance.addComponent(main);
	}
}

also haxeui/haxeui-hxwidgets#25 (comment)

@ncannasse
Copy link
Member

ncannasse commented Aug 6, 2020 via email

@hlizard
Copy link
Author

hlizard commented Aug 7, 2020

You are right, but I found another problem, not all chinese char display:
image

neko ok:
image

@hlizard
Copy link
Author

hlizard commented Feb 26, 2021

Maybe like openfl/openfl#2138, i will test it later(wait for the compatibility issue of haxe 4.2 to be resolved).

@ncannasse
Copy link
Member

ncannasse commented Feb 26, 2021 via email

@hlizard
Copy link
Author

hlizard commented May 7, 2021

Now the test is successful, it should be the problem of OpenFL.

openfl: [9.1.0] (git b3d910401b47b2c5ae41f0e344212801f3dd2087)
lime: [7.9.0]
haxe: 4.2.0
hl-1.10.0-win

@hlizard hlizard closed this as completed May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants