From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Different rendering in latex doc between Windows, macOS and GNU/Linux Date: Sat, 26 Nov 2022 21:16:49 +0200 Message-ID: <83wn7hr0f2.fsf@gnu.org> References: <1585944673.322367.1669466913725@mail1.libero.it> <83tu2lssyq.fsf@gnu.org> <1962215699.329541.1669478921414@mail1.libero.it> <83bkotslzb.fsf@gnu.org> <2087801596.320025.1669489439098@mail1.libero.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 26 20:16:45 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oz0fN-0000Te-MA for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Nov 2022 20:16:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oz0f4-0001Z4-TF; Sat, 26 Nov 2022 14:16:26 -0500 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 1oz0f3-0001Yv-IO for emacs-devel@gnu.org; Sat, 26 Nov 2022 14:16:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oz0f2-0003r7-UB; Sat, 26 Nov 2022 14:16:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4RcYo4rGAlV/E4R1aqHuw+BPbKI4xddQgpyoY8jNF3U=; b=nVVbJBI+iAkj n6QRX1I1zM/8k3xFWXPy/hxU033CLu99nhVJHb6vtbCLLtGE7tiHErsNPqBFTIlof9hyr7YXF5OwJ BwwlFeRc8kOPkYecX5g1E/k1JzQedMfH1CM6AiyXpDknqxOYLscL8gCiGStYuTPLExHklilU9UNTf Zedwbm3Z66cJ+FKT9tG7NErAmDHiyDBfnzeFgK79frosEe5O4sS8LFeG9szisxXC5LrB7ytS1O6o2 b3Mx3ienDkGQ5Z3OUwVxc13jnOWdojeZ5f1Jt9fWuz1HAqFCT+9A9/hasFeQpKr9socDavHmyTh1I hfV2xdbkm8l0ulP9vNU4xQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oz0f2-0005K6-43; Sat, 26 Nov 2022 14:16:24 -0500 In-Reply-To: <2087801596.320025.1669489439098@mail1.libero.it> (message from Angelo Graziosi on Sat, 26 Nov 2022 20:03:59 +0100 (CET)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300584 Archived-At: > Date: Sat, 26 Nov 2022 20:03:59 +0100 (CET) > From: Angelo Graziosi > Cc: emacs-devel@gnu.org > > > > The result of the above command is the same, both on Windows and GNU/Linux but on GNU/Linux 'foo' is rendered in underline bold while on Windows it is in italic. I create a foo.tex file with '\emph{foo}' on the first line and with the cursor on 'f' of 'foo'. See the attachments.. > > > > The images show that the font you use on GNU/Linux doesn't have the italics > > variant, so Emacs uses underline instead, per the defface: > > > > (defface italic > > '((((supports :slant italic)) > > :slant italic) > > (((supports :underline t)) > > :underline t) > > Hmm.. this is strange. "emacs -q/Q" uses Monospace and in Emacs, 'Menu-Set Default Font...' seems to show that Monospace has italic (see the attachment taken with 'emacs -Q')! But really I tried with many fonts (Andale Mono, Bitstream Vera Sans Mono, Courier, DejaVu sans Mono book, FreeMono, Noto...) all listed with the the regular, italic, bold.. versions and with the same negative results. > > This does not occur on Windows or macOS. Maybe it' isn't the font, but something else, I don't know. The fact is that Emacs says the face is 'italic', but displays it as underline. And the above says this happens when italics cannot be produced for some reason. > Anyway, may you suggest a font to be used with Emacs in GNU/Linux to test this? Sorry, no. I don't know what to suggest. Maybe someone else does.