Bug 487245 - Flag Emojis Doesn't work
Summary: Flag Emojis Doesn't work
Status: REPORTED
Alias: None
Product: KDE Itinerary
Classification: Applications
Component: general (show other bugs)
Version: 23.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
: 487445 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-05-19 18:36 UTC by Yaron Shahrabani
Modified: 2024-05-27 15:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Regional indicators as flag symbols instead of actual flags in Fedora (69.92 KB, image/png)
2024-05-27 06:43 UTC, Yaron Shahrabani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yaron Shahrabani 2024-05-19 18:36:34 UTC
SUMMARY
Flag Emojis appear as white squares instead of presumably Regional Indicators.

STEPS TO REPRODUCE
1. Click Plan Trip
2. Select Departure Stop
3. Click on the list of countries

OBSERVED RESULT
To the left of the country names, there will be two white squares.

EXPECTED RESULT
It should be the country flags I guess

SOFTWARE/OS VERSIONS
KDE Itinerary version: 24.02.2
Linux/KDE Plasma: Manjaro 24.0.0
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.4.0

ADDITIONAL INFORMATION
Comment 1 Volker Krause 2024-05-20 08:04:04 UTC
This is most likely a font setup/installation issue. Are you using Itinerary from distribution packages or Flatpak?
Comment 2 Yaron Shahrabani 2024-05-20 08:35:35 UTC
(In reply to Volker Krause from comment #1)
> This is most likely a font setup/installation issue. Are you using Itinerary
> from distribution packages or Flatpak?

Manjaro directly so this package: https://archlinux.org/packages/extra/x86_64/itinerary/
Comment 3 Volker Krause 2024-05-24 14:54:42 UTC
*** Bug 487445 has been marked as a duplicate of this bug. ***
Comment 4 gigastarcraft2 2024-05-24 16:04:03 UTC
(In reply to Volker Krause from comment #3)
> *** Bug 487445 has been marked as a duplicate of this bug. ***

I used flatpak.
Comment 5 Bug Janitor Service 2024-05-26 07:54:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/itinerary/-/merge_requests/307
Comment 6 Volker Krause 2024-05-26 08:37:00 UTC
Git commit 8da346c12a66b826e4966f583f60e3991e3efa36 by Volker Krause.
Committed on 26/05/2024 at 08:32.
Pushed by vkrause into branch 'master'.

Work around Emoji fonts configuration being broken in Flatpak

M  +2    -1    .flatpak-manifest.json
M  +5    -0    CMakeLists.txt
A  +26   -0    flatpak/99-noto-color-emoji.conf

https://invent.kde.org/pim/itinerary/-/commit/8da346c12a66b826e4966f583f60e3991e3efa36
Comment 7 Volker Krause 2024-05-26 10:07:04 UTC
Git commit e8f1163c06382fa4c2b179a7e0dacaca35b44136 by Volker Krause.
Committed on 26/05/2024 at 10:06.
Pushed by vkrause into branch 'release/24.05'.

Work around Emoji fonts configuration being broken in Flatpak
(cherry picked from commit 8da346c12a66b826e4966f583f60e3991e3efa36)

M  +2    -1    .flatpak-manifest.json
M  +5    -0    CMakeLists.txt
A  +26   -0    flatpak/99-noto-color-emoji.conf

https://invent.kde.org/pim/itinerary/-/commit/e8f1163c06382fa4c2b179a7e0dacaca35b44136
Comment 8 Yaron Shahrabani 2024-05-27 06:43:21 UTC
I've attached the current situation in Fedora 41 w/ KDE.

I just need to explain the background:
The app is still not translated into Hebrew, which makes sense since I only translated the trunk. However, the list of countries is translated because it's from a common source.
It looks like the regional indicators appear inside the flag instead of the flag itself.
Comment 9 Yaron Shahrabani 2024-05-27 06:43:59 UTC
Created attachment 169869 [details]
Regional indicators as flag symbols instead of actual flags in Fedora
Comment 10 Volker Krause 2024-05-27 15:05:40 UTC
Yep, that looks like essentially the same problem, it's using the wrong font for color emojis (and thus the flags). For Flatpak we could work around that by providing a correct font configuration ourselves to override what the system has, for regular distribution packages we can't do that though.

This problem should not be limited to Itinerary then though, but color emojis in other KDE apps should be affected as well.