• Login
Community
  • Login

Lines containing the Unicode Word-Joiner U+2060 display oddly

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 396 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    DavidHaslam
    last edited by Mar 25, 2021, 9:43 PM

    Any line that contains the Unicode Word-Joiner U+2060 displays with a different font appearance for the whole line!

    Is this a quirk of the Scintilla engine?

    P 1 Reply Last reply Mar 25, 2021, 10:08 PM Reply Quote 0
    • P
      PeterJones @DavidHaslam
      last edited by Mar 25, 2021, 10:08 PM

      @DavidHaslam ,

      My guess would be a quirk of the chosen font, rather than the Scintilla engine. You might want to try another font.

      Hmm, actually, if I take

      xy
      x⁠y
      xy
      

      (where the second line has WJ between x and y)

      With DejaVu Sans Mono:
      0535a0d2-2a6a-4a92-87e0-0be60de34639-image.png

      Even MS notepad with Consolas has a bit of oddity (different line width, as seen by edge of selection):
      af5af08c-ac5f-47a2-9506-cb13401a388c-image.png

      According to this U+2060 compatible font list , neither of those fonts supports that codepoint. Switching to DejaVu Sans, which that page says does support it,
      b4fc285b-8809-4fd6-a957-657412aa9bb5-image.png
      … it’s much more regular. (Though I wouldn’t use a non-monospace font in Notepad++, myself.)

      So finding a monospace font from that list, or from elsewhere, that truly supports the U+2060 might help your display issue.

      A 1 Reply Last reply Mar 25, 2021, 11:13 PM Reply Quote 2
      • A
        Alan Kilborn @PeterJones
        last edited by Mar 25, 2021, 11:13 PM

        @PeterJones

        If you’re going to experiment like that, probably should do it with DirectWrite both on and off. So many choices. :-)

        P 1 Reply Last reply Mar 25, 2021, 11:30 PM Reply Quote 3
        • P
          PeterJones @Alan Kilborn
          last edited by Mar 25, 2021, 11:30 PM

          @Alan-Kilborn said in Lines containing the Unicode Word-Joiner U+2060 display oddly:

          @PeterJones

          If you’re going to experiment like that, probably should do it with DirectWrite both on and off. So many choices. :-)

          Good idea. DejaVu Sans Mono looks good when DirectWrite is turned on.
          16c00938-e6c4-46d1-8dff-3fd67e51273d-image.png

          So, the options are enabling DirectWrite, changing font, or both. :-)

          1 Reply Last reply Reply Quote 2
          4 out of 4
          • First post
            4/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors