You are not logged in.

#1 2013-04-16 14:40:40

tilde
Member
Registered: 2013-04-16
Posts: 7

[SOLVED] Firefox ugly font rendering

Hello,
straight to the point



Chrome:
http://i.imgur.com/GpjpYqo.png


Firefox:
http://i.imgur.com/PYH7pua.png

This happens only on some websites, and the workarounds found in the wiki articles[1] don't work for me.


I don't know if this is helpful, if you need more information just ask:

ls /etc/fonts/conf.d
10-autohint.conf                       20-unhint-small-vera.conf     40-nonlatin.conf   51-local.conf             60-latin.conf          80-delicious.conf
20-unhint-small-dejavu-sans.conf       29-replace-bitmap-fonts.conf  45-latin.conf      57-dejavu-sans.conf       65-fonts-persian.conf  90-synthetic.conf
20-unhint-small-dejavu-sans-mono.conf  30-metric-aliases.conf        49-sansserif.conf  57-dejavu-sans-mono.conf  65-nonlatin.conf       README
20-unhint-small-dejavu-serif.conf      30-urw-aliases.conf           50-user.conf       57-dejavu-serif.conf      69-unifont.conf

I don't have any fonts/local.conf nor .fonts.conf in ~.


Someone knows how to troubleshoot/resolve this?

Thanks

[1]
https://wiki.archlinux.org/index.php/Firefox
https://wiki.archlinux.org/index.php/Firefox_Tweaks

Last edited by tilde (2013-04-17 08:44:32)

Offline

#2 2013-04-16 14:58:21

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Firefox ugly font rendering

Looks like you want these fontconfig options, from Infinality's config:

    <!-- Prevent Gnome from using embedded bitmaps in fonts like Calibri -->
    <match target="font">
        <edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit>
    </match>

    <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
    <match target="font">
        <selectfont><rejectfont><pattern>
            <patelt name="scalable"><bool>false</bool></patelt>
        </pattern></rejectfont></selectfont>
    </match>

    <!-- Substitute truetype fonts for bitmap ones -->
    <match target="font">
        <edit name="prefer_outline"><bool>true</bool></edit>
    </match>

Offline

#3 2013-04-16 15:24:28

tilde
Member
Registered: 2013-04-16
Posts: 7

Re: [SOLVED] Firefox ugly font rendering

Thanks for the reply.

I applyed that configuration in /etc/fonts/local.conf, the page rendering remains the same, i know for sure it was applied since my terminal is screwed up (I use GohuFont).
Do i need to install something? I only have

pacman -Qs ttf
local/ttf-dejavu 2.33-4
    Font family based on the Bitstream Vera Fonts
    with a wider range of characters

and

ls .fonts 
baekmuk  gohufont  inconsolata  kochi

Offline

#4 2013-04-16 16:52:46

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,168

Re: [SOLVED] Firefox ugly font rendering

tilde, welcome to the forums.

Please read the forum rules here. Especially this section. Edit your post and make the necessary changes.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2013-04-16 17:13:47

tilde
Member
Registered: 2013-04-16
Posts: 7

Re: [SOLVED] Firefox ugly font rendering

Inxsible wrote:

tilde, welcome to the forums.

Please read the forum rules here. Especially this section. Edit your post and make the necessary changes.

thanks, edited

Offline

#6 2013-04-16 17:15:09

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: [SOLVED] Firefox ugly font rendering

Offline

#7 2013-04-16 17:17:08

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Firefox ugly font rendering

tilde wrote:

Do i need to install something?

How about more Truetype fonts? Firefox can only use the fonts that you have on your system, unless the font is provided as part of the web page data.

Offline

#8 2013-04-16 17:17:10

tilde
Member
Registered: 2013-04-16
Posts: 7

Re: [SOLVED] Firefox ugly font rendering

jakobcreutzfeldt wrote:

see

tilde wrote:

This happens only on some websites, and the workarounds found in the wiki articles[1] don't work for me.

Offline

#9 2013-04-16 17:19:42

tilde
Member
Registered: 2013-04-16
Posts: 7

Re: [SOLVED] Firefox ugly font rendering

brebs wrote:
tilde wrote:

Do i need to install something?

How about more Truetype fonts? Firefox can only use the fonts that you have on your system, unless the font is provided as part of the web page data.

I just installed

local/freetype2-ubuntu 2.4.11-1

to no avail. Do i have to configure firefox or the system to use them instead of the current one? I find the docs rather confusing on this point.

Offline

#10 2013-04-16 18:09:35

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Firefox ugly font rendering

freetype2 is the font rendering library software, it does not provide any fonts.

You want packages which install truetype fonts.

Offline

#11 2013-04-17 07:44:24

tilde
Member
Registered: 2013-04-16
Posts: 7

Re: [SOLVED] Firefox ugly font rendering

brebs wrote:

freetype2 is the font rendering library software, it does not provide any fonts.

You want packages which install truetype fonts.

Sorry, i meant

local/ttf-ubuntu-font-family 0.80-4
    Ubuntu font family

Offline

#12 2013-04-17 08:44:03

tilde
Member
Registered: 2013-04-16
Posts: 7

Re: [SOLVED] Firefox ugly font rendering

Ok, i played around and in the end I installed

local/ttf-win7-fonts 7.1-3
    Microsoft Windows 7 TrueType Fonts

(if someone else gonna do it, read the PKGBUILD and be sure to have a windows 7 installation running or install media at hand)

and used these configs based on infinality https://github.com/bohoomil/fontconf/

Now everything is beautiful, thank you all for the help.

Offline

#13 2014-08-30 20:33:39

Fincer
Member
Registered: 2014-05-18
Posts: 21

Re: [SOLVED] Firefox ugly font rendering

brebs wrote:

Looks like you want these fontconfig options, from Infinality's config:

    <!-- Prevent Gnome from using embedded bitmaps in fonts like Calibri -->
    <match target="font">
        <edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit>
    </match>

    <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
    <match target="font">
        <selectfont><rejectfont><pattern>
            <patelt name="scalable"><bool>false</bool></patelt>
        </pattern></rejectfont></selectfont>
    </match>

    <!-- Substitute truetype fonts for bitmap ones -->
    <match target="font">
        <edit name="prefer_outline"><bool>true</bool></edit>
    </match>

Thanks for sharing this! Your solution works almost perfectly. However, I get regularly the following terminal output (warning messages):

Fontconfig warning: "local.conf", line 36: No <test> nor <edit> elements in <match>

...which Should be simple to fix. However, forgive me. I'm not very familiar with the code itself. Any quick help is appreciated.

The problematic code string states as follows:

    <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
    <match target="font">
        <selectfont><rejectfont><pattern>
            <patelt name="scalable"><bool>false</bool></patelt>
        </pattern></rejectfont></selectfont>
    </match>

Offline

#14 2014-08-30 21:49:35

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Firefox ugly font rendering

Follow the obvious link in my sig, look at my current config, note the change:

<!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
<selectfont><rejectfont><pattern>
	<patelt name="scalable"><bool>false</bool></patelt>
</pattern></rejectfont></selectfont>

Offline

#15 2014-08-31 08:07:07

Fincer
Member
Registered: 2014-05-18
Posts: 21

Re: [SOLVED] Firefox ugly font rendering

@brebs

Thanks, works like a charm!

Offline

#16 2017-04-13 19:37:02

XeoNoX
Member
Registered: 2017-04-13
Posts: 1

Re: [SOLVED] Firefox ugly font rendering

got it installed on ubuntu using these instructions and some of the info in this thread.
https://www.linuxbabe.com/desktop-linux … ogle-fonts

thanks guys my eyes were killing me in firefox and i thought it was the monitor brightness for the longest time until i read a thread about firefox and its crappy stock fonts.

Last edited by XeoNoX (2017-04-13 19:47:33)

Offline

#17 2017-04-13 20:04:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,370
Website

Re: [SOLVED] Firefox ugly font rendering

These aren't the Ubuntu boards and we don't register just to necrobump: https://wiki.archlinux.org/index.php/Co … bumping.22


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB