There are only a handful of font options when I go to the font settings in Brave, for example. I wonder if I need to install some other font packages? Are there any that are recommended?
Problem is probably missing fonts and it's using the wrong font. Installing all Microsoft fonts will probably make the website use a proper font but personally I wouldn't want to install Microsoft fonts.
I'm using chromium though and not the browsers in the op, but I've had no don't issues what so ever using noto fonts.
I had a similar problem, but it was with GitLab and only happened in Firefox. The cause was that I had installed noto-fonts-emoji but not noto-fonts. The CSS for GitLab included noto-fonts, so it was using the emoji fonts for some of the characters but not all. It ended up with weird spacing just like yours.
It looks like you already solved it, but for anyone else who encounters this problem, I'd suggest using the developer tools to inspect what font is being used to display the characters with the strange spacing. You can also pull up the CSS to see what fonts are listed there.
Until recently, I had the same issue on all phabricator sites (eg. phabricator.kde.org) in Chromium, which was very weird, because I didn't see it anywhere else. When I tried to debug it, I found out that it was because of the font order of the site's font CSS property, which was defining "Segoe UI Emoji" and "Segoe UI Symbol" first, which for some reason conflicted with my fontconfig. I have lots of overrides in my fontconfig for various emoji fonts which all redirect to "blobmoji" (Android's old Noto color emoji with blob faces) and overriding those two Segoe UI fonts totally breaks the kerning/spacing on all glyphs. The fix was to either blacklist those two fonts or not override them.
Edit: It might not be related to emoji font after all, check in developer tools what font is actually used in Github, sometime the browser doesn't use a correct sans-serif font, my issue was that my browser was using an emoji font instead of a sans-serif font, this emoji font was not rendering non-emoji text correctly. With the following fontconfig file it tells the system to use Liberation when looking for a sans-serif font. I had the issue with firefox and chromium.
I had this issue with noto emoji font, check your fontconfig for emoji fonts.
I solve it by using Twitter Color Emoji and this font config (~/.config/fontconfig/30-familydefault.conf).
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Liberation</family>
<family>Twitter Color Emoji</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Liberation</family>
<family>Twitter Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Jet Brains Mono</family>
<family>Twitter Color Emoji</family>
</prefer>
</alias>
</fontconfig>
What was happing I think is that without the Noto font that github uses I fallback on a emoji font
34 comments
This only happens in my chromium-based browsers (Vivaldi, Brave). Firefox renders fine.
Deleted before we saved it.
There are only a handful of font options when I go to the font settings in Brave, for example. I wonder if I need to install some other font packages? Are there any that are recommended?
This issue is part of the reason I switched to firefox.
lol.
I think you don't have installed minimal fonts in your system to work. It's not a problem with Vivaldi or so
I had this happen to me. The step that solved it for me was to install ttf-ms-fonts (don't forget to restart the browser).
Problem is probably missing fonts and it's using the wrong font. Installing all Microsoft fonts will probably make the website use a proper font but personally I wouldn't want to install Microsoft fonts.
I'm using chromium though and not the browsers in the op, but I've had no don't issues what so ever using noto fonts.
Out of curiosity, why the distaste for MS fonts?
No issue with Firefox and Chromium here. It may be something with your system fonts.
Install the noto fonts
From the future, this solved my problem on freshish arch (firefox wasn't displaying properly as well)
Check the rendered fonts in F12 -> Elements -> Computed
this has only happened to me after a fresh install. you need to install some fonts
I had a similar problem, but it was with GitLab and only happened in Firefox. The cause was that I had installed
noto-fonts-emojibut notnoto-fonts. The CSS for GitLab includednoto-fonts, so it was using the emoji fonts for some of the characters but not all. It ended up with weird spacing just like yours.It looks like you already solved it, but for anyone else who encounters this problem, I'd suggest using the developer tools to inspect what font is being used to display the characters with the strange spacing. You can also pull up the CSS to see what fonts are listed there.
Until recently, I had the same issue on all phabricator sites (eg. phabricator.kde.org) in Chromium, which was very weird, because I didn't see it anywhere else. When I tried to debug it, I found out that it was because of the font order of the site's
fontCSS property, which was defining "Segoe UI Emoji" and "Segoe UI Symbol" first, which for some reason conflicted with my fontconfig. I have lots of overrides in my fontconfig for various emoji fonts which all redirect to "blobmoji" (Android's old Noto color emoji with blob faces) and overriding those two Segoe UI fonts totally breaks the kerning/spacing on all glyphs. The fix was to either blacklist those two fonts or not override them.try removing
noto-fonts-emoji.That pkg has
/etc/fonts/conf.d/66-noto-color-emoji.confconfig.IMHO, quite brutal font priority binding.
Deleted before we saved it.
Edit: It might not be related to emoji font after all, check in developer tools what font is actually used in Github, sometime the browser doesn't use a correct
sans-seriffont, my issue was that my browser was using an emoji font instead of a sans-serif font, this emoji font was not rendering non-emoji text correctly. With the following fontconfig file it tells the system to use Liberation when looking for a sans-serif font. I had the issue with firefox and chromium.I had this issue with noto emoji font, check your fontconfig for emoji fonts. I solve it by using Twitter Color Emoji and this font config (
~/.config/fontconfig/30-familydefault.conf).What was happing I think is that without the Noto font that github uses I fallback on a emoji font
Install not mono-font and set in firefox
Inconsistent use of tabs and spaces!!!!
I had the same issue. But it affected random applications. uninstalling noto-fonts-emoji fixed the issue.
You're missing fonts. Other sites like the AUR will do this too... I typically just install all of the fonts with
sudo pacman -S $(pacman -Ssq ttf-)OK, I made some different selections in the browser font preferences, and things look better now. THANKS!
Perhaps post what those are to help future troubleshooters?
this is a "nvm i fixed it" moment right here
So what was the issue there?
Deleted before we saved it.
I guess I don't understand monospaced fonts then. Look how the individual letters seem fine it's the words that are oddly spaced.
It's not monospaced.