MonoLisaFont / feedback

Send us your feedback regarding the MonoLisa font
86 stars 2 forks source link

Missing Cascadia Code Ligatures (Emacs) #69

Open cmconnelly opened 3 years ago

cmconnelly commented 3 years ago

I'm working on getting MonoLisa working in GNU Emacs (using Mickey's ligature.el package), and have found that the following ligatures are defined in Cascadia Code but not in MonoLisa:

   (*
   *)
   --
   -<
   -<<
   -|
   :||
   >>-
   >>=
   ||||
   __
   _/_
   www
   |-
   |=
   |>
   ||=
   ||>

One of these, |= is in #68; another, www, in #10.

(BTW, I got the list of ligatures for MonoLisa from the website's specimen page. It would be easier if there was just a file with a list of all the contextual alternates and ligatures in plain text, which would also make it easier to spot additions or deletions.)

duien commented 3 years ago

In case it's helpful, all of those ligatures appear the same to me in Doom Emacs as they do in TextEdit, so looking at the ligature configuration there may provide some clues. A few of them do have either very subtle or no ligatures, but they're consistent between Emacs and other text rendering.

Screen Shot 2021-04-27 at 9 54 57 AM

Happy to provide any other details of my config if it's useful. Likely relevant: I'm using railwaycat's emacs-mac version, which I believe does not user HARFBUZZ.

cmconnelly commented 3 years ago

GNU Emacs on the Mac doesn't use Harfbuzz either (seems to use macOS font rendering engine; 2021-04-29 build from master branch; macOS 11.3/Big Sur).

After adding the "missing" ligatures to the elisp code that specifies the ligatures, I'm seeing some of them working, but others are still missing. Specifically, with MonoLisa 1.700,

(*
*)
-|
:||
||||
_/_
www
|-
||=

don't work (these glyphs are not in the fonts, so you wouldn't expect them to work).

Meanwhile, -<<

>>-
>>=
|=
|>
||>

do work in modes for languages that use these constructs (e.g., js-mode, c++-mode, shell-script-mode).

I honestly can't tell whether

--
__

are working; doesn't appear to do anything in latex-mode (from AucTeX); not sure what language might use __.

Cons-Cat commented 3 years ago

not sure what language might use __.

It's for C / C++.