From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29630: 25.3; Unable to change fontset using :family face attribute Date: Sun, 10 Dec 2017 19:24:26 +0200 Message-ID: <83fu8its1h.fsf@gnu.org> References: <871sk3twx3.fsf@ziiuu.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1512926709 2406 195.159.176.226 (10 Dec 2017 17:25:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Dec 2017 17:25:09 +0000 (UTC) Cc: 29630@debbugs.gnu.org To: Thomas Morgan , Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 10 18:25:06 2017 Return-path: Envelope-to: geb-bug-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 1eO5Ld-0000NB-Pw for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Dec 2017 18:25:06 +0100 Original-Received: from localhost ([::1]:45396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO5Lj-0006M3-8K for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Dec 2017 12:25:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO5Ld-0006Lm-MO for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2017 12:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO5La-0006nD-Hj for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2017 12:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eO5La-0006n3-DS for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2017 12:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eO5La-0001Ff-73 for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2017 12:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2017 17:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29630 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29630-submit@debbugs.gnu.org id=B29630.15129266944793 (code B ref 29630); Sun, 10 Dec 2017 17:25:02 +0000 Original-Received: (at 29630) by debbugs.gnu.org; 10 Dec 2017 17:24:54 +0000 Original-Received: from localhost ([127.0.0.1]:55551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO5LS-0001FD-6j for submit@debbugs.gnu.org; Sun, 10 Dec 2017 12:24:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO5LQ-0001F1-0e for 29630@debbugs.gnu.org; Sun, 10 Dec 2017 12:24:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO5LK-0006aY-4C for 29630@debbugs.gnu.org; Sun, 10 Dec 2017 12:24:46 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO5LG-0006Xc-9V; Sun, 10 Dec 2017 12:24:42 -0500 Original-Received: from [176.228.60.248] (port=2325 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eO5LF-0006vl-Na; Sun, 10 Dec 2017 12:24:42 -0500 In-reply-to: <871sk3twx3.fsf@ziiuu.com> (message from Thomas Morgan on Sat, 09 Dec 2017 16:26:48 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140904 Archived-At: > From: Thomas Morgan > Date: Sat, 09 Dec 2017 16:26:48 -0500 > > The documentation for the :font attribute doesn't say that it can > be a fontset. But (elisp)Font and Color Parameters says the `font' > frame parameter can be the name of a fontset and the frame parameter > is "equivalent to the `font' attribute of the `default' face". So > one can infer that the :font attribute of a face can be a fontset > name. I tested this: > > (progn > (set-face-attribute 'default nil :font > "-*-liberation mono-normal-normal-normal-*-*-*-*-*-m-0-fontset-liberation") > (font-at 0 nil "a")) > > This changes the font to Liberation Mono as expected: > > # > > I also tried equivalent expressions with set-face-font and > using the fontset alias, all of which succeeded. > > The font is correct but the fontset is actually fontset-auto1, > not fontset-liberation. I'll make another report about that. > > I think the documentation for the :family attribute should be > changed to explain how to refer to a fontset if it's possible > to do that. If it's not possible to specify a fontset with the > :family attribute, the text about fontsets should be removed. Thanks, I've updated the documentation to match what the code does. I'm CC'ing Handa-san, who might know more about this, and maybe explain how to fix the code to accept fontsets as value of :family. Currently, it doesn't seem to work, and I don't know enough about this to figure out whether it ever did or was supposed to. This whole area of Emacs is awfully under-documented.