[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fonts from specified directory
From: |
Yuri Khan |
Subject: |
Re: Fonts from specified directory |
Date: |
Sun, 16 Sep 2018 20:40:00 +0700 |
On Sun, Sep 16, 2018 at 8:20 PM N. Raghavendra <nyraghu27132@gmail.com> wrote:
> > On fontconfig/GNU/Linux, font file locations are specified by
> > /etc/fonts/fonts.conf and configuration files included by it. See “man
> > fonts-conf” for details.
>
> Thanks for the suggestion. Yes, I can use fontconfig to do it, but it
> will force the settings on other applications too. I was wondering if
> one can specify certain font directories just for Emacs. (For example,
> one can do this with TeX and friends, by setting the environment
> variable TEXFONTS.)
Why would you want to use updated fonts in Emacs but an older version
in other applications?
Anyway, try making a custom font configuration file to the lines of
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<include>/etc/fonts/fonts.conf</include>
<dir>/foo/dejavu</dir>
</fontconfig>
and starting Emacs with the FONTCONFIG_FILE environment variable
pointing at that.