From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Use another font for some characters
Date: Sun, 02 Oct 2016 09:52:37 +0300 [thread overview]
Message-ID: <8360pbkzt6.fsf@gnu.org> (raw)
In-Reply-To: <87d1jkey8x.fsf@gmail.com> (message from Alex Kost on Sat, 01 Oct 2016 21:10:38 +0300)
> From: Alex Kost <alezost@gmail.com>
> Date: Sat, 01 Oct 2016 21:10:38 +0300
>
> Hello, in Emacs 24.5.1 (and earlier) I can use this:
>
> (set-fontset-font "fontset-default" '(#x2190 . #x2195) "Symbola")
>
> and this range of characters (which is the following arrows: ← ↑ → ↓ ↔
> ↕), is displayed using "Symbola" font.
>
> However in Emacs 25, the same set-fontset-font call doesn't take any
> visible effect – the arrow characters are still displayed with my
> default font (Liberation Mono).
Emacs 25 will use the default font for any punctuation and symbol
characters supported by that font, even if the fontset specifies
another font for them. That's because switching to another font has
some unpleasant effects, like slower redisplay, misalignment of text,
inability to compose characters, etc.
Many fonts used for the default face have good coverage of symbols and
punctuation, but don't advertise that by stating the support for the
'symbol' script in their metadata. Previously, on many systems, these
characters needed a special setup in the default fontset, for no good
reason. Now you only need to set up those which your default font
doesn't support, and for which the default fontset doesn't already
specify a font that is installed on your system.
May I ask why you don't want these characters displayed by your
default font?
next prev parent reply other threads:[~2016-10-02 6:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-01 18:10 Use another font for some characters Alex Kost
2016-10-02 4:59 ` Nikolay Kudryavtsev
2016-10-02 8:48 ` Alex Kost
2016-10-02 6:52 ` Eli Zaretskii [this message]
2016-10-02 8:46 ` Alex Kost
2016-10-02 9:22 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8360pbkzt6.fsf@gnu.org \
--to=eliz@gnu.org \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).