From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thomas Morgan Newsgroups: gmane.emacs.bugs Subject: bug#29630: 25.3; Unable to change fontset using :family face attribute Date: Sat, 23 Dec 2017 21:25:22 -0800 Message-ID: <87zi68elz1.fsf@ziiuu.com> References: <87d1382jnv.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 1514093056 32657 195.159.176.226 (24 Dec 2017 05:24:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Dec 2017 05:24:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: 29630@debbugs.gnu.org To: handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 24 06:24:12 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 1eSyle-0007rb-1V for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Dec 2017 06:24:10 +0100 Original-Received: from localhost ([::1]:59113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSyna-0007WK-SO for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Dec 2017 00:26:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSynV-0007Vj-9X for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 00:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSynS-0004dL-AU for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 00:26:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41175) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eSynS-0004dB-5K for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 00:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eSynR-0000Aq-Vm for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 00:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Morgan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Dec 2017 05:26: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.1514093134630 (code B ref 29630); Sun, 24 Dec 2017 05:26:01 +0000 Original-Received: (at 29630) by debbugs.gnu.org; 24 Dec 2017 05:25:34 +0000 Original-Received: from localhost ([127.0.0.1]:49856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSymz-0000A5-L7 for submit@debbugs.gnu.org; Sun, 24 Dec 2017 00:25:33 -0500 Original-Received: from mail-io0-f182.google.com ([209.85.223.182]:32840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSymy-00009t-Dj for 29630@debbugs.gnu.org; Sun, 24 Dec 2017 00:25:32 -0500 Original-Received: by mail-io0-f182.google.com with SMTP id t196so28323761iof.0 for <29630@debbugs.gnu.org>; Sat, 23 Dec 2017 21:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziiuu-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=PYZUGe2m/Ybc+YnhW4Yxbu1zs7HxZkVJPBeYbioTfJc=; b=nzKb8VnWgTDMfM7HuDKjequ35fTD3Bd0rz1BZ2VYYCJptQrd9133fx9vTyjsVfwZfW 6cECF928w4/BGNlS+m6YvtDonYTPf3YfhXvvMiWppbZpHZw2G01M2rhk9hNpNOE+kJiJ 70WJb8cJc13gtvQTYuQ8kqLGjB5Bi9uR6MDmZa8Wm5PMNMVNJXUdqo/fkERixauDkjlb oNA2HxCquM6cTUsvyPcpHzLtgjgcHxAc6oFIR56NvzGMO+1tEeeRgJ7okd0IJKKERO5V m7WLluP7bTYW7fDFB9m5m8HV2qC1DiKbU9QIrWH25905Zx7pKe5SLgLPOEwk2j3nW3p8 EQbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=PYZUGe2m/Ybc+YnhW4Yxbu1zs7HxZkVJPBeYbioTfJc=; b=kYQVHE6ov6BQ/OnySnCFs7EinUCMHWs+nMWVBW8DoyTwHoFzcev6/g7LIlgLDvM+YW oRlKu6aEzef+owBly1bfMXpJBdYaREwYFuRBhilfSqNN+fCsgTul8AMVeLbWOaS135kT pHGLnMILMFPiNbs6+p0vdx8P1DpF3WaBfOwC3x14Ij5JghKrUWETBU1rDUxfn4WZBi2N CHmRI09sT5JeEJOfMLkeLSs0G6xo0XlvBX6q0fkjm53bNVtb3zqr75MmaRuZHL3ciDLR NLFfRjBRz7vdnkVdyyvwVtNOIGseiXagi+UfWaPcbqiU4kgiS60ZzDhLIEZOfzU3tEo9 WrMA== X-Gm-Message-State: AKGB3mKyvvQmI6KnitCjzHxqnXnOYyEt3S7c6gxQa+L8N+xu4J76TkYf CDoSRLbPD8huxz4NmheTtQFs1NXw X-Google-Smtp-Source: ACJfBovgZgM/VhM6S98hWX35cfwMzP5v2JZ3XE3mMtsh2foFFHS6Q2ThtjqwaLWRjmlGEl8ISXfkkw== X-Received: by 10.107.160.145 with SMTP id j139mr23400370ioe.236.1514093126473; Sat, 23 Dec 2017 21:25:26 -0800 (PST) Original-Received: from sadr.localdomain (ip-9-214-239-173.east.us.northamericancoax.com. [173.239.214.9]) by smtp.gmail.com with ESMTPSA id a69sm7521398itc.18.2017.12.23.21.25.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Dec 2017 21:25:24 -0800 (PST) Original-Received: by sadr.localdomain (Postfix, from userid 1000) id 25EF1280931; Sat, 23 Dec 2017 21:25:22 -0800 (PST) In-Reply-To: <87d1382jnv.fsf@gnu.org> (handa@gnu.org's message of "Fri, 22 Dec 2017 00:19:16 +0900") 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:141442 Archived-At: handa writes: > Here, fontset works as just a provider of font-related properties > (family, weight, size, etc), and then, based on the selected font, a new > fontset is automatically created. This roundabout behavior was not to > break (Emacs-internal) backward compatibility by introducing the concept > of fontset. Thank you, Handa-san. (elisp)Face Attributes says this: `: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. 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. > 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. This seems to work for me with Emacs 25.3.1. To test it I started Emacs with `emacs -Q' and evaluated this in *scratch*: (progn (set-fontset-font nil 'unicode-bmp "DejaVu Sans Mono") (set-fontset-font nil 'unicode-bmp "FreeMono" nil 'append) (list (font-at 0 nil "G") (font-at 0 nil "=E2=85=81"))) (The second character is TURNED SANS-SERIF CAPITAL G, which is covered by FreeMono but not by DejaVu Sans Mono.) As expected, this was displayed in the echo area: (# #)