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

Chinese line breaks in Label are incorrect on iOS #83810

Closed
abcjjy opened this issue Oct 23, 2023 · 0 comments · Fixed by #83827
Closed

Chinese line breaks in Label are incorrect on iOS #83810

abcjjy opened this issue Oct 23, 2023 · 0 comments · Fixed by #83827
Assignees
Milestone

Comments

@abcjjy
Copy link

abcjjy commented Oct 23, 2023

Godot version

v4.2.beta2.official [f8818f8]

System information

macOS 13.4.0 - Vulkan (Mobile) - dedicated AMD Radeon Pro 560X - Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 Threads)

Issue description

Line breaks in Chinese is incorret with errors in logs on iOS devices even when autowrap mode is set to word(smart).

Following is rendered in edior. This is correct.
图片

Following is rendered on iOS device. It is incorrect.
IMG_29ADA52A9126-1

And when the app runs on iOS device, following error repeats.

USER ERROR: U_FILE_ACCESS_ERROR at: _spoof_check (modules/text_server_adv/text_server_adv.cpp:6654)

Sometimes the app will crash with EXC_BAD_ACCESS at

#0 0x00000001031f2164 in offsetTOCLookupFn(UDataMemory const*, char const*, int*, UErrorCode*) ()

I tried autowrap mode 'Word' and v4.1.1. Never get it work on iOS.

Steps to reproduce

Create a label, set its text '中字 什么时候换行。', set autowrap mode 'Word(Smart)', resize it to see autowrap in effect.

Open project settings, set internationalization/rendering/text_driver = ICU/Harfbuzz/Graphite, set internationalization/locale/include_text_server_data = On

Minimal reproduction project

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants