unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Use another font for some characters
Date: Sun, 02 Oct 2016 11:46:58 +0300	[thread overview]
Message-ID: <87d1jjf88t.fsf@gmail.com> (raw)
In-Reply-To: <8360pbkzt6.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Oct 2016 09:52:37 +0300")

Eli Zaretskii (2016-10-02 09:52 +0300) wrote:

>> 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.

Ah, what a misfortune.  Then this sounds like a bug (a missing feature
rather) for me.

Just to mention: these unpleasant effects don't bother me.

> 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.

I see, thanks for the explanation, but I think there should be a way to
override the default font if a user wants to do it.

> May I ask why you don't want these characters displayed by your
> default font?

Because Symbola's arrows look much better for me!  I mean I like my
default font (Liberation) for most characters, but for some characters I
prefer to use other fonts.

Thanks again for answering.

-- 
Alex



  reply	other threads:[~2016-10-02  8:46 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
2016-10-02  8:46   ` Alex Kost [this message]
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=87d1jjf88t.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=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).