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

Soft hyphen rendered as space

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 0fe6f818d (dev), 16407d12e (tqtc/lts-6.2), f7f8274ca (tqtc/lts-5.15), b0d395e27 (6.5), 2494dd0aa (6.4)

    Description

      Soft hyphens in a Text element are rendered as spaces unconditionally on iOS rather than collapsing. The dash at the end of the line is displayed correctly. On Android and Linux the soft hyphen collapses properly when it is not supposed to wrap.

      In 5.4 the dash at the end of the line was not shown but at least the words weren't ripped apart.

      Text {
          textFormat: Text.RichText
          text: "A­very­long­word­that­should­look­like­one­word­except­where­it­may­wrap"
      }
      

      It doesn't matter whether I use ­ or a literal soft hyphen, or StyledText.

      What happens now (in 5.14/5.15) is that it wraps and shows the hypen correctly when the hypen should be shown. But it is showing it as a space when the hypen is not going to be used. This is on macOS and iOS at least.

      Attachments

        1. image-2020-09-03-10-57-02-926.png
          image-2020-09-03-10-57-02-926.png
          19 kB
        2. qtbug46990.zip
          2 kB
        3. screenshot-1.png
          screenshot-1.png
          314 kB

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              broulik Kai Uwe Broulik
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: