Skip to content
This repository has been archived by the owner. It is now read-only.

Firefox tab & URL bar font (Ubuntu) #1

edent opened this Issue Feb 25, 2016 · 7 comments


None yet
4 participants
Copy link

edent commented Feb 25, 2016

Firstly, thank you for this colour font - it works wonderfully in Firefox on Ubuntu.

The only issue is that the text on tabs, in the URL bar, menus, etc now uses a Serif font which looks a bit ugly.

Is there any way to keep the Emoji font, but have FF use a different fallback font for its application text?

Hope I've explained that well enough :-)


This comment has been minimized.

Copy link

13rac1 commented Feb 25, 2016

You're welcome! 😄 It's been a lot of work and I've learned a lot.

Oh fontconfig is so much fun! 🎉

I'm running MATE with a theme and it is using the correct font for the Firefox UI. That's my excuse for not noticing it! :) I just confirmed, it's fine in my Fedora VM also. I haven't tried it in the newest Ubuntu though.

The fonts.conf in the readme adds Emoji One Color to the sans-serif, serif and monospace lists separately, which as I understand, shouldn't change the overall font used. The font contains no letter glyphs, so the next font in the list should be used. Can you give me the list of fallback fonts for sans-serif?

Here's how to do it and the first few entries in my list are:

user@server ~ $ fc-match -s sans-serif
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "SVGinOT"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
n019003l.pfb: "Nimbus Sans L" "Regular"
Waree.ttf: "Waree" "Book"
DroidSansFallbackFull.ttf: "Droid Sans Fallback" "Regular"
KhmerOS.ttf: "Khmer OS" "Regular"
MuktiNarrow.ttf: "Mukti Narrow" "Regular"
NanumGothic.ttf: "NanumGothic" "Regular"
lohit_bn.ttf: "Lohit Bengali" "Regular"
lohit_gu.ttf: "Lohit Gujarati" "Regular"
lohit_pa.ttf: "Lohit Punjabi" "Regular"
lohit_ta.ttf: "Lohit Tamil" "Regular"
Meera_04.ttf: "Meera" "Regular"
lklug.ttf: "LKLUG" "Regular"

I had to have Emoji One Color before DejaVu since DejaVu provides a number of B&W emoji glyphs.


This comment has been minimized.

Copy link

edent commented Feb 26, 2016

Aha! I am also running MATE. Love that Cinnamon taste.

For future adventurers, I went to System Settings -> Fonts -> Default font. Then selected "Ubuntu 10".

All looking good, and no need to fiddle with command lines or config files.

@edent edent closed this Feb 26, 2016


This comment has been minimized.

Copy link

13rac1 commented Feb 26, 2016

Ok! Great! Let me know if you see anything else that needs work 👍


This comment has been minimized.

Copy link

myfreeweb commented Mar 3, 2016

For people who don't use desktop environments: this means setting your GTK font to your preferred font, not "sans-serif"


This comment has been minimized.

Copy link

13rac1 commented Mar 3, 2016

@myfreeweb 👍 Thanks!


This comment has been minimized.

Copy link

salty-horse commented Mar 13, 2016

I think you're describing the same bug as mine, which is a regression in Firefox:

13rac1 added a commit that referenced this issue Mar 17, 2016

fonts.conf: A conf making Bitstream Vera default
The DejaVu font family is based on the Bitstream Vera font family to provide
greater unicode coverage. The only way to override the emoji it includes is
to make the emoji font the primary system font. This shouldn't be a problem,
but a number of programs do not correctly use font fallback resulting in font
rendering errors everywhere: #1, #5, #16, #18, #19.

This font.conf makes Bitstream Vera the default font for Serif, Sans-Serif,
and Monospace font requests since it does not contain any Unicode Emoji
characters. Emoji One Color font is the first fallback, followed by DejaVu
to provide everything else.

Test with:
fc-match -s serif
fc-match -s sans-serif
fc-match -s monospace

May be the solution for #17

This comment has been minimized.

Copy link

13rac1 commented Mar 19, 2016

I just noticed Firefox was still using DejaVu Sans as the source for some emoji even though my new fonts.conf has it far down the list. Setting gfx.font_rendering.fontconfig.fontlist.enabled to false and restarting fixed the problem. Setting it back to true kept the new internal font list, sort of a cache clear.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.