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: Mon, 22 Jun 2020 15:07:20 -0400 Message-ID: <605AD9C9-3F80-48AC-9990-972622425AAB@gmail.com> References: <60C41409-88B0-4F21-AC6D-2F18394A7C46@gmail.com> <41A32155-634A-4D5A-A878-2F92E6761917@gmail.com> <83lfkfszsq.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="74593"; 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 Mon Jun 22 21:07:45 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 1jnRnF-000JKN-5D for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Jun 2020 21:07:45 +0200 Original-Received: from localhost ([::1]:47548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnRnE-0002SH-3I for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Jun 2020 15:07:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnRmv-0002SA-LM for help-gnu-emacs@gnu.org; Mon, 22 Jun 2020 15:07:25 -0400 Original-Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:35111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnRmu-0004rw-6h; Mon, 22 Jun 2020 15:07:25 -0400 Original-Received: by mail-qt1-x834.google.com with SMTP id z1so13519292qtn.2; Mon, 22 Jun 2020 12:07:23 -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=bNMoDnacAElecnOaPajsXi92Qoy7j2TkyzRD90dJbCM=; b=N92++UnRV6oViTv4p4BPN4PpVKvmjb9bn1z0T8RTUqd54Pm/LAMYzlcLKe0c3hSpb/ LyuzXSfRzGFAx0Bndq5yHFk4cnZfThYErn1TtgMrwboZ/li+7g59O6l6qzspJpa8V1ed ++viISdlWF3DEoSkgg/onGCn0+O0rTPuwRX1N1U0euheCEtcIzo9uIfDlwRUstVAaynX dJcO9b8xfOMQPDftUfNG2ioNGftuHb+Syv2fPR6yav/1fjhgQPTB/iLlizwebN9Kw2ba vrgQIpSuqEev2N9p3iZLIfc8XvagqCSZtJKXoTKfB1rOElHWos11QubytTeK2vONeb2n fvow== 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=bNMoDnacAElecnOaPajsXi92Qoy7j2TkyzRD90dJbCM=; b=DMy+ZQ+fxwXBBz2epyfiJCJaB7y10uXb9AeR5+wm2YJMbhsyIBa7qK4CC0yCKtIeu5 oepPWXKSLDZRZaci/g2SKp1Im1/y0DfyOFuAN/DLiEGRSm4ukBo/WYSBsBtAXT3m7lOo xYD9kDPxW1TvmKdnAJ72rhjVjo8E46Scvudm7bEqX63bvUmujRmKrpV/mgnhjjW+BZHt CdHqW3OQA6RTdO51zvp5ZbtB7CNT6YT88FzEY7neaVy5Kw42vVpjQ48v4GIodopDUzgf CakAj6Qt5tYkd0EBahWJkr4odSc/dCnDfc/onuSGRtZ+y3wuKVPgPb8tfhcj/57iyBoA wjSA== X-Gm-Message-State: AOAM532i+fxyfGeLUdSKfzQ6iBIPkLF132PoRxUP9gSNlUzlDtEpzmx8 upmmHwyoyNScwDHsiKVOr0Zw7VImPUt/lQ== X-Google-Smtp-Source: ABdhPJwrBYmiw+miJHrxqs9G+Hj3wtMqz3ODqPC062/nNWnfrtgtrzDqh31BGCIVfa1KFFSt8jGQgA== X-Received: by 2002:ac8:1a0f:: with SMTP id v15mr7498877qtj.136.1592852841994; Mon, 22 Jun 2020 12:07:21 -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 l67sm4847521qkd.7.2020.06.22.12.07.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2020 12:07:21 -0700 (PDT) In-Reply-To: <83lfkfszsq.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::834; envelope-from=casouri@gmail.com; helo=mail-qt1-x834.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:123422 Archived-At: >=20 > Did you try using window-text-pixel-size? >=20 That requires the buffer to be in a live window so I decided to roll my = own measuring function. Now it seems changing my package=E2=80=99s = design to accommodate that will work better than using my custom = function. (Posn can=E2=80=99t work because it requires all the text to = be on glass, which my package can=E2=80=99t work with.) Thanks! Yuan=