From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: Re: displaying missing glyphs Date: Mon, 12 Apr 2021 13:45:20 -0500 Message-ID: <86a6q31gvz.fsf@x201.butler.org> References: <86mtu72zc6.fsf@x201.butler.org> <87pmz2ux0k.fsf@eder.anydns.info> <86y2dn1ldz.fsf@x201.butler.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="23580"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 12 20:47:15 2021 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 1lW1ad-0005z4-D2 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 20:47:15 +0200 Original-Received: from localhost ([::1]:46948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lW1ac-0001Ro-6y for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 14:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lW1Z4-0001Q3-Og for help-gnu-emacs@gnu.org; Mon, 12 Apr 2021 14:45:42 -0400 Original-Received: from mail-eopbgr660131.outbound.protection.outlook.com ([40.107.66.131]:36864 helo=CAN01-QB1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lW1Ys-00076Y-Ga for help-gnu-emacs@gnu.org; Mon, 12 Apr 2021 14:45:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MREUowD5znxLDj4bcnPQnjuVxWc8+LNS4n+xhJxlfr0wr+tTlAZUKurHTqPGcAF4AdyXhrpcp/Fm+HfeQonDpmDEy3dPIUoR+Lm1y28e1BNJwdNuKNlx3OAVIwka7b2M/S5KFgyMttgxiIAx1j3E6bQwiUO8icJ2sQRg7enxCYQCLhCjBzD0tU2UUTduTKHDY3HkFUDMziKt9ElnrPxz8a84iEYfXFibTs2QvbovEUZIEpjJkSK86BUbofB8g0kbKhOrxi6TGy65dtrn16rLgb2+Rc4yrip10ZdBSxoTm6xTYFX1LR8SO/JFqDHifz9BE5pJ3JW3ffyYrskl0JlBbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WUoF4Au9k4oZKt5+kMF4WyvIh/WAStI0h/NqVVilQyE=; b=Tyj4sE8lzecUFo/KwCApxarU9OdWer6CyKdwtrV8zarpXK/vvpM3KVhlN28EAySHPEypUhI/so2DVOkgrjMi+lkfJRBAZStezZ86neF+wvEKtTXp0iWrc/O639uMbv/scOk57KI2fFl79+cHCe6A16cDC4wrXmTMoumScYJHPhtpW7aNPOSzZTcedWVYOkGxj8oyMarus1+6lT/ez0FBbaeju57M/3mKouzlYRdAcW1kd89EEc3ueLPSQDLoUmJQPR3a+//flxWhev34ne0ZtGD6tuSySStU80c27Vc9EiXE+YFwstAl87LutiIjWY5Y9HZVE9dWzD9ncYg64T3hDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WUoF4Au9k4oZKt5+kMF4WyvIh/WAStI0h/NqVVilQyE=; b=atfVE+nte0XTj1/yzQSsGOGOIrdzoD86xGpc0Q2pIRR8PAUP1jBGivlwDf01WscSGqiuA18wS7isO89tiUNyL6E/y4/I/yzgLYXEo94YyngyeH5+8Slx02sY2EpMJf6t6S1wb4l0HEWADkVjGB/IXxzA54usYpSY0fX6WaTWNFA= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=umanitoba.ca; Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) by YTOPR0101MB1387.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32; Mon, 12 Apr 2021 18:45:23 +0000 Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::12e:bd11:d786:c0e1]) by YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::12e:bd11:d786:c0e1%7]) with mapi id 15.20.4020.022; Mon, 12 Apr 2021 18:45:23 +0000 In-Reply-To: (2QdxY4RzWzUUiLuE@potatochowder.com's message of "Mon, 12 Apr 2021 10:49:52 -0700") X-Originating-IP: [45.44.33.194] X-ClientProxiedBy: MWHPR18CA0027.namprd18.prod.outlook.com (2603:10b6:320:31::13) To YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from x201 (45.44.33.194) by MWHPR18CA0027.namprd18.prod.outlook.com (2603:10b6:320:31::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16 via Frontend Transport; Mon, 12 Apr 2021 18:45:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6920fc9-ac65-4338-efc3-08d8fde3217b X-MS-TrafficTypeDiagnostic: YTOPR0101MB1387: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aWsNWbla59qjZamU7NAr30cykipwcQeCf19UlWzS/3egRg9ILNynbdyAOv3wjhP8ngLF8TEHseRIWNEG+1PSt0psA85g6CBB77uW8vgxmmhAclSvzsmaoE60iLa73l4iZZzTZpMRBmyxXew+KXziQEoPBIBPPUR2Jl8btZr9BecyEeefZVCAHLSTtOL6nYIxKAau8fKEStfPZeINnpxGmdI2dej8CyGoyLpi40GuaKf/Ld8RHYjCS44VhtAhZOfqHUWBnFXVdjodAHBK/DzlJ33WY6PCj33fuV7LdW6c5+BJ4/N+OhcOzEJtUUvNzIutBFx4uBVQJE8zLkzUvkx30qNlTtzXS76p66N7r5uAhXNHI6Fb5lMndUREhLK8T7QivsQ2eSoGu+lWxDyjhBPkH/w4ODGAnQcaamXgJMBemrhqdbj83tcxTypOWw9T1HbYGyV+mERHsnAkcRdSIs38LVeHgIMubY5oYmHWHmknQ72pBl70B0ZnA/NP8XSuMbI5gEhaZCgKGlqz6nKojVoVDyQiCRnUwddxgp8xE4QGt2BPtnI4Kld60OnYBNVrDvA54dHeqaNV3TrCHVN/ah/e8r1AYkdO6KdyqnAGJ5kcn9CWJQrQ2lvRjYGpEyp9VJGkfCu0SolV5gKRwu5RCSaSdw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(346002)(376002)(366004)(39860400002)(136003)(396003)(478600001)(6496006)(6916009)(52116002)(2906002)(86362001)(8676002)(316002)(16526019)(186003)(38100700002)(9686003)(7116003)(83380400001)(5660300002)(66556008)(38350700002)(66476007)(6486002)(66946007)(3480700007)(956004)(8936002)(44832011)(26005)(786003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?I/v7MbI7s8/nTxslQ7oFRpjMSD9YkFGtGFy/b7HamniBvevh0P9uBpvTO2zU?= =?us-ascii?Q?OF+rla8HnblYy1o21Xi1jXLl5/VY0NhZ/WHY4gcAg/egG3qEBEx1vnq3QDjI?= =?us-ascii?Q?9lbp+HpVAPEZmzW1gvHo5lOjUgJ10Geo4NjJbh2Uxt/0cEFRBbxvnko4qhO2?= =?us-ascii?Q?QKKYZYjWmzujjfCo7iz9n7BvXCaHp5Z0joSjuoFSvC+efkjdrUpkCbpELtEw?= =?us-ascii?Q?NRDJbdvzxKkZVNLu+OOBdIg9SNN4gMqeaBngtD+dvVc/wg/yLxmEOU7saV13?= =?us-ascii?Q?Z7q2JccaTU//z5jcqrSUHFkxgGOz20yzPfTLOnSxHsRABCVVWHf8wMR27aOE?= =?us-ascii?Q?vKcSAuH3SC9x3VQqV3WKyjN9ApRQbcOOKFjTKpos2p5nyLKJfcH5rNU3h4Ln?= =?us-ascii?Q?bj2N0OzWYK6VyJhFe4JOuwRggZlbJ1N4X65/42o/02hX5cwHoSjGp6yScwM6?= =?us-ascii?Q?A2i7888A7ZlN8D2kRgwTmoPinVo0Bz84bhZk6tXhcKQ6gqrvpd3KuSAZm2Fl?= =?us-ascii?Q?apKjgaw9UeEWB46FD7OMpZnBhDfVHMItWBuBjl7GGGMRLKHww12QcNSehtfj?= =?us-ascii?Q?UOZWSKvr/yTVLXQyWRZEmj8+smLIkApFSZAXUAfOfkmBDUs/AbvKfG8lCfNb?= =?us-ascii?Q?QOpM X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-Network-Message-Id: e6920fc9-ac65-4338-efc3-08d8fde3217b X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2021 18:45:23.5728 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nwFrpUcXp7rvOOl66R1JMKiuegbtjkO8s/JNzMWvAhwgswO0CwgKJEROJkwyLVHlUPQhroT3G+t8IctQGHpkVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTOPR0101MB1387 Received-SPF: pass client-ip=40.107.66.131; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-QB1-obe.outbound.protection.outlook.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no 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:128973 Archived-At: <2QdxY4RzWzUUiLuE@potatochowder.com> writes: > > On 2021-04-12 at 12:08:08 -0500, > Regarding "Re: displaying missing glyphs," > Leo Butler wrote: > >> Andreas Eder writes: >> >> > On Fr 09 Apr 2021 at 11:32, Leo Butler wrote: >> > >> >> I use `emacs -nw` inside of screen inside of uxterm. Unfortunately, many >> >> unicode glyphs are not displayed correctly (although they are if I >> >> attach the screen session in gnome-terminal, for example). >> >> >> >> In emacs/elisp, how might I override the default empty box to display >> >> something more informative? >> > >> > The problem is - most likely - a font that is not unicode capable. >> > If you set uxterm to ise the same font as gnome-terminal then it should >> > work. >> > The same combination (uxterm, screen and emacs) works perfectly well >> > here. >> >> Thanks for the suggestion. I have attached a marked-up screen shot of an >> xterm (left) and gnome-terminal running `emacsclient -nw` and showing >> the same buffer. You can see there is a noticeable clipping of some of >> the characters in the xterm. >> >> According to lsof, gnome-terminal is using >> >> /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf >> >> so the xterm has been run using >> >> xterm -fa 'DejaVuSansMono' -fs 9 >> >> (and all font-related options are commented out in ~/.Xdefaults). >> >> FWIW, this is on a debian testing system with XTERM_LOCALE=en_US.UTF-8. > > At startup time, both programs have to determine the size of a character > cell. They do so by applying some algorithm to the font(s) involved > (the maximum width of all glyphs? the average width of selected glyphs? > something else?). Evidently, xterm's algorithm doesn't account for all > the glyphs, and ends up clipping some of them, whereas gnome-terminal > has a different algorithm. That seems like a reasonable answer, although, because I am ignorant of all things font-related, I would have thought the font would have contained this information. > > You clipped the xterm and gnome-terminal windows. Are they the same > size? The two windows share 50% of the width of my screen. I used gimp to select the whole screen, but I may have missed a few pixels on the margins. Also, the WM (fluxbox) seems to create a 2-3 pixel-wide overlap for reasons that escape me and this is consistent across applications. > Does the gnome-terminal contain more pixels (because it accounts > for the wider glyphs)? xwininfo shows the left window is 2 pixels wider than the right (800 v 798). If I give each window 799 pixels, I still see the same behaviour. Leo