-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.207 looks terrible in Emacs #798
Comments
I'm also facing a similar issue, same Arch Linux, using the otf-fira-code package. I am using Alacritty, 10.5 pt font size. 1.207 (Font is just generally shorter) 1.207 (Notice the misalignments to the bottom of the chevron) Edit: I did some bisecting and found commit 2202877 to result in the misaligned chevrons. |
Also having the same problem everywhere on Linux. Downgraded to 1.206 until this issue is resolved. 1.207 is very blurry and I have not changed my fontconfig at all. |
Having the exact same issue as @sooqua. Edit: I was using the TTF version. Replacing with OTF seems to have fixed the issue. |
Okay font metrics might have changed due to Google Fonts normalization process. I do not consider it to be a bug though: still the same font, still the same letter shapes, roughly same metrcis. It also would be impossible to roll back. Match line height exactly is unfortunately impossible to do for every possible terminal out there. You fix it for one, you break it for others. There’s no solution that will satisfy everyone. The change in 1.207 was accidental, probably due to the metrics change mentioned above, but there’s no point tweaking it further for that specfic terminal. The original issue by @sooqua with emacs skipping every other char is really strange. Anyone has any guess what might’ve caused this? Fonts should not behave that way. Maybe glyph proportions are somehow hardcoded in emacs? @sooqua can you provide some details about your setup? Which font files are you using (ttf/otf?) How are you getting them? What GUI toolkit (GTK/what else)? How are you setting Fira Code to be a emacs font? Are you doing any of the dark magic to enable ligatures? |
@tonsky I do not believe the problem is with Emacs. Let me provide some details, as I am experiencing the exact same problem.
Edit:
|
I'm having the same issue as @AidanGG. The font is blurry on 1.207 to an unacceptable level. I am open to how to fix this like if there is a font config change to make. I have not tried OTF files yet. |
@Tatsh AidanGG problem was not about bluriness. What exactly your problem and what’s your setup? |
There is also slight bluriness in my first comparison, which is probably due to the change in metrics. |
Did you use otf or ttf for 1.206? TTF has hinting, that might be the issue |
I used otf in those screenshots. My fontconfig is the default on Arch: hintslight+antialias. |
Im getting the same issue with Emacs and 1.207. Downgrading to 1.206 solves the problem. Used TTF for both. |
Initially through pacman, but before creating this issue I manually downloaded the 1.207 zip archive and installed it in ~/.local/share/fonts, I thought maybe the Arch repositories messed something up?
Only GTK
(set-frame-font "Fira Code 12" nil t)
I used to, but again, for the purpose of testing everything with default settings before making this issue, I renamed my |
On Gentoo, the Fira Code package installs OTF files and I am still getting my issue with 1.207 but not 1.206. Gentoo fetches the archive file from GitHub. https://github.com/gentoo/gentoo/blob/master/media-fonts/fira-code/fira-code-1.207.ebuild#L10 (resolves to |
Just to recap the issues for 1.207 in this thread:
|
I have this problem on Windows as well in Visual Studio. I downloaded directly from the GitHub release assets and installed the .otf files. 1.207 looks really off compared to 1.206, I can't use it. I think 1.207 is stretched to be taller, look at the |
I'm not so sure about everyone else, but my main issue is that everything seems a little more... spaced out? In 1.206, everything felt tighter and now the text seems farther apart in 1.207. I'm seeing this in both Emacs (on the Mac Port by Mitsuharu Yamamoto) as well as iTerm2. @tonsky Is this likely to be fixed or should I just downgrade to 1.206? |
rxvt-unicode (Arch linux) completely fails to calculate character width with fira-code 1.207:
The arch-linux package urxvt-unicode-patched which uses Xft's |
To Arch Linux users suffering wide spacing, has pango been upgraded recently to 1.44, see https://gitlab.gnome.org/GNOME/pango/issues/386 |
Can everyone in this thread please try these files and let me know if they fix the problem? Thanks! |
Did not fix it for me (in Emacs). |
Thank you @tonsky, that looks like it has fixed the bluriness issues I was facing. Haven't been able to test the wide spacing in Emacs though. |
That fixes my issue @tonsky. |
Did not fix the super-wide spacing in Emacs and other apps @tonsky. |
@tonsky Your new files fixed the problem I was seeing! Thanks so much! |
@sooqua @zoickx what about these and emacs issue? |
Seems to be fixed, but it looks bolder compared to otf package. |
@sooqua Can you screenshot both versions? |
Came to post about two issues on Win10 LTSC 1809;
Both issues are resolved by using the files in the |
New build. Please try files from this commit: https://github.com/tonsky/FiraCode/tree/b32369cb03ad3c0fe43fd30fd19427169e9592dc/distr/ttf The main change are:
Let me know how it all works for you. Thanks! |
Chars seem a hair taller now (not bothersome) on W10-LTSC (build 17763.720)... I'm wondering if this is intentional as the Fira Sans font is a taller font. Edit: I prefer this taller typeface to the previous more compact one. GIF showing SecureCRT difference while installing from the latest commit... **GIF showing diff between Fira Medium files..." |
Tried these, the change seems pretty minor compared to this version. Here is a gif comparing OTF v1.207 and the two versions I just referenced: |
@tonsky I am also seeing a noticeable increase in height and/or vertical spacing in your new build. Here are some screenshots to demonstrate. This is what This is what your new build on For now, I am going to continue using the former version (i.e., |
Yes there’s 2.5% increase to fit into pixel grid at 13px size |
I also prefer the former version |
@AidanGG that is pretty easy to fix. Try this version: https://github.com/tonsky/FiraCode/tree/294902a4014d43d76a1e5337ca63f113cbeaaebf/distr/ttf |
Thanks again @tonsky that seems to have fixed it for me, but I will be sure to test it more thoroughly. |
@tonsky I have been trying to use 2 but I have found an issue with certain letters at font size 13px or less. This is all taken from VS Code on Linux: The straight line in the f character is blurry in 2. And this is the same for the underline. The font size in the screenshot is 13px. If there is a fontconfig change to make, I am happy to do that. I have my fontconfig hinting set to hintfull (3), lcdfilter = lcddefault, subpixel rgb = rgba. On Windows I am not experiencing this issue (the only difference there is that I am probably using TTF files instead of OTF (which the Gentoo package installs)). Also I can open a new issue if you prefer. |
Fira Code is not optimized for any specific pt size (and if it was, it would only be possible to optimize for one specific size, not all of them). So some lines will always be blurry. The only thing changed from 1.206 to 2 is which lines those are. Underscore got unlucky. |
@tonsky I switched to the TTF files on Linux and now things look normal (at least the underline is 1px in height at ~13px size). Is there a reason TTF would work better than OTF? For whatever reason, Gentoo maintainers tend to prefer installing OTF files over TTF. |
TTF has hinting, OTF has not. If your OS relies on it, use TTF (Windows, Linux probably too). On macOS hinting is ignored, so both TTF and OTF should work the same.
… On 21. Oct 2019, at 02:58, Tatsh ***@***.***> wrote:
@tonsky <https://github.com/tonsky> I switched to the TTF files on Linux and now things look normal (at least the underline is 1px in height at ~13px size). Is there a reason TTF would work better than OTF?
For whatever reason, Gentoo packages tend to prefer installing OTF files over TTF.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#798?email_source=notifications&email_token=AACFU3G4T3IKU65YOS2DATTQPT5C3A5CNFSM4IFWWWMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYYWLA#issuecomment-544312108>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AACFU3F6WNQWFPQQB5VWB33QPT5C3ANCNFSM4IFWWWMA>.
|
@tonsky --- I just did a fresh install of linux and was struggling to get the font rendering right in vscode. After several hours of meddling with system, searching in my linux forms, I finally found the above point. And this resolved the issue --- I had installed OTF version. So, I would suggest putting this point (TTF for linux, windows and OTF for macOS) somewhere in the home page or help section so that users can easily find it. And thanks for this beautiful font! |
Instruction mentions ttf already https://github.com/tonsky/FiraCode/wiki/Installing |
@tonsky --- I had not noticed it. Thanks for pointing out. If I may suggest, I think the wiki can be made more clear. The instructions does not state a crucial info: if OTF is used in linux, text might be hinted. It is important to clarify this because saying "use TTF in linux" does not imply that "do not use OTF". By mentioning the symptoms, the ambiguity can be removed. |
Added it to troubleshooting page too. Maybe I should just remove OTF at all, afaik TTF works just fine on macOS too. |
Default Emacs, Arch Linux x86_64 5.2.1-arch1-1-ARCH
1.207
1.206
Can you revert whatever change caused this?
The text was updated successfully, but these errors were encountered: