You are not logged in.

#1 2020-02-16 21:20:39

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

[WORKAROUND] Digits rendered as emoji digits in some applications

In some applications, digits are rendered as emojis.

There is related bug report:
https://bugs.archlinux.org/task/65485

If i remove noto-fonts-emoji, then digits rendering correctly, but if i remove it, some emojis do not render(shallow box)
How do i fix this?

I'm on KDE 5.18

Last edited by Xakep_SDK (2020-02-19 16:18:29)

Offline

#2 2020-02-16 22:55:00

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,093

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

In what applications? Which fonts are your using?

Offline

#3 2020-02-17 03:54:50

crab2313
Member
Registered: 2013-10-18
Posts: 4

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

Same problem encountered here. I fixed that by installing noto-fonts. It seems that Noto Sans is fallback to Noto Emojis after the update.

Offline

#4 2020-02-17 09:01:08

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

KNotes. example image
My font settings https://puu.sh/FbvP1/a8eea860cf.png
noto-fonts package installed, reinstall did not helped

Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2020-02-17 10:14:46)

Offline

#5 2020-02-17 09:46:55

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,093

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

Xakep_SDK wrote:

KNotes.

The knotes font can be configured separately from the system one. Which font is set in knotes configuration?

Offline

#6 2020-02-17 11:33:01

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

KNotes:
Without noto-fonts-emoji:
DejaVu Sans 10

With noto-fonts-emoji
Noto Color Emoji 10


Also Firefox renders some websites with emoji numbers
https://wiki.rpcs3.net/index.php?title= … .27s_Souls
https://puu.sh/FbxsS/5abd8e69b5.png

Firefox fonts - Standard (DejaVu Sans)

I set noto sans system wide, why firefox says it's dejavu sans?
https://puu.sh/FbxvC/f51fef6cf8.png

Last edited by Xakep_SDK (2020-02-17 11:36:42)

Offline

#7 2020-02-17 21:46:48

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,093

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

Xakep_SDK wrote:

I set noto sans system wide, why firefox says it's dejavu sans?
https://puu.sh/FbxvC/f51fef6cf8.png

The font of the websites is different from the UI font. What is the monospaced font set in firefox?

Offline

#8 2020-02-18 00:43:14

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

arojas wrote:
Xakep_SDK wrote:

I set noto sans system wide, why firefox says it's dejavu sans?
https://puu.sh/FbxvC/f51fef6cf8.png

The font of the websites is different from the UI font. What is the monospaced font set in firefox?

DejaVu Sans Mono

Offline

#9 2020-02-19 12:12:33

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

fc-match returns DejaVu Sans Book
Something really weird. Everything worked as expected before latest KDE update.
Fonts gone wrong after this update:
cat /var/log/pacman.log | grep 2020-02-15 | > ~/Desktop/update.log
output
https://gist.github.com/XakepSDK/bf9d74 … 67f6993b1f

Offline

#10 2020-02-19 14:22:53

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,093

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

This has nothing to do with KDE. The problem is that you have set Noto as your monospace font but don't have it installed - double check your font configuration.

Offline

#11 2020-02-19 15:29:49

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

This is output of fc-list, do i have noto sans mono installed?
https://gist.github.com/XakepSDK/08cc60 … 009ea0d7d0

It feels that for some reason some apps ignore KDE settings and use settings from somewhere else. Previously firefox showed, that default font is noto sans, but now it says that it's dejavu sans.
Also kwin respects selected fonts - if i change common font(topmost in kde font settings), it changes font in window decorations.

Last edited by Xakep_SDK (2020-02-19 15:34:19)

Offline

#12 2020-02-19 15:55:52

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

Manually overriding values using fontconfig config fixed issues.

Offline

#13 2020-02-20 09:07:58

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

Overriding fonts just completely broke other fonts, for example firefox couldn't use open sans, if it was used on webpage. Removing local.conf fixed issue, but emoji issue is back.
I'll try fresh arch install later.

Offline

#14 2020-02-20 14:15:12

kochanac
Member
Registered: 2020-02-20
Posts: 1

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

Removing /etc/fonts/conf.d/66-noto-color-emoji.conf (which sets Noto Color Emoji as fallback for noto family) worked for me, but i think it can be back after updates of noto-fonts-emoji

Last edited by kochanac (2020-02-20 14:18:41)

Offline

#15 2020-02-20 22:04:37

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

This is my newest local.conf(with fix for prev. issue, but i don't think it's solved sad) if someone wants
https://gist.github.com/XakepSDK/9d045c … 3b9ca5984b (xml for highlight)

Also i did this:
sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d
sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d

fc-match -s sans returns this:
user@arch /etc/fonts % fc-match -s sans             
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
... many more fonts ...
NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"

full listing:
https://gist.github.com/XakepSDK/f35acc … 19a82cd21c

Also changing append to append_last in 66-noto-color-emoji.conf fixes issue for me, even without local.conf

Last edited by Xakep_SDK (2020-02-20 23:18:00)

Offline

#16 2020-03-10 09:44:45

giddie
Member
From: Birmingham, UK
Registered: 2009-03-25
Posts: 125

Re: [WORKAROUND] Digits rendered as emoji digits in some applications

kochanac wrote:

Removing /etc/fonts/conf.d/66-noto-color-emoji.conf (which sets Noto Color Emoji as fallback for noto family) worked for me, but i think it can be back after updates of noto-fonts-emoji

Thanks; this is what fixed it for me. Additionally, I have the fontconfig-emoji-git package installed from the AUR, which performs the function that the above file should do, but without clobbering digits.

Finally, I have the following in an extra 99-bitstream-mono-emojis.conf file, to make emojis work in Konsole, where I use Bitstream Mono:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <match target="pattern">
    <test name="family">
      <string>Bitstream Vera Sans Mono</string>
    </test>
    <edit name="family" mode="append">
      <string>Noto Color Emoji</string>
    </edit>
  </match>

</fontconfig>

Offline

Board footer

Powered by FluxBB