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

Soft hyphen rendered as space

    XMLWordPrintable

    Details

      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

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

          Activity

            People

            Assignee:
            vestbo Tor Arne Vestbø
            Reporter:
            broulik Kai Uwe Broulik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes