[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fonts from specified directory
From: |
Javier |
Subject: |
Re: Fonts from specified directory |
Date: |
Sun, 16 Sep 2018 09:43:26 +0000 (UTC) |
User-agent: |
tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) |
N. Raghavendra <nyraghu27132@gmail.com> wrote:
> Is it possible to configure Emacs to use fonts from a specified
> directory? My OS is Linux. For instance, I have downloaded a version
> of DejaVu fonts that is more recent than the one provided by the OS, and
> have installed the new fonts as, say, /foo/dejavu/DejaVu*.ttf. Is it
> possible to configure Emacs to use /foo/dejavu/DejaVu*.ttf instead of
> /usr/share/fonts/truetype/dejavu/DejaVu*.ttf?
/foo/dejavu/ should contain files fonts.dir, fonts.scale
Otherwise create them
mkfontscale /foo/dejavu/
mkfontdir /foo/dejavu/
change the font path
xset -fp /usr/share/fonts/truetype/dejavu/
xset +fp /foo/dejavu/
xset fp rehash
and try
emacs -fn fontname
The names are in fonts.dir
- Re: Fonts from specified directory,
Javier <=