From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: How to get the actual face attribute? Date: Mon, 22 Jun 2020 12:15:26 -0500 Message-ID: References: <60C41409-88B0-4F21-AC6D-2F18394A7C46@gmail.com> 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="89127"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Yuan Fu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 22 19:16:49 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 1jnQ3s-000N5y-PI for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Jun 2020 19:16:48 +0200 Original-Received: from localhost ([::1]:60196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnQ3r-0004Cf-Qk for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Jun 2020 13:16:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnQ3M-0004CL-BS for help-gnu-emacs@gnu.org; Mon, 22 Jun 2020 13:16:16 -0400 Original-Received: from beige.elm.relay.mailchannels.net ([23.83.212.16]:58653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnQ3K-0004bj-2q for help-gnu-emacs@gnu.org; Mon, 22 Jun 2020 13:16:16 -0400 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0256F7E1924; Mon, 22 Jun 2020 17:15:30 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (100-96-6-17.trex.outbound.svc.cluster.local [100.96.6.17]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 06E047E08DE; Mon, 22 Jun 2020 17:15:28 +0000 (UTC) X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.8); Mon, 22 Jun 2020 17:15:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Illegal-Duck: 6e8dc5ed5d4afaa0_1592846129695_4075738316 X-MC-Loop-Signature: 1592846129695:329437300 X-MC-Ingress-Time: 1592846129695 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wGteUpTpKYXiEsaiUBflxIw8rbfnO47oQUuawcD48mM=; b=Bw8fsTLVnXEbtE+FMYWyeGanH nS93xh+2nNXbm/Wf+kRJnEKocIUd7a9hpMCyFNs6x0mUghmjT4O7PZMRkaPEUnpva+aI2TiIv01zl hHnKUOr9fygH4Of826gFEmNVKSUnHuOJE4n4wlHCNuwprHEZp6r2FrTRpfQ6rzakBfO2K3ddE+uGg 1ExtzBeGWxob9wXQ6Is0RwJ6BOT3dqHxgX4+Isw3REQTFYWmxzQP32blzC+HnXUXqknqX78ELEX3h Xp78ev4cKf9NclJ71eYAxGTQJH0gfRBzAfUue8RbkC9aWenMGJw2NVVt7HDtqDyycht/Cfcn0axyK LNvYoBwVw==; Original-Received: from mobile-107-92-61-121.mycingular.net ([107.92.61.121]:41790 helo=macbook-pro.localdomain) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jnQ2Z-0004S6-Sy; Mon, 22 Jun 2020 13:15:27 -0400 In-Reply-To: X-Mailer: Apple Mail (2.3608.80.23.2.2) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com Received-SPF: pass client-ip=23.83.212.16; envelope-from=pedz@easesoftware.com; helo=beige.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 13:15:30 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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:123418 Archived-At: > On Jun 22, 2020, at 12:00 PM, Yuan Fu wrote: >=20 >=20 >=20 >> On Jun 21, 2020, at 11:54 AM, Stefan Monnier = wrote: >>=20 >>> When writing my package I need to get height of the face at point. >>=20 >> Note that there may be simultaneously several different such heights = if >> point is shown simultaneously in different frames. >>=20 >=20 > Thanks. Unfortunately I think I asked an x-y question. What I really = want to know is the width of the glyph and I thought I can just multiply = the height factor to the original width of the glyph. It seems not to be = the case. The multiplied result doesn=E2=80=99t match with the width on = glass. More precisely :height * glyph width !=3D posn of point after - = posn of point. Is this expected? >=20 > Also I can=E2=80=99t use posn for calculation since sometimes the text = might not be on screen.=20 It might help to explain what the bigger objective is.=