all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Javier <invalid@invalid.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Fonts from specified directory
Date: Sun, 16 Sep 2018 09:43:26 +0000 (UTC)	[thread overview]
Message-ID: <pnl8ju$1aed$1@gioia.aioe.org> (raw)
In-Reply-To: mailman.838.1537085537.1284.help-gnu-emacs@gnu.org

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


       reply	other threads:[~2018-09-16  9:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.838.1537085537.1284.help-gnu-emacs@gnu.org>
2018-09-16  9:43 ` Javier [this message]
2018-09-16 13:37   ` Fonts from specified directory N. Raghavendra
2018-09-16  8:11 N. Raghavendra
2018-09-16  9:36 ` Yuri Khan
2018-09-16 13:19   ` N. Raghavendra
2018-09-16 13:40     ` Yuri Khan
2018-09-16 13:55       ` N. Raghavendra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='pnl8ju$1aed$1@gioia.aioe.org' \
    --to=invalid@invalid.invalid \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.