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

Arabic text is broken badly with some fonts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.8.4, 5.0.1
    • Fix Version/s: 4.8.6, 5.2.0
    • Component/s: GUI: Text handling
    • Labels:
      None
    • Commits:
      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
          10 kB
          Munzir Taha (منذر طه)
        2. amiri-font.ogv
          646 kB
          Ahmed Saidi
        3. amiri-font-correct.jpg
          6 kB
          Munzir Taha (منذر طه)
        4. amiri-font-wrong.jpg
          13 kB
          Munzir Taha (منذر طه)
        5. amiri-wrong.jpg
          9 kB
          Munzir Taha (منذر طه)
        6. auto-kashida-wrong.jpg
          12 kB
          Munzir Taha (منذر طه)
        7. hbng-amiri.png
          4 kB
          Konstantin Ritt
        8. hbng-uthmantn1v10.png
          3 kB
          Konstantin Ritt
        9. kashida.cpp
          0.3 kB
          Munzir Taha (منذر طه)
        10. KFGQPC-font-correct.jpg
          8 kB
          Munzir Taha (منذر طه)
        11. KFGQPC-font-wrong.jpg
          11 kB
          Munzir Taha (منذر طه)

          Issue Links

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

            Activity

              People

              Assignee:
              ritt.ks Konstantin Ritt
              Reporter:
              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