Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-29629

Arabic text is broken badly with some fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.6, 5.2.0
    • 4.8.4, 5.0.1
    • GUI: Text handling
    • None
    • 7df995a9bd3e989b4136f98424490604eb5178aa

    Description

      Arabic text is broken in different ways.

      // With this font the letters are overlapping each other in a very bad way
      QApplication::setFont(QFont("KFGQPC Uthman Taha Naskh", 72));
      QTextEdit *text = new QTextEdit(QObject::trUtf8("الرَّحْمَنِ"));

      // With this font the letter Ha and Meem should be connected
      // Attached is a file with a red circle where the sapce is wrong
      QApplication::setFont(QFont("Amiri", 72));
      QTextEdit *text = new QTextEdit(QObject::trUtf8("رحْمن"));

      Those fonts are free to use. I created a package for them at
      https://aur.archlinux.org/packages/ttf-amiri/
      https://aur.archlinux.org/packages/ttf-qurancomplex-fonts/

      Attachments

        1. amiri-correct.jpg
          amiri-correct.jpg
          10 kB
        2. amiri-font.ogv
          646 kB
        3. amiri-font-correct.jpg
          amiri-font-correct.jpg
          6 kB
        4. amiri-font-wrong.jpg
          amiri-font-wrong.jpg
          13 kB
        5. amiri-wrong.jpg
          amiri-wrong.jpg
          9 kB
        6. auto-kashida-wrong.jpg
          auto-kashida-wrong.jpg
          12 kB
        7. hbng-amiri.png
          hbng-amiri.png
          4 kB
        8. hbng-uthmantn1v10.png
          hbng-uthmantn1v10.png
          3 kB
        9. kashida.cpp
          0.3 kB
        10. KFGQPC-font-correct.jpg
          KFGQPC-font-correct.jpg
          8 kB
        11. KFGQPC-font-wrong.jpg
          KFGQPC-font-wrong.jpg
          11 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ritt.ks Konstantin Ritt
              munzirtaha Munzir Taha (منذر طه)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes