You are not logged in.

#1 2022-04-05 17:43:17

Kepis
Member
Registered: 2021-12-15
Posts: 105

[Solved] Firefox replacing all text shortcuts with fitting icons

I just updated firefox from 98 to 99 and suddenly all text that was a name for an emoji turned into that emoji so all pages not specifying custom text look broken the same way the browser itself is.
I don't believe they would have made such a terrible mistake, so here I post my fontconfig and a screenshot to make sure it is not my fault:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<match>
		<edit mode="prepend" name="family">
			<string>JoyPixels</string>
		</edit>
	</match>
	<match>
		<edit mode="prepend" name="family">
			<string>Font Awesome 5 Free Solid</string>
		</edit>
	</match>
	<match target="pattern">
  	<test qual="any" name="family"><string>serif</string></test>
  	<edit name="family" mode="assign" binding="same"><string>FreeSerif</string></edit>
	</match>
	<match target="pattern">
  	<test qual="any" name="family"><string>sans-serif</string></test>
  	<edit name="family" mode="assign" binding="same"><string>Exo 2</string></edit>
	</match>
	<match target="pattern">
  	<test qual="any" name="family"><string>cursive</string></test>
  	<edit name="family" mode="assign" binding="same"><string>Nova Square</string></edit>
	</match>
	<match target="pattern">
  	<test qual="any" name="family"><string>fantasy</string></test>
  	<edit name="family" mode="assign" binding="same"><string>Overpass</string></edit>
	</match>
	<match target="pattern">
  	<test qual="any" name="family"><string>monospace</string></test>
  	<edit name="family" mode="assign" binding="same"><string>FiraCode</string></edit>
	</match>
</fontconfig>

obrazek.png

Last edited by Kepis (2022-04-06 06:44:00)

Offline

#2 2022-04-05 17:48:52

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

Did you try Firefox with a new/clean profile yet?


sys2064

Offline

#3 2022-04-05 18:13:32

Kepis
Member
Registered: 2021-12-15
Posts: 105

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

Did so just now, to no result.

Offline

#4 2022-04-05 18:33:17

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

Close firefox, rename the folder '~/.mozilla' temporarily to something else and try again.

What happens if you disable the fontconfig? (Edit: Might need 'fc-cache' afterwards, not sure..).

Last edited by Maniaxx (2022-04-05 18:38:40)


sys2064

Offline

#5 2022-04-05 18:41:01

Kepis
Member
Registered: 2021-12-15
Posts: 105

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

when I comment the emoji fonts, it works as expected. I think the prepend tag has something to do with it.
There is one more weird thing - with the emoji fonts disabled, the font overall is as set by system config, Nova Square in my case. But when I use the original settings I had, the font in general is different.

Last edited by Kepis (2022-04-05 18:42:59)

Offline

#6 2022-04-05 18:42:06

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,671
Website

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

Looks like you're using a font that uses symbols for ligatures.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#7 2022-04-05 18:43:49

Kepis
Member
Registered: 2021-12-15
Posts: 105

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

Yes, FiraCode, but that I have set for monospace. Even if so, why would it make a difference with the new update?

Offline

#8 2022-04-05 22:27:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

I doubt that "plug" is a ligature - it almost looks like FF looks up the glyph names in the font descriptions for random length tokens… what's batshit crazy.
It seems to find most of them in your emoji icons, but there's eg. also https://www.compart.com/de/unicode/U+0950

Like Maniaxx I'd instinctively blame some extension, but that doesn't seem to be the case? Does this happen if you start FF in the save or the por… "private" mode?

Offline

#9 2022-04-06 06:20:32

Kepis
Member
Registered: 2021-12-15
Posts: 105

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

Yes, private mode is the same; it happens even in a new profile. The glyphs are indeed sourced from my two icon fonts mentioned above. I can see them in every part of the browser, like popup windows or internal settings and so on.

One more interesting thing I observed: the browser basically uses the emoji fonts first and then they fill the unknown letters with the default font. Meaning Joypixels has its own font for the usual alphabet, it also shows all the glyphs it has contracted from text matching their name and the same happens with Font Awesome. When there is a page with diacritics (čň...), then the only font supporting those letters is my original default - Nova Square.

Last edited by Kepis (2022-04-06 06:27:04)

Offline

#10 2022-04-06 06:41:59

Kepis
Member
Registered: 2021-12-15
Posts: 105

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

fixed by using append, also had to specify all icon fonts as they would be picked up first (IDK why):

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match>
    <edit mode="append" name="family">
      <string>JoyPixels</string>
    </edit>
  </match>
  <match>
    <edit mode="append" name="family">
      <string>Font Awesome 5 Free Solid</string>
    </edit>
  </match>
  <match>
    <edit mode="append_last" name="family">
      <string>Inconsolata Nerd Font Regular</string>
    </edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family"><string>serif</string></test>
    <edit name="family" mode="assign" binding="same"><string>FreeSerif</string></edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family"><string>sans-serif</string></test>
    <edit name="family" mode="assign" binding="same"><string>Exo 2</string></edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family"><string>cursive</string></test>
    <edit name="family" mode="assign" binding="same"><string>Nova Square</string></edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family"><string>fantasy</string></test>
    <edit name="family" mode="assign" binding="same"><string>Overpass</string></edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family"><string>monospace</string></test>
    <edit name="family" mode="assign" binding="same"><string>FiraCode</string></edit>
  </match>
</fontconfig>

Last edited by Kepis (2022-04-06 06:42:55)

Offline

#11 2022-04-06 07:08:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Solved] Firefox replacing all text shortcuts with fitting icons

Though that doesn't explain why FF translates random tokens to the glyphs w/ matching names in the fonts.
This is limited to FF and doesn't happen w/ any other application? Does it apply to the file dialogs (open/save)?

Offline

Board footer

Powered by FluxBB