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

Alignment of some unicode characters is not possible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12
    • GUI: Font handling
    • None
    • Linux/X11

    Description

      Using a monospaced font I have problems aligning some special unicode characters in applications that use Qt

      One example is this:

      N |

         |

      Replace the N with U+1D4A9 (the bugreport crashed if using the unicode characters)
      I cannot get the vertical bars to be aligned in various text editors that use Qt. I have tried Kate and Rstudio. Displaying the same text in gnome terminal
      has the bars aligned nicely so it seems to be related to the rendering in Qt. I have also tried the various "sub-1em" spaces in unicode without success.

       

      See this stackoverlflow post to get a copy paseable example: https://stackoverflow.com/questions/61121289/problems-aligning-unicode-characters-in-python

       

      I also attached a larger example text file that isn't aligned properly when displayed in Qt based editors. It renders fine in a google chrome text box or in vim inside gnome-terminal.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            rikardn Rikard Nordgren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes