Emojis not displayed in text fields in Inkscape 1.2.2 on Ubuntu 23.10

Summary:

When I try to insert an emoji into a text field, it doesn't display and is just replaced with a random character.

For instance, when I try to paste a 💩 emoji, it is randomly replaced with what looks like a Japanese yen symbol (¥)

It doesn't matter what font is used, or which emoji is entered. All emojis are replaced with random character that is not the emoji itself (it is a different random character for each emoji. For instance, 🤖 is replaced by the type of lowercase f that would be used when writing a mathematical function --> ƒ (U+0192)

Steps to reproduce:

  • open Inkscape
  • create a new image
  • add a text field in the image
  • copy an emoji from emoji selector app, web browser, etc (doesn't matter where you copy emoji from - never works)
  • paste emoji into text field

What happened?

Emoji was replaced with random incorrect unicode character.

Screenshot_20240317_003500_-_New_document_3-_Inkscape

What should have happened?

The image pasted above should have a picture of 💩 instead of ¥

Sample attachments:

buggy_emoji.svg

Version info

Inkscape 1.2.2 (b0a8486541, 2022-12-01)

    GLib version:     2.78.0
    GTK version:      3.24.38
    glibmm version:   2.66.6
    gtkmm version:    3.24.8
    libxml2 version:  2.9.14
    libxslt version:  1.1.35
    Cairo version:    1.18.0
    Pango version:    1.51.0
    HarfBuzz version: 8.0.1

    OS version:       Ubuntu 23.10


To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information