From: Eason Huang <aqua0210@foxmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64618@debbugs.gnu.org
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 [thread overview]
Message-ID: <tencent_0ACA9B2D727C2F5B257048D71B4FE0576B08@qq.com> (raw)
In-Reply-To: <831qhafp9k.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Jul 2023 19:09:59 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Eason Huang <aqua0210@foxmail.com>
>> 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
next prev parent reply other threads:[~2023-07-14 23:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 15:36 bug#64618: 29.0.92; Can't set Fira code font with italic type on Windows system Eason Huang
2023-07-14 16:09 ` Eli Zaretskii
2023-07-14 23:54 ` Eason Huang [this message]
2023-07-15 6:10 ` Eli Zaretskii
2023-07-15 6:20 ` Eason Huang
2023-07-15 7:23 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_0ACA9B2D727C2F5B257048D71B4FE0576B08@qq.com \
--to=aqua0210@foxmail.com \
--cc=64618@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).