From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rodrigo Morales Newsgroups: gmane.emacs.help Subject: Re: [Question] How to change the height of the box for unprintable glyphs? Date: Wed, 15 May 2024 16:28:35 -0500 Message-ID: <87a5kqkbng.fsf@rodrigomorales.site> References: <6aad61b5057ea92af6fd5f9daef953bc@rodrigomorales.site> <86msorj5h5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32167"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 15 23:29:07 2024 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 1s7MBP-00086C-A9 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 May 2024 23:29:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7MBA-0006sV-22; Wed, 15 May 2024 17:28:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7MB5-0006sL-HU for help-gnu-emacs@gnu.org; Wed, 15 May 2024 17:28:47 -0400 Original-Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7MB3-0003Z0-O8; Wed, 15 May 2024 17:28:47 -0400 Original-Received: from mxplan1.mail.ovh.ca (unknown [10.111.58.46]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id 4VfmYk6G42zHpvm; Wed, 15 May 2024 18:28:42 -0300 (ADT) Original-Received: from rodrigomorales.site (54.39.251.56) by DAG2EX1.mxpca1.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 15 May 2024 17:28:41 -0400 Authentication-Results: garm.ovh; auth=pass (GARM-94B001c7530c2e-5def-4a59-9d05-bd0ef3844f49, 9430FB427A4A35C8BA01D3BD7E876FFBC3E15BA8) smtp.auth=me@rodrigomorales.site X-OVh-ClientIp: 190.232.101.8 In-Reply-To: <86msorj5h5.fsf@gnu.org> X-Originating-IP: [54.39.251.56] X-ClientProxiedBy: DAG2EX1.mxpca1.local (172.16.2.11) To DAG2EX1.mxpca1.local (172.16.2.11) X-Ovh-Tracer-GUID: 8f70bd74-cbfe-4cb8-b1de-6936764b1f7f X-Ovh-Tracer-Id: 2957176105961725594 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdegkedgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffujghffffkgggtihesthdtredttddttdenucfhrhhomheptfhoughrihhgohcuofhorhgrlhgvshcuoehmvgesrhhoughrihhgohhmohhrrghlvghsrdhsihhtvgeqnecuggftrfgrthhtvghrnhepfeegveeuhffgieegteduhffhieevffeivdfhvdetjeegffevtdegffdtgeekleegnecuffhomhgrihhnpehunhhifhhouhhnughrhidrtghomhdpghhnuhdrohhrghdpfhhrvggvuggvshhkthhophdrohhrghenucfkphepuddvjedrtddrtddruddpheegrdefledrvdehuddrheeipdduledtrddvfedvrddutddurdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehmvgesrhhoughrihhgohhmohhrrghlvghsrdhsihhtvgdpnhgspghrtghpthhtohepvddprhgtphhtthhopegvlhhiiiesghhn uhdrohhrghdprhgtphhtthhopehhvghlphdqghhnuhdqvghmrggtshesghhnuhdrohhrghdpoffvtefjohhsthepmhhouddvpd Received-SPF: pass client-ip=51.161.45.254; envelope-from=me@rodrigomorales.site; helo=smtpout1.mo12.mail-out.ovh.ca X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146764 Archived-At: Eli Zaretskii writes: > Side note: IMNSHO, Unifont is a very ugly font, so I don't recommend > this solution. Thanks for the suggestion. I'm still looking for a font, Unifont is not the last decision. If you know an alternative, please let me know. This is my use case: I usually use tmux in a terminal emulator. I display the tmux status bar at the top. In order to show the most number of lines in a window, I prefer using extremely small fonts (to me, getting as much lines/information as possible in the window is more important than aesthetics). I feel that extremely small fonts bitmap fonts are easier to read than extremely small OpenType fonts. In Emacs, some characters have different height, they increase the height of the lines where they are shown. These lines with increased height make the tmux status bar not to be visible in the =*terminal*= window. This is not convenient for me because the tmux status bar contains information that I need to always see. These are the possible alternatives that I have thought: Alternative 1: Find a bitmap font that defines a glyph for most characters. [[https://unifoundry.com/unifont/index.html][Unifont]] does that. The problem is that Emacs presents [[https://lists.gnu.org/archive/html/help-gnu-emacs/2024-05/msg00242.html][this issue]] when using that font. In addition to that, the font has a single size: 16x16. I'm looking for a smaller font. Previously, I had used =5x7.bdf= from the [[https://gitlab.freedesktop.org/xorg/font/misc-misc][=misc-misc= font]]. Alternative 2: Find a way to make Emacs force a line height for all lines in a buffer regardless of the fonts that are being used. If I get to do that, I could use =5x7.bdf= in =*terminal*=, and the characters that are not defined by that font would be shown with other fonts. I don't know how to do this but I can investigate. Alternative 3: If it is not feasible to force a line height for all lines in a buffer, find a way to make Emacs use a single font in a buffer, those characters that are not supported by the font would be shown as empty boxes, these boxes shouldn't increase the line height. Thus, I would be able to use =5x7.bdf= in =*terminal*=. I know that =5x7.bdf= supports a small set of characters, so many characters would be shown as empty boxes. This wouldn't be too much of a problem because I would only use this solution when I work with ASCII characters. Please let me know your thoughts.