fabrizioschiavi / pragmatapro

PragmataPro font is designed to help pros to work better
https://www.fsd.it/shop/fonts/pragmatapro/
1.45k stars 39 forks source link

Strange german style font rendering of PragmataPro Mono in neovide #300

Open rubin55 opened 2 months ago

rubin55 commented 2 months ago

I'm a long-time user of PragmataPro Mono. I've recently switched from vim+gvim to nvim+neovide. For some strange reason, neovide renders PragmataPro Mono as some sort of german font (gothic?) I've created an issue here: https://github.com/neovide/neovide/issues/2786

I'm now not certain that the issue is with neovide; do these glyphs look familiar to you? is this something within PragmataPro Mono and is neovide somehow selecting a wrong glyphset within the font?

fabrizioschiavi commented 2 months ago

At first sight it seems Neovide uses aalt feature as default creating an interesting mess

feature aalt {
  feature fina;
  feature medi;
  feature init;
  feature ss03; ← Fraktur
  feature ss04; ← Fraktur Bold
  feature ss05; ← Poker symbols with lines above and bottom
  feature ss06; ← Script
  feature ss07; ← Script Bold
  feature ss08; ← Serif Bold
  feature ss09; ← Serif Italic
  feature ss10; ← Serif Bold Italic
  feature ss11; ← Braille
} aalt;

Following this sequence you'll obtain exactly the text shown in the issue. I hope it can helps

fredizzimo commented 2 months ago

Neovide does not add, aalt itself, and searching through the Swash source code it doesn't seem to be doing that either.

But since this is clearly a Neovide/Swash bug, let's continue the discussion here https://github.com/neovide/neovide/issues/2786