Skip to content

Wrong rendering for mixed LTR/RTL text #23

@maa3x

Description

@maa3x

Hello.
Thanks for creating this great library.

I have a problem with RTL text rendering. The order of runs gets reversed if there is LTR characters in the middle of RTL text.

Here is the sample text:

وَرَسُولِهِ وَإِنْ تُبْتُمْ فَلَكُمْ رُءُوسُ hello أَمْوَالِكُمْ لَا تَظْلِمُونَ وَلَا تُظْلَمُونَ ( 279 ) وَإِنْ كَانَ ذُو عُسْرَةٍ فَنَظِرَةٌ إِلَى مَيْسَرَةٍ

Current Output:
Image

Expected Output:
Image

I tried setting the Direction of shaping.Input to di.DirectionRTL but that didn't help.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions