Skip to content

Fix: Correct Persian text shaping in CEGUI (#4302) #4338

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

Merged
merged 3 commits into from
Aug 6, 2025

Conversation

tzwer
Copy link
Contributor

@tzwer tzwer commented Aug 4, 2025

Fixes: #4302

It was fixed by adding the unicodes of the special Persian letters to the shapetypes array in cegui-0.4.0-custom/include/CEGUIStringBidi.h which contains the Arabic letters that need to be reshaped in the same way these Persian letters will be reshaped. This array is used by the doShape function to choose the correct shape of the letter (isolated, initial, middle, final).

The letter added are ﭖ ﭺ ﮊ ﮎ ﮒ ﮤ ﯼ.

Here are photos of before and after

Before

image

After

image

@tzwer tzwer changed the title Fix: Correct Persian text shaping by adding missing characters (#4302) Fix: Correct Persian text shaping in CEGUI (#4302) Aug 4, 2025
@botder botder merged commit efb2edf into multitheftauto:master Aug 6, 2025
6 checks passed
@botder botder added this to the 1.7 milestone Aug 6, 2025
MTABot pushed a commit that referenced this pull request Aug 6, 2025
efb2edf Fix Persian text shaping in CEGUI (PR #4338, Fixes #4302)
@botder botder added the bugfix Solution to a bug of any kind label Aug 6, 2025
MTABot pushed a commit that referenced this pull request Aug 6, 2025
463d090 Fix Persian text shaping in CEGUI (PR #4338, Fixes #4302)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The problem with Persian fonts in the "change language"
2 participants