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: Tue, 13 Apr 2021 12:00:57 -0500 Message-ID: <86lf9myv92.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37925"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 13 19:02:24 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 1lWMQg-0009lW-TZ for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 19:02:23 +0200 Original-Received: from localhost ([::1]:51356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWMQf-0006o6-SU for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 13:02:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWMPX-0006lr-Tl for help-gnu-emacs@gnu.org; Tue, 13 Apr 2021 13:01:13 -0400 Original-Received: from mail-eopbgr660131.outbound.protection.outlook.com ([40.107.66.131]:61317 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 1lWMPO-0006Vs-VB for help-gnu-emacs@gnu.org; Tue, 13 Apr 2021 13:01:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CEG7z8/OVmAVApc4GQKugzJfEPjXLr/Im4adJolp4cQrlQkXAgERlc0hKK9AzvDZfmrQbhjTidpNn7j7nloi0wTDaPp2Hs6gFUGsAgXMCvpdAqYtyrFcJOpjDYfsH/OntlH/BE75++//cEhF1hxXwQEZELbiJkx90KwBnoxh6Hrz+WPhxUDmCnrhF1PUUkg9vjrrbRpiDqKKvDn1ji80kHe3ggkWt7l8gOKSW/YPAU7AvKW8W7gwT1eVys0vNLMtfDWhQSP0cGjvFM8/yaVUjAJE4BIxqzE3N+g6aOVx6QS6LgwAwaT3KbxJkQAu2cOZ+yE8w2TYyS70XOHZJxAP1Q== 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=XJwgvoP3QoOSLXfjEiy9W7H3JTE5AHHbkpHTNDEBXms=; b=byw2oVhFzC+pQ+PpjwW7f5xdHZ07AEYGd1zdIdxdwmVjUwQkkUSyuF9U+28o3B6z8VoYQEfj1DLNpgeyfqV0RWLo1jmJzhU+LaL6n0REKtnSi8C4nFshbYLMEA5gqp6m4bkFvF5fgyvrNn4EiE11ygyVMNzHGlTlg50a4tNn1gnqaOARs2a2eeIsHTJw5qLr0nAskRU8ZwMyXexlUuaiXlppqsNgRWnAXM42urR2g6j0V17j33gLX1SUI59Wo1N9MLTIVd1dq4v6tA18eaJjW7B1E2KCc60ZyTH8j9kXtgOBBxRPEUlIZsaKufvZLwamYIURioc9kBsWvIIfq4773w== 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=XJwgvoP3QoOSLXfjEiy9W7H3JTE5AHHbkpHTNDEBXms=; b=CnQg3hiAU7uxbWb9DqvVZgkmu5/8Zo/HyU53Kt+itmJUwk7RIKPyZCQMsJWIWsQOvxKjhlvUCL8wQh4DU5Cdii89o6FlHqajJnwe+zsLVhKSdWfrfQpzXWX3BqRFa/VwRJZpkk6xYMkexHOVjkTKKU9BDl5c+YO0yQztgaN9Rj8= 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 YTBPR01MB2735.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:26::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.22; Tue, 13 Apr 2021 17:01:00 +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; Tue, 13 Apr 2021 17:01:00 +0000 In-Reply-To: (Yuri Khan's message of "Tue, 13 Apr 2021 01:32:34 +0700") X-Originating-IP: [45.44.33.194] X-ClientProxiedBy: CO2PR04CA0122.namprd04.prod.outlook.com (2603:10b6:104:7::24) 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 CO2PR04CA0122.namprd04.prod.outlook.com (2603:10b6:104:7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Tue, 13 Apr 2021 17:00:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3700bd8c-f492-44de-9a71-08d8fe9db6a9 X-MS-TrafficTypeDiagnostic: YTBPR01MB2735: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s0YDn6qMoHm/1ZoGAiM1EsiKndkrX42kiArOrFW/S0qpAOPKPLNUuRamICEN4+pPIR8KOlkShOBzufmuwz02Ogxw5R3mStlhHD7I0bP4N9D40XLlleNWKnkiNhMgUJU50d8PVpB9wCkez2uMxHCx8EnldDtKvRr7/m6caix8ncoOuzUA/hMy1gGq+f7/+pnBwR+30V3uTOT+sqor7lLXEFDW+/gXCSIbZEj2e7iY3D0gfeXMkuKtTVVyphsMviCm4pGXYWsVPhXVbSA/AQ7TvUS9T80dHyPlf4wIvCLpO7VY2a6BN0CsbqqQ0+WQwVLDzjDtI9P7tgHWHQkmCHI+H66OBkj6KSfSyfR95KhHjcps7eY4cgavhAfZsr4c2ma1CsarJNIIRuX2ZyjIznYYgZzJQ5jmPfnMynBjet11aa7j6x8nh6+a/arKiiJhE4YqSP0+sxiPT4+AF/CkLoYmnS1ya6TmKDZ6c3rqu5PSeSezXHWiA2NJ8dBu99+iaJjEruAlRvpLIos60REXdc1D9OxmziJQvWzEw5fdmPPcPDYUsaPzY7xjGfOldrhwiDiNeGHYtp9qWYgWmer68uLsKEEebfeDr7zhS7hbbuSBBrIaECdExLp5BNO9Y0vh2C0oqvLh1av5tCOfVnVX6h0g1A== 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:(376002)(346002)(396003)(39850400004)(366004)(136003)(83380400001)(478600001)(8676002)(7116003)(786003)(316002)(2906002)(956004)(4326008)(86362001)(9686003)(66556008)(3480700007)(52116002)(6496006)(44832011)(6486002)(66946007)(16526019)(186003)(26005)(66476007)(38100700002)(38350700002)(6916009)(8936002)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?M2tZbkVlc2taYVdUVVEvb0tRNENuR0FTRjFJa1c3d1NhaWZNaXk3ZGYyRVpK?= =?utf-8?B?Y3F2RWlMZXZxNlBtalFKR2NZVCtwN2Nuckx5TExIMHNPSFhvYnpPTXZJM2Nw?= =?utf-8?B?Qlcxa0FkTlNrQjVhZ3NMTW9oZHJhTjRiVGMrdTZjVGZoaGZheC9zNnNTbUZ0?= =?utf-8?B?eU41NFFaYWZHd2dzRXFBRHRCL29NK2dHUHozbFRKblJ2dkVTMVFpQWVIWjZH?= =?utf-8?B?NjQ2djZPY3dYclFTVVJsUmliTW5BR2JiV0VWM2YzeW1TcGJDaDBEdEg4UnUr?= =?utf-8?B?d1pKYnI2ZU05S3hKS0FYSDNSY2VkMm10d0RKanRuMnczUUFUMzhYOHFpOHVl?= =?utf-8?B?b1lCakJBRnR4b0wvYitrOGkzZmI0KzJnVVBvNHhHSVdadHU5QkNCWGJHMit3?= =?utf-8?B?SDRrb3V4RUVoRnh4dWsvOWk4UUQzOFFMKzdoamN3akxCeWZnaDFnemdoeWhO?= =?utf-8?B?OG9QS2xkUDQ5RGtSc01pYm5yTjdOeFNERWQxM0cycHNOei94TlRNMFNSK01m?= =?utf-8?B?WmxFM2tDQW5QNytOQUhtWUoyVzVqZjRvRXpTZ3VUSHFMbjJsd2crWXN4QjE0?= =?utf-8?B?SXVLdjcva0kwMkltd0dGUmVPOEdsaFhMTUlQQ3c1cDAzUFZwQ09CYUJJY2pn?= =?utf-8?B?TkVnRk05N3VkVG45eXZNd0I4OFh3ZCtKS2hZTDN5 X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 3700bd8c-f492-44de-9a71-08d8fe9db6a9 X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2021 17:01:00.5941 (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: Cmdg4AokCTLvuLehpDJxqTBozMcd8twJB5Tf9J5WyJehoEXU3KB2e+ydmwzV3ejMKv2Ai0G05vCCCEwqJqzBaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTBPR01MB2735 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=ham 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:128984 Archived-At: Yuri Khan writes: > On Tue, 13 Apr 2021 at 00:24, Leo Butler wrote: > >> 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 > > The DejaVu Sans Mono font does not even contain glyphs for > MATHEMATICAL BOLD CAPITAL [A-Z] (on my Ubuntu 20.04, checked via > gucharmap(1)). The glyphs are taken from some other font that does > have them, possibly FreeSerif (which is not a monospace font, and even > if it were, it would not have the same metrics as DejaVu Sans Mono). > > The difference in rendering stems from the way the two terminals paint > each cell. You will observe it more evidently if you enclose each > glyph in some delimiters, e.g. (insert (format "\n%s\n%x\t[%c]" x y > y)).=20 Yuri, thanks for that suggestion. After doing so, I can see that gnome-terminal is scaling each glyph to fit in a fixed-size box, while xterm is allowing it to overflow. > Xterm seems to paint the next cell (space) opaquely, partially > erasing the MATHEMATICAL BOLD CAPITAL A. GNOME Terminal paints it > transparently so the rightmost part of the letter is still visible > under the closing bracket. Another terminal emulator, Kitty, > dynamically reduces the font size for the MATHEMATICAL BOLD CAPITAL A > so its width does not exceed the cell width. Hmm, my gnome-terminal largely behaves the way that you say Kitty does... > > Emacs running as a text-only application in a terminal emulator does > not, cannot, and should not know the font(s) it=E2=80=99s being rendered = with > or any terminal-emulator-specific rendering peculiarities, or do > anything to improve the way it=E2=80=99s rendered. Yes, the thread started by my asking how I could fix the problem with elisp. I was thinking of possibly using an overlay or something like that. > > Font fallback is hard, especially when you want character cells to > align perfectly (which, in case of a terminal emulator, you always > do). You might try filing a bug against Xterm. I will file a bug against the debian xterm package. Leo