From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Accessing rendered image data Date: Tue, 28 Jun 2016 21:51:33 +0300 Message-ID: <83furxw3ii.fsf@gnu.org> References: <83r3bhw7km.fsf@gnu.org> <83mvm5w5fi.fsf@gnu.org> <83k2h9w4wn.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1467139975 26744 80.91.229.3 (28 Jun 2016 18:52:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 18:52:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 20:52:54 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bHy7x-0003Ib-G2 for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 20:52:53 +0200 Original-Received: from localhost ([::1]:38884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHy7w-0002Eb-Ux for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 14:52:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHy7N-0001bJ-Ns for emacs-devel@gnu.org; Tue, 28 Jun 2016 14:52:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHy7I-0001mt-Ke for emacs-devel@gnu.org; Tue, 28 Jun 2016 14:52:17 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHy7I-0001mp-HV; Tue, 28 Jun 2016 14:52:12 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4523 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bHy7F-00086V-MI; Tue, 28 Jun 2016 14:52:12 -0400 In-reply-to: (message from Lars Magne Ingebrigtsen on Tue, 28 Jun 2016 20:35:53 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204890 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Tue, 28 Jun 2016 20:35:53 +0200 > > Oh, I see... find-font doesn't return a font object, but a font entity > object... And 'face (:font... wants a font object? Is that the > problem? Not according to documentation: ‘:font’ The font used to display the face. Its value should be a font object. *Note Low-Level Font::, for information about font objects, font specs, and font entities. When specifying this attribute using ‘set-face-attribute’ (*note Attribute Functions::), you may also supply a font spec, a font ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ entity, or a string. Emacs converts such values to an appropriate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ font object, and stores that font object as the actual attribute ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value. 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. Specifying this attribute also changes the values of the ‘:family’, ‘:foundry’, ‘:width’, ‘:height’, ‘:weight’, and ‘:slant’ attributes. So maybe you should use set-face-attribute, and only it.