From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: bug#64618: 29.0.92; Can't set Fira code font with italic type on Windows system Date: Sat, 15 Jul 2023 07:54:27 +0800 Message-ID: References: <831qhafp9k.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="23728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64618@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 15 01:55:41 2023 Return-path: Envelope-to: geb-bug-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 1qKSdO-0005vN-AX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jul 2023 01:55:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKScr-0000pD-G7; Fri, 14 Jul 2023 19:55:05 -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 1qKScp-0000ok-4K for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 19:55:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qKSco-0004Bn-SL for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 19:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKSco-00022x-6a for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 19:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2023 23:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64618 X-GNU-PR-Package: emacs Original-Received: via spool by 64618-submit@debbugs.gnu.org id=B64618.16893788947840 (code B ref 64618); Fri, 14 Jul 2023 23:55:02 +0000 Original-Received: (at 64618) by debbugs.gnu.org; 14 Jul 2023 23:54:54 +0000 Original-Received: from localhost ([127.0.0.1]:43648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKScg-00022N-06 for submit@debbugs.gnu.org; Fri, 14 Jul 2023 19:54:54 -0400 Original-Received: from out203-205-251-82.mail.qq.com ([203.205.251.82]:42156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKSca-00021r-1J for 64618@debbugs.gnu.org; Fri, 14 Jul 2023 19:54:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1689378873; bh=K2SaV1xw44An/iJoo7QqXxbhgEGVsAJPVU3m4EEwS8Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=EHLxTTMr9k5rtlN9JACwGckrXiQlp+wWipqB8Yy6CTA3OfSp7zRJHhSKDl9PPVGdO BVeGyoDzirNFVuvGubg9UPpaZJ0ppISJEJZ0muDjORLXATa70qEofpCuZ8Ij8byZIF qcQIFyyq5G0sSKKao7tY5/iv3r7YYtyfDQEX8CWM= Original-Received: from MacBook ([114.82.35.135]) by newxmesmtplogicsvrsza7-0.qq.com (NewEsmtp) with SMTP id D9F8CE9A; Sat, 15 Jul 2023 07:54:31 +0800 X-QQ-mid: xmsmtpt1689378871tjux149sv X-QQ-XMAILINFO: NvKyM24IHTKSn9eeMvwdBIyIXFS+mWKqfxnkvYNKdsFdJpZSTTrNb4/F/A3RBw Iwv/M2o/kBxTfVcvi2BhS4dgmfgin20CVXZG/i8kLT86Bwdw6XmtCVcdyRGR5n1UktqHW94sPD5P rIEw+6XWkutgVU3MLXH7kA3cVNmrd00U59gbglY91hdHEe36HjWwNasbrc2OEwtK60GwsiAs6qaA /whDVmgxPONZk6BZ6wEcya/jSlVZUBN+Ageyv4cE/A5L+bi8+xzT04wJUZNjDjnVN+HwOXk30KNz hkQP3SBke4XaV6DwKsUR3oTyIaOCM5kLnWbGmfnm3endddgmeaLlrKZO5pO/87N37k+eYxwk5iej A/rTqNBx80Udw6R1tCDZSCz3FgFtmDOqfhTbGRiLk4Xs1KGVLky3F3adXVxp7bieid7G0NCj4CQQ 8PJED9v/4L69VhtbWar8ir1otU20Vt8+htIqrxwuYTUn006qkdYCRapxyZP1/1l4oKZLAPsVxWgy r7wIOEqqKAlTbfrpjWFMMXtpDbTKss8OcFMl++q7bPoWu6hJ4A9crFywkgbG8qYfN3jKgmOqxj2j /TThPadkupTtsXnd3F07B7EoUR2P8KNgkraS5a+/+vPkStL08C5JAKiu96M7C0QQ0A2tc+oQnZR3 iYGRs43rrwi33l4EjpZ34tJMoxqdYV3AeTaNSret/Z8kF9k+Hnwo4/oK3J8OjiLbIwjDTgCLMntW /PzyNEj4UnOveTdtPmBww9aeiBqsavDHQTVbwMhjE8yJaJcV4PJS6aTAtxn7hcf6jiWhet+XY1bx KA8ajEndGs8QB6iHUbv5nAsc566lvCBrEtbtRePS X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= In-Reply-To: <831qhafp9k.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Jul 2023 19:09:59 +0300") Original-Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265132 Eli Zaretskii writes: >> From: Eason Huang >> Date: Fri, 14 Jul 2023 23:36:00 +0800 >> >> Currently I tried to use Fira Code font on Windows 10, but the italic >> font can not use on Emacs 29 and Emacs 30, it rolls back to regular >> font. This only happends on Windows platform. It works as expected on >> macOS. >> >> Does anyone known how to make it works? >> >> You can downlaod and install Fira Code from this link: >> >> https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip >> >> steps to reproduce: >> >> 1. Unzip the Fira_Code_v6.2.zip and install Fira Code fonts in ttf >> folder >> >> 2. Start Emacs with `emacs -Q` >> 3. From the Menu, choose Options -> Set Default Font... >> 4. From the popup window, select Fira Code font with italic type >> Now you will see that the font of current buffer have been changed to >> Fira Code with Regular font type. It should be the italic font type. > > The zip file whose URL you posted doesn't seem to include an italic > variant of Fir Code... Yes, you are right. Fira code do not provide an italic variant. But with other applications such as MS Word and Notepad3, Fira Code can show italic style. Meawhile, Emacs 29 on macOS can Show italic with the same Fira Code font. I tried below font setting on both Windows and macOS: ``` (add-to-list 'default-frame-alist (cons 'font "Fira Code-13")) ``` After Emacs start up, put your cursor on an character and execute `M-x describe-char`, and shows result as below: ``` macOS: position: 4 of 43 (7%), column: 3 character: H (displayed as H) (codepoint 72, #o110, #x48) charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x48 script: latin syntax: w which means: word category: .:Base, L:Strong L2R, a:ASCII, l:Latin, r:Roman to input: type "C-x 8 RET 48" or "C-x 8 RET LATIN CAPITAL LETTER H" buffer code: #x48 file code: #x48 (encoded by coding system utf-8) display: by this font (glyph code): mac-ct:-*-Fira Code-regular-italic-normal-*-13-*-*-*-m-0-iso10646-1 (#x28) Character code properties: customize what to show name: LATIN CAPITAL LETTER H general-category: Lu (Letter, Uppercase) decomposition: (72) ('H') There are text properties here: face font-lock-comment-face fontified nil ws-butler-chg chg Windows: position: 4 of 39 (8%), column: 3 character: H (displayed as H) (codepoint 72, #o110, #x48) charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x48 script: latin syntax: w which means: word category: .:Base, L:Strong L2R, a:ASCII, l:Latin, r:Roman to input: type "C-x 8 RET 48" or "C-x 8 RET LATIN CAPITAL LETTER H" buffer code: #x48 file code: #x48 (encoded by coding system utf-8) display: by this font (glyph code): harfbuzz:-outline-Fira Code-regular-normal-normal-*-18-*-*-*-c-*-iso8859-1 (#x28) Character code properties: customize what to show name: LATIN CAPITAL LETTER H general-category: Lu (Letter, Uppercase) decomposition: (72) ('H') There are text properties here: face font-lock-comment-face fontified nil ws-butler-chg chg ``` And you can see that there do have the italic font `-*-Fira Code-regular-italic-normal-*-13-*-*-*-m-0-iso10646-1` on macOS Emacs, but don't have on Windows. Is it possible to make the Emacs on Windows have the same ability as the Emacs on macOS for showing this kind of font without italic variant? -- Eason Huang