Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2017 11:58:15 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Brett Wiggins <s3682305@student.rmit.edu.au>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: trying to get fonts working in X11
Message-ID:  <vaht-jqrc-wny@FreeBSD.org>
In-Reply-To: <CA%2B3bzRKcmPDK8WGC8mk0uF5YwdvHyzPjuRC1xbZoA134E7ts7w@mail.gmail.com> (Brett Wiggins's message of "Wed, 29 Nov 2017 17:57:03 %2B1100")
References:  <CA%2B3bzRKcmPDK8WGC8mk0uF5YwdvHyzPjuRC1xbZoA134E7ts7w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Brett Wiggins <s3682305@student.rmit.edu.au> writes:

> Is the ownership of the directories or files a problem? I changed all of
> the directories to 777 but that doesn't seem to do anything. I have run
> xset on every directory, but in my dekstop applications such as firefox,
> the text is still hard to read. Below is info regarding my system. Any help
> would be appreciated.

Firefox via Pango uses fontconfig. While "xset fp" or FontPath in
xorg.conf are still supported they rarely look good. Check fc-list or
fc-match instead. For one, to replace default sans-serif font try

$ mkdir -p ~/.config/fontconfig/conf.d/
$ cat <<EOF >~/.config/fontconfig/conf.d/50-local.conf
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">

<fontconfig>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Roboto</family>
    </prefer>
  </alias>
</fontconfig>
EOF

$ fc-match sans
Roboto-Regular.ttf: "Roboto" "Regular"

$ firefox https://en.wikipedia.org

Read fonts-conf(5) manpage for more details.

If a web page still uses a different font open "Inspect Element", check
what CSS rule requested and adjust fontconfig. For one, you can configure
for Arial to be displayed as Roboto. ;)

Removing unused fonts is another option.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vaht-jqrc-wny>