From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: What is a default font? Date: Tue, 3 Dec 2019 19:36:41 +0100 Message-ID: <4c86b07f-175d-f6cf-171a-b58474ab717a@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="166898"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 03 20:31:56 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icDtr-000hGu-G4 for ged-emacs-devel@m.gmane.org; Tue, 03 Dec 2019 20:31:55 +0100 Original-Received: from localhost ([::1]:57734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icDto-0007n8-TJ for ged-emacs-devel@m.gmane.org; Tue, 03 Dec 2019 14:31:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60528) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icD2d-0002Rt-5u for emacs-devel@gnu.org; Tue, 03 Dec 2019 13:36:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icD2V-0007Bq-W4 for emacs-devel@gnu.org; Tue, 03 Dec 2019 13:36:51 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:49405) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icD2V-0006sz-EN for emacs-devel@gnu.org; Tue, 03 Dec 2019 13:36:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1575398202; bh=jSe++wDT6wH0Ye6BXBuCjKToDId9N/KI9OI03ltXbUQ=; h=X-UI-Sender-Class:To:From:Subject:Date; b=ISv/yPKvIs13Ri+uehwtlBbbWK1l4qTJlO17isSo/mSYCzL7P1cN2TLIfjoOtv+Z1 YXdVCdzLqGXeyf5u2SbhRnlAwvclu4TDQUFQgUYr4JDEe4aECa9ViJGIQ6KavhT9p2 4vJOL4hFHTEI9l8WYDsy0LxxL/F65jdsg2JYk27w= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.133]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MiaYJ-1i5uxB0rW3-00fhdz for ; Tue, 03 Dec 2019 19:36:42 +0100 Content-Language: de-AT X-Provags-ID: V03:K1:bfhOGSA0YdRHnS8HvHzian8A9jisYyY+HxGsA08gsLKZiEfRAne BuW2pWWYqMIOi+ChPhbc+p93LDpajKEDoLfAZqCm6JmbhmFi8ZosXdgBDme9A8oMp+3aPOn NSUIdLA13rRgIoEVgUGS88IRFtDpo9Of+RUIyUFU7IJg4BoeSfizqZi0YiiaeALTCbZ1hLP PGVWKdI25dwf3CrEgR1Xw== X-UI-Out-Filterresults: notjunk:1;V03:K0:g97GMfjPD/c=:aNQoCoFnU0bC6HjB9K0Ilb ch0cxAPz8XXsSGwsr5D8apv5S9xis9JK+7CcOOqlfo7Ylik0kaqBJMYUkOdoXvd7CMKbzc/qz PmUmlbfRNT8niAle3TbK5M0/TEhiMybT3/995VdEJgc/X2OGip0yCZEdj4ZUAqwL+Kh01bhRy Wja4Kf2PqoRf5AfgmGD+HqMue6J6tF4OhkRyJVH+JSzF86MdLcGHoupLa/SMVbcry7rzPnK3Z iY2t/i7XJmSfDxec9dpYIxjOosDpEtSI89v76FGXs6iUXhfJVP0961X9KAERpNR2vIZwlRxN4 7utnancDwd0nQ05AXAkV90A8cdRhpcMLcRDG0Y8C0JO6pZcFyK/8b8DDUWMEH0e6iFJ55PCX4 p9Q5qVXlDJ+ROhzNAEN8HAwDA2qYa88yYDHadfZNa6BZqeUwj7J4fDTVRTiuwuAlRrjiTmrns 9a+Kh0MdpUEoDm3yhEejY1lKSw0YIyKe/cLTZ4Lf+N5W1ni7oDBmEATn6G58oz70wCAUX/X8o 4tB7NAoDIqSEzXhmPVkNG664GW4//4kJ5LnvkyLTjI4evfU6AqTjsB5f+UplFS/q+BXtKJRmm ISZskXYyr0zl24xnX70OlW9eLKSnIa1GPPoZkgj6ZlOF7kL4hIhDyHvlQOs1b8hd/Kke3a6dM /WetfHW66J0OBrL0bPzrrys5w3zoyq98VlPs3P+mDmShlg2F8pZmNhPRwW9WqCFrIYmzLX7zD +NNANhVwQSluYQX10WLIlbbJ5AfnMbLvLilT8GxGdOTxwOP7gkM0iTqplyk5+Y3sRfJNyrIk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:243081 Archived-At: I just noticed that my implementation of 'window-default-font-height' is likely wrong. The fault is all mine but I think that, in a sense, 'default-font-height', 'default-font-width', 'default-line-height' and 'face-font' are to blame as well. In particular, the 'face-font' doc-string should tell that it returns a value for the current buffer if FRAME is nil or omitted and a value for FRAME if it is non-nil, disregarding the current buffer in that case entirely. If that's the correct interpretation of that function. So far I can't make heads or tails of it. The other functions are IMO ill-specified for the case where the current buffer does not appear on the selected frame. Using values returned by 'frame-parameter', 'frame-char-height' and 'frame-char-width' in that case can be misleading and present simple guesses at the best. Personally, I would prefer two types of functions. One for getting the default face font of a buffer alone (including remapping) and one for the default face font of a frame. But I don't know enough about fonts, their remapping and their relationship to frames to tell what really makes sense here. martin