Weather icon fonts are missing in the KDE calendar widget

I added a webcal of meteomatics weather event to KDE Digital Clock widget (Default calendar widget)

noto-fonts-emoji was installed, that should support many icon fonts of weather.
But the screenshot shows some weather icons are rectangles.

Screenshot_20230317_103445

In my VM:
Screenshot_20230317_103412

I compared my VM and my system, both have the same noto-fonts-emoji and the same font configuration.

I suspect a conflict with some fonts to override noto-fonts-emoji ? :thinking:

I can reproduce this issue in my VM:

Install Gimp to break noto-fonts-emoji as it required the dependency gsfonts.

Screenshot_20230317_102143

There are some fonts-packages to break noto-fonts-emoji:

  • gsfonts (required by Gimp)
  • ttf-nerd-fonts-symbols-2048-em (Required by lsd)
  • ttf-liberation (Required by Firefox and onlyoffice-desktop)

Solution: (Not recommended)

Create a font config ~/.config/fontconfig/fonts.conf to blacklist some fonts.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <selectfont>
    <rejectfont>
      <glob>/usr/share/fonts/liberation/*</glob>
      <glob>/usr/share/fonts/TTF/*</glob>
      <glob>/usr/share/fonts/gsfonts/*</glob>
    </rejectfont>
  </selectfont>
</fontconfig>

That is not good idea.

Screenshot_20230317_114336

2 Likes

Update:

Good solution:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="pattern">
        <test name="family"><string>sans-serif</string></test>
        <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
    </match>
</fontconfig>

Screenshot_20230317_131106

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.