From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.help Subject: Re: Use another font for some characters Date: Sun, 02 Oct 2016 11:46:58 +0300 Message-ID: <87d1jjf88t.fsf@gmail.com> References: <87d1jkey8x.fsf@gmail.com> <8360pbkzt6.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1475398075 9039 195.159.176.226 (2 Oct 2016 08:47:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2016 08:47:55 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 02 10:47:52 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqcQo-00006b-No for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Oct 2016 10:47:34 +0200 Original-Received: from localhost ([::1]:58609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqcQn-0000s1-EP for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Oct 2016 04:47:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqcQJ-0000pr-JH for help-gnu-emacs@gnu.org; Sun, 02 Oct 2016 04:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqcQF-0003ze-Hw for help-gnu-emacs@gnu.org; Sun, 02 Oct 2016 04:47:03 -0400 Original-Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:36803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqcQF-0003zW-8Y; Sun, 02 Oct 2016 04:46:59 -0400 Original-Received: by mail-lf0-x232.google.com with SMTP id b75so2375421lfg.3; Sun, 02 Oct 2016 01:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=yHD+oUvkduCMJt6BNae2Q9eSMiU0AIYgoPG1eRFj9NI=; b=IqeCSaW5laA3PGk1b+Dgk45zHYQT/nL2QBd9GfGGzPKJAJN6prxscx4xkxeZW+Tly4 Gv1Vo+C44QGFfZb+A/z9TpQTCMRawEFQoU8ZHjk3t8iwRD+93dzQQxMGShSeTfyhODUG Lv9w3IyqsaW7ubUiKWYR0qQEpPltFwTf8T650YdBtuV3OUCwUmhUu0EqJBSmx07H6z/5 T1Z0piG8R4+LaN5rOYELLcINjonUAnG7+Q/kb0s+xV6xlJN1H4GX2Si/7zq2SNVuCkTC bi/3f0p9rgQUEyYx31xw6PHGzEsgQBTZtBCI7WwdMJX6DI6anu648E/rC+SftRNFIkJm 2iLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=yHD+oUvkduCMJt6BNae2Q9eSMiU0AIYgoPG1eRFj9NI=; b=D0Hb3zCOxJUaA2UdAFspAvb8RKVxbGiarqh3Jcqcn542VQL4i7Vv+TiG7cmKzWfYrn Px/lSHhSy1buJPJZ9sUCmjg9KwJymQ4d/ceqJSaheDksy2jHLgiIICkOHA1k9oDI7QtC szKyqByYBYuLjYuQm3iyqXO7sODaxWWVGhRlKpvmzqKmPPGB21IILBSe+swoCuqnuvu7 Nfs+/T8u9CqXKUKqfm4Sc6pXnFiUAtPUvGrMXFtpBXg0s+ohGN40io4gUoLEBHAjQcwk TOGEbcbrbRmnHQJGvFcF3uXz9PkxmTxNxlQXNwpzO2nu3oOwd8Im30YHeGTD/1SMRKp/ mknw== X-Gm-Message-State: AA6/9Rk/3qTalhsmoTaJgFuvrNLa83Byc+eeP5agk5qJtnE/U92upNqKoDZnFXz4p2zgAQ== X-Received: by 10.25.208.7 with SMTP id h7mr6334825lfg.94.1475398017749; Sun, 02 Oct 2016 01:46:57 -0700 (PDT) Original-Received: from leviafan ([217.107.192.156]) by smtp.gmail.com with ESMTPSA id h35sm4437657ljh.38.2016.10.02.01.46.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Oct 2016 01:46:57 -0700 (PDT) In-Reply-To: <8360pbkzt6.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Oct 2016 09:52:37 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111434 Archived-At: Eli Zaretskii (2016-10-02 09:52 +0300) wrote: >> From: Alex Kost >> Date: Sat, 01 Oct 2016 21:10:38 +0300 >>=20 >> Hello, in Emacs 24.5.1 (and earlier) I can use this: >>=20 >> (set-fontset-font "fontset-default" '(#x2190 . #x2195) "Symbola") >>=20 >> and this range of characters (which is the following arrows: =E2=86=90 = =E2=86=91 =E2=86=92 =E2=86=93 =E2=86=94 >> =E2=86=95), is displayed using "Symbola" font. >>=20 >> However in Emacs 25, the same set-fontset-font call doesn't take any >> visible effect =E2=80=93 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. --=20 Alex