From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: handa Newsgroups: gmane.emacs.bugs Subject: bug#29630: 25.3; Unable to change fontset using :family face attribute Date: Wed, 27 Dec 2017 21:33:04 +0900 Message-ID: <87wp18gxkv.fsf@gnu.org> References: <871sk3twx3.fsf@ziiuu.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514377940 14066 195.159.176.226 (27 Dec 2017 12:32:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Dec 2017 12:32:20 +0000 (UTC) Cc: 29630@debbugs.gnu.org To: Thomas Morgan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 27 13:32:16 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 1eUAsZ-0002zu-2z for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Dec 2017 13:32:15 +0100 Original-Received: from localhost ([::1]:59358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUAuS-0006u9-Qs for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Dec 2017 07:34:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUAuM-0006tf-Bj for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 07:34:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUAuI-0000eD-4F for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 07:34:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUAuI-0000e2-0H for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 07:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUAuH-0002Oz-Q5 for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 07:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: handa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Dec 2017 12:34:01 +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.15143780049174 (code B ref 29630); Wed, 27 Dec 2017 12:34:01 +0000 Original-Received: (at 29630) by debbugs.gnu.org; 27 Dec 2017 12:33:24 +0000 Original-Received: from localhost ([127.0.0.1]:53187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUAtg-0002Ns-4M for submit@debbugs.gnu.org; Wed, 27 Dec 2017 07:33:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUAtd-0002Nd-TC for 29630@debbugs.gnu.org; Wed, 27 Dec 2017 07:33:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUAtX-0008Ii-EX for 29630@debbugs.gnu.org; Wed, 27 Dec 2017 07:33:16 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUAtS-0008AP-20; Wed, 27 Dec 2017 07:33:10 -0500 Original-Received: from fl1-119-240-91-176.iba.mesh.ad.jp ([119.240.91.176]:42154 helo=shatin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eUAtR-0005te-F5; Wed, 27 Dec 2017 07:33:09 -0500 Original-Received: from handa by shatin with local (Exim 4.86_2) (envelope-from ) id 1eUAtM-00007N-SN; Wed, 27 Dec 2017 21:33:04 +0900 In-Reply-To: <87zi68elz1.fsf@ziiuu.com> (message from Thomas Morgan on Sat, 23 Dec 2017 21:25:22 -0800) 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:141529 Archived-At: In article <87zi68elz1.fsf@ziiuu.com>, Thomas Morgan writes: > `:font' > [...] If you specify a string, the contents of the string should > be a font name (*note (emacs)Fonts::); if the font name is an XLFD > containing wildcards, Emacs chooses the first font matching those > wildcards. [...] > Would it make sense to add the following after the quoted sentence? > You may also specify a fontset name as a string. For reasons of > backward compatibility, in the case of the `default' face this may > automatically generate a new fontset based on the family, weight, > size, and other font-related properties of the specified fontset. The generation of a new fontset happens every time you change a font of the default face; not only when you specify a fontset for :font. So, here, as an explanation of :font, I think what we have to say is that specifying a fontset name is the same as specifying a font that the fontset defines for ASCII. For instance, Even if yoy create a fontset as this name: (create-fontset-from-fontset-spec "-*-dejavu sans mono-normal-normal-normal-*-*-*-*-*-m-0-fontset-dejavu") when you do: (set-fontset-font "fontset-dejavu" 'unicode-bmp (font-spec :family "Freemono")) giving "fontset-dejavu" to :font is the same as giving (font-spec :family "Freemono"). > It would probably also be helpful to document the :fontset attribute > in the manual, if that's the proper way to specify a fontset for the > the frame's default face. I don't remember how :fontset attribute works here, sorry. :-( I tried: (set-face-attribute 'default nil :fontset "fontset-dejavu") but it seems that it has no effect?!? On the other hand, (modify-frame-parameters nil '((font . "fontset-dejavu"))) works. > > At least, calling set-fontset-font for the fontset of the current frame > > should work... and worked as far as I rememnber... but I've just found > > that this does not work with the latest Emacs?!? > > > > (set-fontset-font nil 'unicode-bmp "dejavu sans mono") > > (set-fontset-font nil 'unicode-bmp "Freemono" nil 'append) > > > > I'm now checking what is wrong. That was my misunderstanding, sorry. I have two versions of freemono fonts, ttf and otf, and Emacs (or fontconfig) found otf version, but I was expecting ttf version that has more glyphs. --- K. Handa handa@gnu.org