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

Rare scripts show up in wrong font/size unless font is explicitly specified



    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 6.1.1
    • Fix Version/s: None
    • Component/s: GUI: Font handling
    • Labels:
    • Platform/s:


      Just put a QLabel on a form, and paste these two characters: ठ᳹

      All software, including browsers, uses “Nirmala UI” font. Qt uses another font that has these characters, but in a bad shape. When I specify “Nirmala UI”, everything is OK.

      While experimenting, I’ve found some more artifacts. (May I call the 2nd character “umlaut”?)

      1. If you delete the letter, the umlaut stops showing at all.

      2. If you insert between the letter and the umlaut “x ” (a character from a wrong script, even Latin, and a space), umlaut turns to tofu. Space is here to make umlaut land on space, not on x. “ठx◌᳹” works somehow in browser, but does not work in other software, so we’ll not blame Qt for this.

      3. If you type ᢰ (a character from Canadian syllabics), it shows in a wrong size.

      4. If you type ᳯ, it shows up as tofu, though it’s present in the same Nirmala UI. Its Unicode type is “Letter/other”, it is not an umlaut. And again, very small tofu.

      5. If you type “◌᳹” (a normal way of displaying combining marks), large circle with small tofu.

      Again, everything of this happens when we DO NOT specify font explicitly.

      Probably these artifacts boil down to three issues.

      1. Wrong font substitution.
      2. When we typed the main character in some font, we do not check its combining marks.
      3. Sometimes we lose font size when substituting fonts.


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



            esabraha Eskil Abrahamsen Blomfeldt
            Mercury13kiev Mikhail Merkuryev
            0 Vote for this issue
            2 Start watching this issue



                Gerrit Reviews

                There are no open Gerrit changes