Skip to content

Arabic Quran diacritics problem #16886

@dahabit

Description

@dahabit

Hello Dartisans,

There is a problem with Flutter using a custom font "KFGQPC Uthmanic Script HAFS " with Arabic Text that contains diacritics like Quran

The text with the same font on ios simulator using Xcode is working perfectly

on the other hand, when using flutter the same Text 'يَسۡ‍َٔلُونَ' with the same font is not displayed correctly

this is known issue with Android, I don't know why it appears with flutter although Flutter is using different text engine
Font
The font that used with these two examples is built specially for that and it has good support for that type of writing

http://fonts.qurancomplex.gov.sa/?page_id=35
Direct download link
http://fonts.qurancomplex.gov.sa/download/UthmanicHafs1Ver09Font.zip

flutter_xcode

the Hex code for the word is
يَسۡ‍َٔلُونَ (25 bytes): "\u64A\u64E\u633\u6E1\u200D\u654\u64E\u644\u64F\u648\u646\u64E"

the diacritics moved to the begining off the letter not the end

Steps to Reproduce & Examples

Xcode sample

preview

xcode2

Source Code
https://github.com/dahabit/xcode_arabic_test

Flutter Example
flutter

flutter_code

Source Code
https://github.com/dahabit/flutter-arabic-diacritics-test

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: typographyText rendering, possibly libtxtframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions