tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.17k stars 3.08k forks source link

Doesn't work at all in Emacs #46

Open alphapapa opened 8 years ago

alphapapa commented 8 years ago

I know Emacs doesn't support ligatures, but I was still hoping to use Fira Code in Emacs since it has less line spacing or lower line height than Fira Mono. But this is what I see when I use Fira Code in Emacs:

screenshot

kirang89 commented 8 years ago

That's weird. This is how Fira Code looks in my setup:

screenshot_08_09_15_01_31

alphapapa commented 8 years ago

Hm, I just discovered that it also displays with this crazy character spacing in the KDE font manager. It's very strange, because I've installed a lot of different programming fonts, and none of them have any kind of problems like this, including Fira Mono.

I also tried using the 0.5 release, in both OTF and TTF formats, and they all have the same problem. This is very weird!

And to make it even weirder: When I open the fonts in the KDE Font Viewer, they display fine. But when I install them, they have the problem. And not a single other font I have has this problem.

And for the icing on the cake: When I install it but "disable" it in the KDE Font Manager, the preview within the Font Manager displays correctly. But when I reenable the font, the preview displays with the problem again.

tonsky commented 8 years ago

What about Fira Mono? Does it display okay?

On Tue, Sep 8, 2015 at 5:31 AM alphapapa notifications@github.com wrote:

Hm, I just discovered that it also displays with this crazy character spacing in the KDE font manager. It's very strange, because I've installed a lot of different programming fonts, and none of them have any kind of problems like this.

— Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/46#issuecomment-138392781.

alphapapa commented 8 years ago

Yes, it works fine.

emmanueltouzery commented 8 years ago

I also see the same problem with Fira Code 0.6 in emacs while Fira Mono works fine. GNU Emacs 24.5.1, Fedora 22.

hlieberman commented 8 years ago

Yup, can confirm this is a (very strange) bug on emacs24 on Debian.

HiCodin commented 8 years ago

same issue for me as well. emacs 24.5.1 on Ubuntu 14.04

andrelaszlo commented 8 years ago

2016-01-14-232317_775x799_scrot

Great work on the font! Too bad it doesn't work in Emacs - it would have looked nice. Since this seems to be an Emacs problem more than a problem with this font, maybe you can close this issue?

See this: http://emacs.stackexchange.com/questions/9586/otf-ligature-support-in-emacs

tonsky commented 8 years ago

@andrelaszlo are you using the latest version? It should be identical by all means to Fira Mono (I’m using the same source and the same build software), and Fira Mono was reported to work fine. Can you check please with 1.102?

andrelaszlo commented 8 years ago

Sorry, my bad. I was using the ancient version available in AUR.

Ligatures still don't work, but otherwise it looks fine (Emacs 24.5.1, FiraCode 1.102):

2016-01-15_102336_249x58

HiCodin commented 8 years ago

same with @andrelaszlo . font works fine now but ligatures still are not working.

andrelaszlo commented 8 years ago

I think that ligatures are still missing from Emacs, according to the link in my first post. The double character width thing from the screenshot is fixed however, leaving us with a usable (and useful) font.

Ligatures are rendered correctly in other applications, so I guess we're stuck with the fix suggested in the README.

lf94 commented 8 years ago

Not even the suggested fix works. I'm on Emacs-snapshot. It would be nice if it did! :)

jethrokuan commented 8 years ago

Ligatures still don't work for me either. Looks pretty enough now, though ligatures would be great.

lf94 commented 8 years ago

This is not a FiraCode issue but an Emacs issue really. It's too bad Emacs isn't on a social coding platform because I would contact them then. If someone could hit up the mailing list that would be greatly appreciated.

dgutov commented 8 years ago

If someone could hit up the mailing list that would be greatly appreciated.

What should one hit it with?

lf94 commented 8 years ago

Ligature support, maybe? I'm not entirely sure what this feature is called.

dgutov commented 8 years ago

Yes, I'm not sure how to phrase it either. But you're probably looking for M-x report-emacs-bug.

jethrokuan commented 8 years ago

Someone in the clojure slack channel mentioned that the osx build for emacs has been patched with ligature support such that Fira Code works for him out of the box, but I can't find any mention of it anywhere. Unless the changeset is small and isolated it's unlikely vanilla emacs will introduce ligature support anytime soon, given that they're focusing on eliminating bugs right now On Feb 15, 2016 1:13 AM, "Dmitry Gutov" notifications@github.com wrote:

Yes, I'm not sure how to phrase it either. But you're probably looking for M-x report-emacs-bug.

— Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/46#issuecomment-183930016.

xsyn commented 8 years ago

I was using the railway-cat build on OSX El Capitan 10.11.2, and it worked beautifully with ligatures and this font.

However since 10.11.3 I can no longer build it.

My point is that there is support in the railway-cat build, following the instructions included.

On Mon, Feb 15, 2016 at 3:22 AM, Jethro Kuan Sheng Yuan < notifications@github.com> wrote:

Someone in the clojure slack channel mentioned that the osx build for emacs has been patched with ligature support such that Fira Code works for him out of the box, but I can't find any mention of it anywhere. Unless the changeset is small and isolated it's unlikely vanilla emacs will introduce ligature support anytime soon, given that they're focusing on eliminating bugs right now On Feb 15, 2016 1:13 AM, "Dmitry Gutov" notifications@github.com wrote:

Yes, I'm not sure how to phrase it either. But you're probably looking for M-x report-emacs-bug.

— Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/46#issuecomment-183930016.

— Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/46#issuecomment-184018901.

[image: Avatar]

Guy Taylor

Developer

Office: (+27) 21 447 3252

Skype: guy-mymalife.com

LinkedIn: Guy Taylor https://za.linkedin.com/in/guytaylor

Twitter: @xsyn https://twitter.com/xsyn

Google+: +GuyTaylor https://plus.google.com/+GuyTaylor [image: Cognician brand devider]

www.cognician.com

Demo Fest winner Las Vegas 2014 Leadership Accelerator wins best soft skills solution! http://www.elearningguild.com/DevLearn/content/3438/devlearn-2014-conference--expo--elearning-demofest/

vyp commented 8 years ago

@jethrokuan

Someone in the clojure slack channel mentioned that the osx build for emacs has been patched with ligature support such that Fira Code works for him out of the box, but I can't find any mention of it anywhere.

I don't know if this is the same thing of course, but @RadicalZephyr recently posted a patch on this issue tracker: https://github.com/tonsky/FiraCode/issues/42#issuecomment-175864751

weavejester commented 8 years ago

Someone in the clojure slack channel mentioned that the osx build for emacs has been patched with ligature support such that Fira Code works for him out of the box, but I can't find any mention of it anywhere.

It's mentioned at the bottom of the Setting up Emacs wiki page.

tobia commented 8 years ago

I was using the railway-cat build on OSX El Capitan 10.11.2, and it worked beautifully with ligatures and this font.

@xsyn did you get any sluggishness, compared with the vanilla OS X build? I'd love to use that build, because of the ligature support and better OS X integration, but I'm getting a very unresponsive UI, especially (but not only) when scrolling.

I mean, just scroll around a file, or keep something like + (in normal mode) pressed on auto-repeat, and you'll see the scrolling jump around quite a bit, not to mention the cursor disappearing.

Can you suggest any tweak or setting to make it perform better? What version were you using?

xsyn commented 8 years ago

I found that turning off progressive scrolling made a huge difference for me:

(setq mouse-wheel-progressive-speed nil)

ninrod commented 7 years ago

see this

felipebalbi commented 4 years ago

I have the same issue here. Here's with Fira Mono:

image

And here's the same with Fira Code:

image

I've opened emacs with emacs -Q to make sure this wasn't caused by some problem on my configuration. I've tried with sizes 10 to 15 and it all looks the same. This is with latest Fira Code 2 installed via Arch package, emacs 26.3