You are not logged in.

#1 2023-04-28 02:03:30

spokr
Member
Registered: 2023-02-08
Posts: 8

[SOLVED] Fontconfig seems to not be respecting font-specific confs

Bit of a complicated issue here, but it all stems from the issue noted (here)[https://wiki.archlinux.org/title/Microsoft_fonts], that being Microsoft default fonts having TERRIBLE embedded bitmaps. The fix of simply disabling all embedded bitmaps works fine, except for the fact that it disables my emojis in my waybar. The emojis in my waybar are Unicode standard emojis, and the font that they default to is Noto Color Emoji, which uses an embedded bitmap to display its emojis. This being disabled, my waybar ends up being very bland and has solely plaintext. I have made .conf files both in ~/.config/fontconfig, and in conf.d, which were intended to enable embedded bitmaps specifically for Noto Color Emoji, but none of them seemed to take effect. I also tried switching it up, enabling embedded bitmaps systemwide, and disabling them specifically for Calibri and Cambria, but those specific files still didn't seem to take effect.
Here is my attempt at enabling bitmaps specifically for Noto Color Emoji, in a file called 99-FixEmoji.conf in conf.d

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="pattern">
    <test qual="any" name="family">
      <string>Noto Color Emoji</string>
    </test>
    <edit name="embeddedbitmap" mode="assign">
      <bool>true</bool>
    </edit>
  </match>
</fontconfig>

Any help would be greatly appreciated! I can also provide more context/configs if people need that.

Last edited by spokr (2023-04-28 20:28:56)

Offline

#2 2023-04-28 06:11:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Fontconfig seems to not be respecting font-specific confs

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="pattern">
    <test qual="any" name="family" compare="not_eq">
      <string>Noto Color Emoji</string>
    </test>
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
</fontconfig>

Offline

#3 2023-04-28 20:28:39

spokr
Member
Registered: 2023-02-08
Posts: 8

Re: [SOLVED] Fontconfig seems to not be respecting font-specific confs

Thank you! This solved the issue once I removed the conf file that font-manager generated smile

Offline

Board footer

Powered by FluxBB