Giter Club home page Giter Club logo

Comments (9)

 avatar commented on July 28, 2024

Do you have some application installed to test emojis in Gnome notifications? I'm using Telegram Desktop with native notifications enabled in the settings. I remember that emojis didn't work after installing fontconfig-enhanced-defaults and fontconfig-font-replacements, but I made some changes since then and now they do work again. The changes I made were not meant to fix the emoji issue, but if you could confirm that emojis don't appear in Gnome notifications on your system I might be able to help you. However, I must note that not all emojis are displayed in color on this page on my system, so some font replacements seem to interfere with this.

from fedora-better-fonts.

 avatar commented on July 28, 2024

What might just be enough is editing /etc/fonts/conf.d/52-latin-free.conf to include <family>emoji</family> as the second option for serif and non-serif. This should default to Noto Color Emoji (at least it does on my system). Otherwise just set it to <family>Noto Color Emoji</family> or your personal favorite. Just don't put it as the first option, as this might give issues. The relevant part:

  <!-- ## serif ## -->
  <alias>
    <family>serif</family>
    <prefer>
      <family>Noto Serif</family>
      <family>emoji</family>
      <family>DejaVu Serif</family>
      <family>Tinos</family>
      <family>Liberation Serif</family>
      <family>Nimbus Roman</family>
    </prefer>
  </alias>
  <!-- ## sans-serif ## -->
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Noto Sans</family>
      <family>emoji</family>
      <family>Arimo</family>
      <family>Liberation Sans</family>
      <family>DejaVu Sans</family>
      <family>Nimbus Sans</family>
      <family>Open Sans</family>
    </prefer>
  </alias>

from fedora-better-fonts.

goncalossilva avatar goncalossilva commented on July 28, 2024

Thanks! Unfortunately, no dice. I still see no emojis in Gnome itself (tried the Characters app and GPaste's gnome shell extension), just blank space.

What's interesting is that I see all colored emojis in the page you linked when I have this installed. When I don't, they're all black and white.

So, the current status is:

  • With this installed, I see no color emojis (just blank space) in Gnome apps, colored emojis here.
  • With this uninstalled, I see color emojis in Gnome apps, black and white emojis here.

Very unsure what's going on...

from fedora-better-fonts.

 avatar commented on July 28, 2024

What happens if you remove fontconfig-enhanced-defaults? Because I did those enhancements myself, so that might be it. Maybe it’s the setting for bitmap fonts. I'll tell you what to change if it works.

from fedora-better-fonts.

goncalossilva avatar goncalossilva commented on July 28, 2024

Yeah, removing fontconfig-enhanced-defaults brings back emojis in Gnome apps πŸ˜„

from fedora-better-fonts.

 avatar commented on July 28, 2024

Nice. What you're missing now is proper cleartype-like rgb antialiasing. It's either disabled, or you should see obvious color fringing around text edges. The easiest way to enable it again is to install fontconfig-enhanced-defaults again and edit /etc/fonts/conf.d/10-enhanced-defaults.conf by removing this part:

<edit mode="assign" name="embeddedbitmap">
            <bool>false</bool>
</edit>

This is not what I did, but that would require creating multiple files and symbolic links, so this is easier to explain. I think you can do ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/ to replace the missing part without losing emoji support but it's not strictly necessary. To undo, simply run rm /etc/fonts/conf.d/70-no-bitmaps.conf. Fedora does this per font in 25-no-bitmap-fedora.conf instead of for all fonts as 70-no-bitmaps.conf does.

from fedora-better-fonts.

goncalossilva avatar goncalossilva commented on July 28, 2024

Thanks @makruiten! That works. I also symlinked 70-no-bitmaps.conf, though I am unsure how this affects the end result. Chrome still uses black & white emojis, but that was the case before.

Edit: Switching the emoji font fixes Chrome, so all is working. Thanks again!

from fedora-better-fonts.

silenc3r avatar silenc3r commented on July 28, 2024

I have removed 10-enhanced-defaults.conf file from fontconfig-enhanced-defaults package and replaced it with symlinks to 10-sub-pixel-rgb.conf, 11-lcdfilter-default.conf and 70-no-bitmaps.conf. It's a bit hacky (I'm providing symlinks to files from fontconfig package) but it seems to work.

Could you please test new package to see if it fixes your problem?

from fedora-better-fonts.

goncalossilva avatar goncalossilva commented on July 28, 2024

Thanks @silenc3r. Reverted all my changes to try it out and I can confirm everything is working well in the latest version.

from fedora-better-fonts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.