Skip to content
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

Questions: #9

Closed
jordwalke opened this issue Apr 4, 2015 · 21 comments
Closed

Questions: #9

jordwalke opened this issue Apr 4, 2015 · 21 comments
Labels

Comments

@jordwalke
Copy link

  • How does this other project have a copy of PragmataPro free for download?
    https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher
  • Why doesn't that version have the ligatures for functional languages?
  • If that isn't supposed to be available for free, how can I try the version with ligatures to make sure it actually works in my editor?
  • If not open sourced, how can people modify it to include all the new file icons in nerd-filetype-glyphs project?
@abl
Copy link

abl commented Apr 4, 2015

  • Pretty sure it's unauthorized; actually, all of the fonts being distributed there are in violation of their respective licenses.
  • 0.820 is the version with ligatures. That repo has version 0.8.
  • Which editor do you use and on which platform?
  • Distributing a script that modifies PragmataPro is fine; the license doesn't (and can't, really) prevent you from modifying your own copy.

@jordwalke
Copy link
Author

Hmm, someone should reach out to the developer of that repo then and ask them to take that down.

I use MacVim. I'd really like to get the ligatures working, even if that means forking MacVim, but I don't know if it will work, so it's kind of disappointing that there's no way to try out a font before purchasing a license.

@abl
Copy link

abl commented Apr 4, 2015

Already reached out.

Conveniently, I have a 10.10 machine and a copy of 0.820. Screenshots incoming. :)

@abl
Copy link

abl commented Apr 4, 2015

Hmm. Found https://github.com/i-tu/Hasklig - looks like ligatures are explicitly disabled in MacVim due to rendering issues:

b4winckler/macvim@8c8db3c

Building MacVim from HEAD right now to see what happens.

@jordwalke
Copy link
Author

Note that there are two different rendering modes in MacVim accessible via the preferences panel. Try both - I believe you must restart MacVim after switching modes.

@abl
Copy link

abl commented Apr 4, 2015

Tried both with a MacVim restart. No difference. I'll try again with that commit reverted later on.

@jordwalke
Copy link
Author

Sounds good. I guess I would even use a forked version of MacVim if it meant I could use the ligatures!

@abl
Copy link

abl commented Apr 5, 2015

Success...ish. I tweaked the MacVim homebrew formula to revert the relevant commit, built, disabled the CoreText renderer, and...

screen shot 2015-04-04 at 4 59 57 pm

Note the weird spacing. The raw text displayed is:

!! object
d != 0
false !== true
***numeric
mapAccum *= height

I'd personally find this obnoxious. :(

@jordwalke
Copy link
Author

Ah, thanks for checking! It's too bad that doesn't work. It seems like many editors need to step up their game. Now, even MacVim has no official maintainer, and I'm not sure who would fix it (or how).

@jordwalke
Copy link
Author

Poking around the web, it looks like there's a setting defaults write org.vim.MacVim MMAtsuiRenderer 1. I don't know what it does.

@jordwalke
Copy link
Author

I also just found the ambiwidth property of Vim. It might make that render a bit better.

@abl
Copy link

abl commented Apr 5, 2015

MMAtsuiRenderer appears to be a legacy setting.

ambiwidth=double doesn't help either. :(

There's a fork with Emoji (and other bits) support...might help.

Basically if you can get https://github.com/i-tu/Hasklig working in a setup, PragmataPro should work, if you want to test other editors.

@jordwalke
Copy link
Author

I see. That's really too bad that MacVim doesn't work with ligatures. Vim's "conceal" feature really leaves much to be desired as well.

@fabrizioschiavi
Copy link
Owner

First thanks @abl for the help! Very appreciated

Some softwares can interpreter PragmataPro as monospaced because all "simple" glyphs has the same width (1060em) but "ligature" glyphs has multiple widths (1060x2=2120em and 1060x3=3180em)
To avoid issues with some issues with more scrupolous softwares I released PragmataPro Mono deleting "ligatures", since version 0.821

pp_ppm_epp

@jordwalke
Copy link
Author

Cool. How does it work in software like MacVim? There's no way for me to try it out without first purchasing it. (Obviously the ligatures no longer work in that case, right?)

@abl
Copy link

abl commented Jul 9, 2015

@fabrizioschiavi happy to help!

@jordwalke PragmataPro Mono contains only monospaced glyphs so it'll work fine in MacVim et al - and yes, no ligatures will be displayed, but there will be no graphical/alignment issues.

@rafaelrinaldi
Copy link

@fabrizioschiavi @abl I currently have my copy of Essential PragmataPro and my code editor is Vim (throught the Terminal, not MacVim). I also wanted to try ligatures before actually buying it, is there any chance? Thanks,

@jordwalke
Copy link
Author

Good news: You can check out the progress in MacVim here - macvim-dev/macvim#36

Accompanied by pull request macvim-dev/macvim#122

It needs some work (works best with :set cursorline), but it's a good start. Atom editor just added support for ligatures as well!

@fabrizioschiavi
Copy link
Owner

@jordwalke very good news!!
Thanks for sharing!

@rafaelrinaldi
Copy link

FYI Neovim also plans to support font ligatures in the future: neovim/neovim#1408

@alextes
Copy link

alextes commented Dec 19, 2018

I think this can be closed. The regular version works great in MacVim. The Mono Liga version works great in NeoVim. I also think jordwalke's original questions were answered a long long time ago 😉 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants