[CentOS] Font related problems with recent FF 60.1

Mon Jul 16 12:36:38 UTC 2018
James Pearson <james-p at moving-picture.com>

Kay Schenk wrote:
> 
> When I start FF from command line, I'm getting a lot of errors similar to
> these --
> 
> Gtk-Message: Failed to load module "canberra-gtk-module"
> Gtk-Message: Failed to load module "pk-gtk-module"
> Gtk-Message: Failed to load module "canberra-gtk-module"
> Gtk-Message: Failed to load module "pk-gtk-module"
> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84:
> Having multiple <family> in <alias> isn't supported and may not work as
> expected
> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84:
> Having multiple <family> in <alias> isn't supported and may not work as
> expected
> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93:
> Having multiple <family> in <alias> isn't supported and may not work as
> expected
> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93:
> Having multiple <family> in <alias> isn't supported and may not work as
> expected
> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102:
> Having multiple <family> in <alias> isn't supported and may not work as
> expected
> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102:
> Having multiple <family> in <alias> isn't supported and may not work as
> expected
> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having
> multiple <family> in <alias> isn't supported and may not work as expected
> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having
> multiple <family> in <alias> isn't supported and may not work as expected
> 
> This version of FF doesn't seem to be happy  with my current font setup in
> CentOS 6.10. 😕

This is probably because Firefox 60.x uses its own build of gtk3 on el6 
- and I guess there is an incompatibility between gtk3 fontconfig and 
the native el6 fontconfig ?

Try editing /usr/bin/firefox and adding the line:

   export 
FONTCONFIG_FILE="$MOZ_LIB_DIR/firefox/bundled/etc/fonts/fonts.conf"

just before the 'exec' line at the end of the script

James Pearson