monaspace icon indicating copy to clipboard operation
monaspace copied to clipboard

Ligatures in PhpStorm

Open devajmeireles opened this issue 2 years ago • 13 comments

❤️ this project, thanks.

How we can use the ligatures in PhpStorm (the most used PHP IDE)?

devajmeireles avatar Nov 10 '23 00:11 devajmeireles

Looks like this might affect all JetBrains products - ligatures aren't working in Rider either.

prplecake avatar Nov 10 '23 01:11 prplecake

I can't even get the fonts to show up at all in Rider 😩 let alone ligatures

seanm-fathomhq avatar Nov 10 '23 02:11 seanm-fathomhq

Ligatures not working on IntelliJ IDEA neither.

lfdominguez avatar Nov 10 '23 03:11 lfdominguez

@seanm-fathomhq These fonts didn't seem to show up in the monospace section that JetBrains puts at the top of the list. An IDE restart may be required after installing the fonts. That was the case for me on Windows, though my IDEs on macOS picked up the new fonts right away.

prplecake avatar Nov 10 '23 03:11 prplecake

Nah unfortunately they don't seem to work at all for me 😕 they're definitely installed, I can see them in the Fonts list in Control Panel and they come up in other apps, but in Rider they don't show up in the list either as Monospaced or Proportional. Tried both the variable and non-variable fonts, tried restarting the IDE and Windows itself. It's possible Rider is doing something different from the other IntelliJ-based IDE's 🤷‍♂️

seanm-fathomhq avatar Nov 10 '23 03:11 seanm-fathomhq

They show up and I'm able to select them, but ligatures don't work.

nizur avatar Nov 10 '23 04:11 nizur

not show in fontslist of jetbrains ide

You're searching for "monospa" but the font family is called "Monaspace" (with an "a"). Still though, example from my IDE: image image Fonts are showing up in Notepad though so they're definitely installed: image

seanm-fathomhq avatar Nov 10 '23 04:11 seanm-fathomhq

Same for Android Studio.

I can see a difference regarding texture healing when toggling "Enable ligatures" on and off but it's not working for combinations like != for example.

svenjacobs avatar Nov 10 '23 10:11 svenjacobs

image same on goland, ligaturies not working

savvinov-a avatar Nov 10 '23 11:11 savvinov-a

WebStorm WS-232.10203.14

Enable Ligatures turns on Texture Healing, but not ligatures

image image

andrewf403 avatar Nov 10 '23 12:11 andrewf403

It's funny, because textual healing works when ligatures are enabled, and #[ also works as a ligature. Nothing else

tymscar avatar Nov 10 '23 17:11 tymscar

AFAIU from Monaspace visual studio config doc here, ligatures works only if you enable them in a particular way, that visual studio supports, but most likely not most other editors these days. I can understand that choice which allows to fine-tune which ligatures we want or not, but I'm afraid that won't work on most editors?

Is there a way "editor.fontLigatures": true, would enable most ligatures (which would work on most editors) while "editor.fontLigatures": "'calt', 'liga', 'dlig', 'ss01', 'ss02', ... (more stylistic sets) ...", would still allow to remove some, for people using an editor supporting that?

❤️ Love monaspace so far, great work, thanks!

vguerci avatar Nov 13 '23 08:11 vguerci

Issues regarding the fonts not showing up in the menu should be fixed with update 1.1 (make sure to install the fonts for all users if you still have trouble).

Enabling ligatures in these programs will only turn on the calt and liga features, as they do not support stylistic sets currently. The next update will include a "frozen" version of the fonts with all ligatures enabled by default to bypass this limitation.

heathercran avatar May 15 '24 19:05 heathercran

@heathercran Version 1.1 has been released, but I'm not seeing any "frozen" versions. Installing via brew doesn't seem to provide any frozen versions either. Perhaps I'm missing something?

If it was added, it's likely worth its own section in the README (like the one for VSCode) as this is impacting the fonts viability in all Jetbrains IDEs.

If this functionality was dropped for the 1.1 release, is there an approved workaround?

lcpichette avatar Nov 12 '24 22:11 lcpichette

@lcpichette my reply should have been more specific; the frozen fonts are being included as part of the 1.2 release, which is coming very soon. Sorry for the wait!

heathercran avatar Nov 26 '24 22:11 heathercran

Frozen fonts are shipped as part of the 1.2 release to support environments (like IntelliJ IDEs) which do not support configuration of OpenType settings.

Cheers! 🍻

idan avatar Feb 07 '25 00:02 idan