Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0, 6.8.1
-
None
-
Windows 11 - Qt 6.8.1 msvc2022_64
Description
On Windows, Text doesn't render surrogate pairs after some point (like flags) with the official Google Emojis fonts.
A test example is in attachements:
- Emojis fonts come from Google fonts
Flags are recognized so it should be supported.
- In the test example, select 'Noto Color Emoji' (by the way sometimes, when switching font, the FontDialog recenter automatically that should not happens)
- Also tried without success with https://github.com/googlefonts/noto-emoji/tree/main/fonts while flags seems to be taken account (https://github.com/googlefonts/emoji-metadata/blob/main/emoji_16_0_ordering.json#L33150)
// code placeholder import QtQuick import QtQuick.Dialogs import QtQuick.Layouts Window { width: 640 height: 480 visible: true title: qsTr("Hello World") ColumnLayout{ anchors.centerIn: parent Text{ text: '🏁/💩/🇧🇿/🇩🇪' font: fontDialog.selectedFont color: 'black' } Text{ text: String.fromCodePoint(0x1F3C1)+"/"+ String.fromCodePoint(0xd83d, 0xdca9)+"/" + String.fromCodePoint(0x1F1E7, 0x1F1FF) + '/'+String.fromCodePoint(0x1F1E9,0x1F1EA) font: fontDialog.selectedFont color: 'black' } } FontDialog{ id: fontDialog Component.onCompleted: open() } }
Btw on Linux (Ubuntu 22.04, Qt6.8.0), no systems font print characters. It is always ' / / / /'