From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.help Subject: Re: How to get the actual face attribute? Date: Sun, 21 Jun 2020 10:55:38 -0400 Message-ID: References: <60C41409-88B0-4F21-AC6D-2F18394A7C46@gmail.com> <83ftaov5c1.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="74870"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 21 16:56:04 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jn1O8-000JMJ-7n for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 16:56:04 +0200 Original-Received: from localhost ([::1]:59226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn1O7-0007Xy-9V for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 10:56:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jn1Nn-0007Xi-4K for help-gnu-emacs@gnu.org; Sun, 21 Jun 2020 10:55:43 -0400 Original-Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:37757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jn1Nl-0002T0-Hp; Sun, 21 Jun 2020 10:55:42 -0400 Original-Received: by mail-qv1-xf35.google.com with SMTP id y9so6810827qvs.4; Sun, 21 Jun 2020 07:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vG1dDt/IB0+HAvkCtZgKETmTpwKqgtm8ljm0sc0hIXE=; b=tvoT6B/pes6LvYRjG53/nBGkkJMLKjrBjp9cWq27G/FNL26MrBX1/M9luh+gXVXiB+ pye/sdH0RtAAsiFku05ke1bya6ukPyvLf6KynfOhX5YenLB2DXu+RSpWg9WhCC4EtkGp 8aG4SPSdZ3ABlhnWDFUDGyCygmuBSh5QTRf1Vq0n+Lo4fkebwhDmMNWd4D57vVes395i qeTUInP5GBfn8oUvB3eSFpRnowpeJaAkuvlPZkbXct1UvUrBKSdU2FNeavp32k+KdXGN IBRT1q7VgOx9/13GZ2EaB+NN7h8NixT39jUe1jzSxRNx8eoGp7DrLp3bH7lr0xuicLg2 cGdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vG1dDt/IB0+HAvkCtZgKETmTpwKqgtm8ljm0sc0hIXE=; b=IzGiuV59RQU49/2pTxcKPSHH/e3ooeWaWRTg1OjQQAG+B5T/VpUmcMCth6I20H7va2 Xb/EFq8E0rGQYanqknU1cWGRvOXYBU5W93Dm9UFp/JNvT6zxQHZ1CguEaitMIWaAcgwS l8PbAvvu/0nEKQWvd52tVHIl7a5R9bDKYl3CP7Kx9HrGgRU67SP1vqOfdTFNkVxwLMws Qh7qKMui0CirUpo7i6zn8daIcNeGj0+roujpGjxJsP1ZcVd3wfMTlVCzb+X5vAhTpddx 3jxi7a06TfJSAO87SioRHduUO303p2Ji4GVezEGcVdUBHrHfKj6G0YpaFP4ZxZVMKK6K +PPA== X-Gm-Message-State: AOAM533O/en8eMxUm21lwTrLf975LhzRWqEAIucreHXyf7FS6eQ4SWyh QQnNRnGf4iiG36neighwYrQ7UrOoK9rUtQ== X-Google-Smtp-Source: ABdhPJx/xTW2NiExV/AgOeXwNHifxg/mM7u9jAvXOk0Uy7m5TtkSXi/vnY8rCCoLCS4QCkGOOE0tCQ== X-Received: by 2002:a0c:eccd:: with SMTP id o13mr18044138qvq.49.1592751339374; Sun, 21 Jun 2020 07:55:39 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:657c:e0bd:67cd:c97? ([2601:98a:4200:9210:657c:e0bd:67cd:c97]) by smtp.gmail.com with ESMTPSA id o6sm12032140qtd.59.2020.06.21.07.55.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jun 2020 07:55:38 -0700 (PDT) In-Reply-To: <83ftaov5c1.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::f35; envelope-from=casouri@gmail.com; helo=mail-qv1-xf35.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123413 Archived-At: > On Jun 21, 2020, at 10:52 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Sun, 21 Jun 2020 00:01:37 -0400 >>=20 >> When writing my package I need to get height of the face at point. = But `face-attribute` doesn=E2=80=99t take face remapping into account, = which gives wrong answers. Is there a reliable way to get the actual = face attribute that=E2=80=99s used for display? Thanks. >=20 > =46rom Lisp or from C? =46rom Lisp. >=20 > In general, you cannot know that except by displaying that text or > emulating its display, because the face is fully realized only while > displaying text that is affected by the face. >=20 I see, then I will use some ad-hoc check to produce a mostly-right = answer. Thanks. Yuan=