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

Can't input characters from the private use area into a QTextEdit with the Unicode Hex Input keyboard on Mac OS X

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.3, 5.9.0 Beta 2
    • 4.6.2, 4.7.0, 5.8.0 Alpha
    • GUI: Text handling
    • None
    • Mac OS X
    • macOS
    • 7896ae052ad2c0c6ae2ebfc64cc2f525185198a8 (qtbase, 5.8), 97e4d5d5aeb0d415db18c075f905763ae5ba5f18 (qtdeclarative, 5.8), 551ee69d6ab42a3801ebbbed6c8c547dcbdcc43f (qtbase, 5.6), dc5efbfd03e00c075ff90a8366d341ee15f0b5be (qtdeclarative, 5.6)

    Description

      Our application uses a custom font with glyphs in the Unicode private use area from E000 onwards. I've attached a copy to this entry, though it's also freely available here: http://www.smufl.org/fonts/.

      You can't use the 'Unicode Hex Input' input source to add characters in this range with QTextEdit.

      STEPS TO REPRODUCE
      1. Install the attached Bravura Text font.
      2. Go to System Preferences > Keyboard > Input Sources.
      3. Ensure that 'Unicode Hex Input' is in the list (use '+' to add it if not).
      4. Build and run the attached test app.
      5. Choose 'Bravura Text' from the font combo.
      6. Switch to 'Unicode Hex Input' input source.
      7. Hold down Alt and type E832.

      EXPECTED: A 'guitar shake' glyph is added (see here: http://www.smufl.org/version/latest/glyph/guitarShake/)

      ACTUAL: Nothing happens.

      To confirm that this works with things in the normal unicode range, try something from the normal unicode range, e.g. Alt+2660 (playing card spade suit). There's no glyph for this in our font, but Qt will correctly substitute another font, and the glyph will be inserted.

      Attachments

        1. BravuraText.otf
          1.23 MB
        2. text-edit-test.zip
          2 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
              jlarcombe James Larcombe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes