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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tzwer
Copy link

@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
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

Successfully merging this pull request may close these issues.

The problem with Persian fonts in the "change language"
1 participant